@riocrypto/common-server 1.0.1598 → 1.0.1599
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 +45 -10
- 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, Side } 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
|
+
[side in Side]: {
|
|
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
|
+
[side in Side]: {
|
|
210
|
+
id: string;
|
|
211
|
+
};
|
|
208
212
|
};
|
|
209
213
|
};
|
|
210
214
|
}
|
package/build/models/user.js
CHANGED
|
@@ -229,28 +229,63 @@ const buildUser = (mongoose) => {
|
|
|
229
229
|
],
|
|
230
230
|
rioBankAccount: {
|
|
231
231
|
MX: {
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
buy: {
|
|
233
|
+
id: {
|
|
234
|
+
type: String,
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
sell: {
|
|
238
|
+
id: {
|
|
239
|
+
type: String,
|
|
240
|
+
},
|
|
234
241
|
},
|
|
235
242
|
},
|
|
236
243
|
US: {
|
|
237
|
-
|
|
238
|
-
|
|
244
|
+
buy: {
|
|
245
|
+
id: {
|
|
246
|
+
type: String,
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
sell: {
|
|
250
|
+
id: {
|
|
251
|
+
type: String,
|
|
252
|
+
},
|
|
239
253
|
},
|
|
240
254
|
},
|
|
241
255
|
PE: {
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
buy: {
|
|
257
|
+
id: {
|
|
258
|
+
type: String,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
sell: {
|
|
262
|
+
id: {
|
|
263
|
+
type: String,
|
|
264
|
+
},
|
|
244
265
|
},
|
|
245
266
|
},
|
|
246
267
|
CO: {
|
|
247
|
-
|
|
248
|
-
|
|
268
|
+
buy: {
|
|
269
|
+
id: {
|
|
270
|
+
type: String,
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
sell: {
|
|
274
|
+
id: {
|
|
275
|
+
type: String,
|
|
276
|
+
},
|
|
249
277
|
},
|
|
250
278
|
},
|
|
251
279
|
BR: {
|
|
252
|
-
|
|
253
|
-
|
|
280
|
+
buy: {
|
|
281
|
+
id: {
|
|
282
|
+
type: String,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
sell: {
|
|
286
|
+
id: {
|
|
287
|
+
type: String,
|
|
288
|
+
},
|
|
254
289
|
},
|
|
255
290
|
},
|
|
256
291
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1599",
|
|
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",
|