@riocrypto/common-server 1.0.1599 → 1.0.1601

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.
@@ -10,6 +10,7 @@ const sanitizeUserDoc = (doc) => {
10
10
  delete obj.hasPassedEDD;
11
11
  delete obj.risk;
12
12
  delete obj.quotationTime;
13
+ delete obj.rioBankAccount;
13
14
  return obj;
14
15
  };
15
16
  exports.sanitizeUserDoc = sanitizeUserDoc;
@@ -1,4 +1,4 @@
1
- import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country, Side } 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,7 @@ interface UserAttrs {
98
98
  referrerId?: string;
99
99
  rioBankAccount?: {
100
100
  [country in Country]?: {
101
- [side in Side]: {
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
- [side in Side]: {
209
+ [fiat in Fiat]?: {
210
210
  id: string;
211
211
  };
212
212
  };
@@ -228,66 +228,11 @@ const buildUser = (mongoose) => {
228
228
  },
229
229
  ],
230
230
  rioBankAccount: {
231
- MX: {
232
- buy: {
233
- id: {
234
- type: String,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1599",
3
+ "version": "1.0.1601",
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.1437",
31
+ "@riocrypto/common": "^1.0.1438",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.6.0",
34
34
  "ccxt": "^3.0.30",