@riocrypto/common-server 1.0.1417 → 1.0.1419

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.
@@ -100,9 +100,7 @@ interface UserAttrs {
100
100
  legalRepresentativeIdentityVerification?: {
101
101
  status?: "passed" | "failed" | "review";
102
102
  };
103
- UBOOnboardingStatus?: {
104
- status?: OnboardingStatus;
105
- };
103
+ UBOOnboardingStatus?: OnboardingStatus;
106
104
  files?: {
107
105
  certificateOfIncorporation?: string;
108
106
  KYCReport?: string;
@@ -236,9 +234,7 @@ interface UserDoc extends Document {
236
234
  legalRepresentativeIdentityVerification?: {
237
235
  status?: "passed" | "failed" | "review";
238
236
  };
239
- UBOOnboardingStatus?: {
240
- status?: OnboardingStatus;
241
- };
237
+ UBOOnboardingStatus?: OnboardingStatus;
242
238
  files?: {
243
239
  certificateOfIncorporation?: string;
244
240
  KYCReport?: string;
@@ -342,34 +342,7 @@ const buildUser = (mongoose) => {
342
342
  },
343
343
  },
344
344
  businessData: {
345
- businessName: {
346
- type: String,
347
- },
348
- legalRepresentative: {
349
- name: {
350
- type: String,
351
- },
352
- email: {
353
- type: String,
354
- },
355
- status: {
356
- type: String,
357
- },
358
- },
359
- UBO: {
360
- name: {
361
- type: String,
362
- },
363
- email: {
364
- type: String,
365
- },
366
- id: {
367
- type: String,
368
- },
369
- status: {
370
- type: String,
371
- },
372
- },
345
+ type: Object,
373
346
  },
374
347
  individualData: {
375
348
  firstName: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1417",
3
+ "version": "1.0.1419",
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.1254",
30
+ "@riocrypto/common": "^1.0.1260",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",