@riocrypto/common-server 1.0.1693 → 1.0.1695

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.
@@ -3,6 +3,8 @@ import mongoose from "mongoose";
3
3
  interface OnboardingAttrs {
4
4
  country: Country;
5
5
  status: "approved" | "declined" | "pending" | "review" | "error";
6
+ isIncremental: boolean;
7
+ userId?: string;
6
8
  brokerId?: string;
7
9
  authId?: string;
8
10
  aiPriseId?: string;
@@ -10,6 +12,8 @@ interface OnboardingAttrs {
10
12
  interface OnboardingDoc extends mongoose.Document {
11
13
  country: Country;
12
14
  status: "approved" | "declined" | "pending" | "review" | "error";
15
+ isIncremental: boolean;
16
+ userId?: string;
13
17
  brokerId?: string;
14
18
  authId?: string;
15
19
  aiPriseId?: string;
@@ -13,6 +13,17 @@ const buildOnboarding = (mongoose) => {
13
13
  authId: {
14
14
  type: String,
15
15
  },
16
+ userId: {
17
+ type: String,
18
+ },
19
+ status: {
20
+ type: String,
21
+ required: true,
22
+ },
23
+ isIncremental: {
24
+ type: Boolean,
25
+ required: true,
26
+ },
16
27
  aiPriseId: {
17
28
  type: String,
18
29
  },
@@ -51,9 +51,11 @@ interface UserAttrs {
51
51
  onboarding?: {
52
52
  [country in CountryOfOrigin]?: {
53
53
  status?: OnboardingStatus;
54
+ hasAcceptedTerms?: boolean;
55
+ aiPriseId?: string;
56
+ bridgeId?: string;
54
57
  personalId?: string;
55
58
  taxId?: string;
56
- hasAcceptedTerms?: boolean;
57
59
  immigrationStatus?: ImmigrationStatus;
58
60
  individualIdentityVerification?: {
59
61
  status?: "passed" | "failed" | "review";
@@ -159,9 +161,11 @@ interface UserDoc extends Document {
159
161
  onboarding?: {
160
162
  [country in CountryOfOrigin]?: {
161
163
  status?: OnboardingStatus;
164
+ hasAcceptedTerms?: boolean;
165
+ aiPriseId?: string;
166
+ bridgeId?: string;
162
167
  personalId?: string;
163
168
  taxId?: string;
164
- hasAcceptedTerms?: boolean;
165
169
  immigrationStatus?: ImmigrationStatus;
166
170
  individualIdentityVerification?: {
167
171
  status?: "passed" | "failed" | "review";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1693",
3
+ "version": "1.0.1695",
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.1486",
29
+ "@riocrypto/common": "^1.0.1489",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",