@riocrypto/common-server 1.0.1448 → 1.0.1450

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.
@@ -13,14 +13,9 @@ interface UserAttrs {
13
13
  };
14
14
  businessData?: {
15
15
  businessName: string;
16
- legalRepresentative?: {
17
- name: string;
18
- email?: string;
19
- };
20
16
  UBO?: {
21
17
  id?: string;
22
- name: string;
23
- email?: string;
18
+ onboardingStatus?: OnboardingStatus;
24
19
  };
25
20
  };
26
21
  risk: RiskTier;
@@ -98,10 +93,14 @@ interface UserAttrs {
98
93
  individualIdentityVerification?: {
99
94
  status?: "passed" | "failed" | "review";
100
95
  };
101
- legalRepresentativeIdentityVerification?: {
102
- status?: "passed" | "failed" | "review";
96
+ legalRepresentative?: {
97
+ firstName?: string;
98
+ middleName?: string;
99
+ lastName?: string;
100
+ secondLastName?: string;
101
+ verificationStatus?: "passed" | "failed" | "review";
102
+ email?: string;
103
103
  };
104
- UBOOnboardingStatus?: OnboardingStatus;
105
104
  files?: {
106
105
  certificateOfIncorporation?: string;
107
106
  KYCReport?: string;
@@ -130,6 +129,7 @@ interface UserAttrs {
130
129
  fiscalRegimenCode?: number;
131
130
  };
132
131
  };
132
+ quotationTime?: number;
133
133
  }
134
134
  interface UserModel extends Model<UserDoc> {
135
135
  build(attrs: UserAttrs): UserDoc;
@@ -148,14 +148,9 @@ interface UserDoc extends Document {
148
148
  };
149
149
  businessData?: {
150
150
  businessName: string;
151
- legalRepresentative?: {
152
- name: string;
153
- email?: string;
154
- };
155
151
  UBO?: {
156
152
  id?: string;
157
- name: string;
158
- email?: string;
153
+ onboardingStatus?: OnboardingStatus;
159
154
  };
160
155
  };
161
156
  risk: RiskTier;
@@ -233,10 +228,14 @@ interface UserDoc extends Document {
233
228
  individualIdentityVerification?: {
234
229
  status?: "passed" | "failed" | "review";
235
230
  };
236
- legalRepresentativeIdentityVerification?: {
237
- status?: "passed" | "failed" | "review";
231
+ legalRepresentative?: {
232
+ firstName?: string;
233
+ middleName?: string;
234
+ lastName?: string;
235
+ secondLastName?: string;
236
+ verificationStatus?: "passed" | "failed" | "review";
237
+ email?: string;
238
238
  };
239
- UBOOnboardingStatus?: OnboardingStatus;
240
239
  files?: {
241
240
  certificateOfIncorporation?: string;
242
241
  KYCReport?: string;
@@ -265,6 +264,7 @@ interface UserDoc extends Document {
265
264
  fiscalRegimenCode?: number;
266
265
  };
267
266
  };
267
+ quotationTime?: number;
268
268
  }
269
269
  declare const buildUser: (mongoose: Mongoose) => UserModel;
270
270
  export { buildUser, UserDoc };
@@ -125,6 +125,9 @@ const buildUser = (mongoose) => {
125
125
  proofOfAddressFile: {
126
126
  type: String,
127
127
  },
128
+ quotationTime: {
129
+ type: Number,
130
+ },
128
131
  platformFeeRanges: {
129
132
  MX: {
130
133
  buy: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1448",
3
+ "version": "1.0.1450",
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.1287",
30
+ "@riocrypto/common": "^1.0.1289",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",