@riocrypto/common-server 1.0.842 → 1.0.844

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.
@@ -23,10 +23,13 @@ interface UserAttrs {
23
23
  attributes?: UserAttribute[];
24
24
  partnerId?: string;
25
25
  brokerId?: string;
26
+ curp?: string;
27
+ economicActivity?: string;
26
28
  platformFeeRanges?: PlatformFeeRange[];
27
29
  COIFile?: string;
28
30
  KYCReportFile?: string;
29
31
  CSFFile?: string;
32
+ proofOfAddressFile?: string;
30
33
  authorizedPhoneNumbers?: string[];
31
34
  notificationUrl?: string;
32
35
  }
@@ -52,6 +55,8 @@ interface UserDoc extends Document {
52
55
  companyName?: string;
53
56
  legalRepresentative?: string;
54
57
  cpf?: string;
58
+ curp?: string;
59
+ economicActivity?: string;
55
60
  birthday?: Date;
56
61
  language?: Language;
57
62
  attributes?: UserAttribute[];
@@ -61,6 +66,7 @@ interface UserDoc extends Document {
61
66
  COIFile?: string;
62
67
  KYCReportFile?: string;
63
68
  CSFFile?: string;
69
+ proofOfAddressFile?: string;
64
70
  authorizedPhoneNumbers?: string[];
65
71
  notificationUrl?: string;
66
72
  }
@@ -66,6 +66,12 @@ const buildUser = (mongoose) => {
66
66
  cpf: {
67
67
  type: String,
68
68
  },
69
+ curp: {
70
+ type: String,
71
+ },
72
+ economicActivity: {
73
+ type: String,
74
+ },
69
75
  attributes: [
70
76
  {
71
77
  type: String,
@@ -96,6 +102,9 @@ const buildUser = (mongoose) => {
96
102
  CSFFile: {
97
103
  type: String,
98
104
  },
105
+ proofOfAddressFile: {
106
+ type: String,
107
+ },
99
108
  platformFeeRanges: [
100
109
  {
101
110
  min: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.842",
3
+ "version": "1.0.844",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.727",
27
+ "@riocrypto/common": "^1.0.729",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",