@riocrypto/common-server 1.0.1706 → 1.0.1708

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.
@@ -11,6 +11,7 @@ interface OnboardingAttrs {
11
11
  authId?: string;
12
12
  aiPriseId?: string;
13
13
  bridgeId?: string;
14
+ referrerId?: string;
14
15
  email?: string;
15
16
  }
16
17
  interface OnboardingDoc extends mongoose.Document {
@@ -24,6 +25,7 @@ interface OnboardingDoc extends mongoose.Document {
24
25
  authId?: string;
25
26
  aiPriseId?: string;
26
27
  bridgeId?: string;
28
+ referrerId?: string;
27
29
  email?: string;
28
30
  }
29
31
  interface OnboardingModel extends mongoose.Model<OnboardingDoc> {
@@ -40,6 +40,9 @@ const buildOnboarding = (mongoose) => {
40
40
  email: {
41
41
  type: String,
42
42
  },
43
+ referrerId: {
44
+ type: String,
45
+ },
43
46
  country: {
44
47
  type: String,
45
48
  required: true,
@@ -8,7 +8,7 @@ interface UserAttrs {
8
8
  middleName?: string;
9
9
  lastName: string;
10
10
  secondLastName?: string;
11
- birthday: Date;
11
+ birthday?: Date;
12
12
  };
13
13
  businessData?: {
14
14
  businessName: string;
@@ -19,7 +19,7 @@ interface UserAttrs {
19
19
  };
20
20
  risk: RiskTier;
21
21
  type: UserType;
22
- phoneNumber: string;
22
+ phoneNumber?: string;
23
23
  email: string;
24
24
  hasPassedEDD: boolean;
25
25
  cosignerGroupId?: string;
@@ -119,7 +119,7 @@ interface UserDoc extends Document {
119
119
  middleName?: string;
120
120
  lastName: string;
121
121
  secondLastName?: string;
122
- birthday: Date;
122
+ birthday?: Date;
123
123
  };
124
124
  businessData?: {
125
125
  businessName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1706",
3
+ "version": "1.0.1708",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1500",
29
+ "@riocrypto/common": "^1.0.1501",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",