@riocrypto/common-server 1.0.1598 → 1.0.1600
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/user.d.ts +7 -3
- package/build/models/user.js +5 -25
- package/package.json +2 -2
package/build/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country } from "@riocrypto/common";
|
|
1
|
+
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country, Fiat } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface UserAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -98,7 +98,9 @@ interface UserAttrs {
|
|
|
98
98
|
referrerId?: string;
|
|
99
99
|
rioBankAccount?: {
|
|
100
100
|
[country in Country]?: {
|
|
101
|
-
|
|
101
|
+
[fiat in Fiat]?: {
|
|
102
|
+
id: string;
|
|
103
|
+
};
|
|
102
104
|
};
|
|
103
105
|
};
|
|
104
106
|
}
|
|
@@ -204,7 +206,9 @@ interface UserDoc extends Document {
|
|
|
204
206
|
referrerId?: string;
|
|
205
207
|
rioBankAccount?: {
|
|
206
208
|
[country in Country]?: {
|
|
207
|
-
|
|
209
|
+
[fiat in Fiat]?: {
|
|
210
|
+
id: string;
|
|
211
|
+
};
|
|
208
212
|
};
|
|
209
213
|
};
|
|
210
214
|
}
|
package/build/models/user.js
CHANGED
|
@@ -228,31 +228,11 @@ const buildUser = (mongoose) => {
|
|
|
228
228
|
},
|
|
229
229
|
],
|
|
230
230
|
rioBankAccount: {
|
|
231
|
-
MX:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
US: {
|
|
237
|
-
id: {
|
|
238
|
-
type: String,
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
PE: {
|
|
242
|
-
id: {
|
|
243
|
-
type: String,
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
CO: {
|
|
247
|
-
id: {
|
|
248
|
-
type: String,
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
BR: {
|
|
252
|
-
id: {
|
|
253
|
-
type: String,
|
|
254
|
-
},
|
|
255
|
-
},
|
|
231
|
+
MX: Object,
|
|
232
|
+
US: Object,
|
|
233
|
+
PE: Object,
|
|
234
|
+
CO: Object,
|
|
235
|
+
BR: Object,
|
|
256
236
|
},
|
|
257
237
|
referrerId: {
|
|
258
238
|
type: 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.1600",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1437",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.6.0",
|
|
34
34
|
"ccxt": "^3.0.30",
|