@riocrypto/common-server 1.0.1599 → 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 +3 -3
- package/build/models/user.js +5 -60
- package/package.json +1 -1
package/build/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country,
|
|
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,7 @@ interface UserAttrs {
|
|
|
98
98
|
referrerId?: string;
|
|
99
99
|
rioBankAccount?: {
|
|
100
100
|
[country in Country]?: {
|
|
101
|
-
[
|
|
101
|
+
[fiat in Fiat]?: {
|
|
102
102
|
id: string;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -206,7 +206,7 @@ interface UserDoc extends Document {
|
|
|
206
206
|
referrerId?: string;
|
|
207
207
|
rioBankAccount?: {
|
|
208
208
|
[country in Country]?: {
|
|
209
|
-
[
|
|
209
|
+
[fiat in Fiat]?: {
|
|
210
210
|
id: string;
|
|
211
211
|
};
|
|
212
212
|
};
|
package/build/models/user.js
CHANGED
|
@@ -228,66 +228,11 @@ const buildUser = (mongoose) => {
|
|
|
228
228
|
},
|
|
229
229
|
],
|
|
230
230
|
rioBankAccount: {
|
|
231
|
-
MX:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
sell: {
|
|
238
|
-
id: {
|
|
239
|
-
type: String,
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
US: {
|
|
244
|
-
buy: {
|
|
245
|
-
id: {
|
|
246
|
-
type: String,
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
sell: {
|
|
250
|
-
id: {
|
|
251
|
-
type: String,
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
PE: {
|
|
256
|
-
buy: {
|
|
257
|
-
id: {
|
|
258
|
-
type: String,
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
sell: {
|
|
262
|
-
id: {
|
|
263
|
-
type: String,
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
CO: {
|
|
268
|
-
buy: {
|
|
269
|
-
id: {
|
|
270
|
-
type: String,
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
sell: {
|
|
274
|
-
id: {
|
|
275
|
-
type: String,
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
BR: {
|
|
280
|
-
buy: {
|
|
281
|
-
id: {
|
|
282
|
-
type: String,
|
|
283
|
-
},
|
|
284
|
-
},
|
|
285
|
-
sell: {
|
|
286
|
-
id: {
|
|
287
|
-
type: String,
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
},
|
|
231
|
+
MX: Object,
|
|
232
|
+
US: Object,
|
|
233
|
+
PE: Object,
|
|
234
|
+
CO: Object,
|
|
235
|
+
BR: Object,
|
|
291
236
|
},
|
|
292
237
|
referrerId: {
|
|
293
238
|
type: String,
|