@riocrypto/common-server 1.0.1444 → 1.0.1445

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,4 +1,4 @@
1
- import { Country, OnboardingStatus, Language, PlatformFeeRange, USState, UserAttribute, UserType, CountryOfOrigin, RiskTier } from "@riocrypto/common";
1
+ import { Country, OnboardingStatus, Language, PlatformFeeRange, USState, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface UserAttrs {
4
4
  createdAt: Date;
@@ -94,7 +94,7 @@ interface UserAttrs {
94
94
  personalId?: string;
95
95
  taxId?: string;
96
96
  hasAcceptedTerms?: boolean;
97
- isResident?: boolean;
97
+ immigrationStatus?: ImmigrationStatus;
98
98
  individualIdentityVerification?: {
99
99
  status?: "passed" | "failed" | "review";
100
100
  };
@@ -228,7 +228,7 @@ interface UserDoc extends Document {
228
228
  status?: OnboardingStatus;
229
229
  personalId?: string;
230
230
  taxId?: string;
231
- isResident?: boolean;
231
+ immigrationStatus?: ImmigrationStatus;
232
232
  hasAcceptedTerms?: boolean;
233
233
  individualIdentityVerification?: {
234
234
  status?: "passed" | "failed" | "review";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1444",
3
+ "version": "1.0.1445",
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.1276",
30
+ "@riocrypto/common": "^1.0.1283",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",