@riocrypto/common-server 1.0.1697 → 1.0.1699

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.
@@ -1,6 +1,7 @@
1
- import { Country } from "@riocrypto/common";
1
+ import { Country, UserType } from "@riocrypto/common";
2
2
  import mongoose from "mongoose";
3
3
  interface OnboardingAttrs {
4
+ userType: UserType;
4
5
  country: Country;
5
6
  status: "approved" | "declined" | "pending" | "review" | "error";
6
7
  isIncremental: boolean;
@@ -10,6 +11,7 @@ interface OnboardingAttrs {
10
11
  aiPriseId?: string;
11
12
  }
12
13
  interface OnboardingDoc extends mongoose.Document {
14
+ userType: UserType;
13
15
  country: Country;
14
16
  status: "approved" | "declined" | "pending" | "review" | "error";
15
17
  isIncremental: boolean;
@@ -7,6 +7,10 @@ const buildOnboarding = (mongoose) => {
7
7
  return mongoose.model("Onboarding");
8
8
  }
9
9
  const OnboardingSchema = new mongoose.Schema({
10
+ userType: {
11
+ type: String,
12
+ required: true,
13
+ },
10
14
  brokerId: {
11
15
  type: String,
12
16
  },
@@ -53,6 +53,8 @@ interface UserAttrs {
53
53
  status?: OnboardingStatus;
54
54
  hasAcceptedTerms?: boolean;
55
55
  onboardingId?: string;
56
+ aiPriseId?: string;
57
+ bridgeId?: string;
56
58
  personalId?: string;
57
59
  taxId?: string;
58
60
  immigrationStatus?: ImmigrationStatus;
@@ -162,6 +164,8 @@ interface UserDoc extends Document {
162
164
  status?: OnboardingStatus;
163
165
  hasAcceptedTerms?: boolean;
164
166
  onboardingId?: string;
167
+ aiPriseId?: string;
168
+ bridgeId?: string;
165
169
  personalId?: string;
166
170
  taxId?: string;
167
171
  immigrationStatus?: ImmigrationStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1697",
3
+ "version": "1.0.1699",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",