@riocrypto/common 1.0.1248 → 1.0.1250

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.
@@ -64,6 +64,7 @@ export declare class RioAdminClient {
64
64
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
65
65
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
66
66
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
67
+ sendBridgeOnboardingEmail(userId: string): Promise<void>;
67
68
  updateAdmin(update: {
68
69
  email?: string;
69
70
  password?: string;
@@ -145,6 +145,11 @@ class RioAdminClient {
145
145
  });
146
146
  });
147
147
  }
148
+ sendBridgeOnboardingEmail(userId) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
151
+ });
152
+ }
148
153
  updateAdmin(update) {
149
154
  return __awaiter(this, void 0, void 0, function* () {
150
155
  const { data } = yield this.axios.patch(`/api/auth/admin`, update);
@@ -50,6 +50,7 @@ export declare class RioClient {
50
50
  uploadCSF(id: string, formData: FormData): Promise<User>;
51
51
  getRioSettings(): Promise<RioSettings>;
52
52
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
53
+ sendBridgeOnboardingEmail(userId: string): Promise<void>;
53
54
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
54
55
  textRequirements: ("personalId" | "taxId")[];
55
56
  fileRequirements: KYCFileType[];
@@ -114,6 +114,11 @@ class RioClient {
114
114
  });
115
115
  });
116
116
  }
117
+ sendBridgeOnboardingEmail(userId) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
120
+ });
121
+ }
117
122
  getOnboardingRequirements(userType, country, countryOfOrigin) {
118
123
  return __awaiter(this, void 0, void 0, function* () {
119
124
  const { data } = yield this.axios.get(`/api/users/requirements`, {
package/build/index.d.ts CHANGED
@@ -202,6 +202,7 @@ export * from "./types/risk-tier";
202
202
  export * from "./types/market-data";
203
203
  export * from "./types/kyc-file-type";
204
204
  export * from "./types/identity-verification-status";
205
+ export * from "./types/UBO-onboarding-status";
205
206
  export * from "./classes/Asset";
206
207
  export * from "./classes/KYCFieldClass";
207
208
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -218,6 +218,7 @@ __exportStar(require("./types/risk-tier"), exports);
218
218
  __exportStar(require("./types/market-data"), exports);
219
219
  __exportStar(require("./types/kyc-file-type"), exports);
220
220
  __exportStar(require("./types/identity-verification-status"), exports);
221
+ __exportStar(require("./types/UBO-onboarding-status"), exports);
221
222
  __exportStar(require("./classes/Asset"), exports);
222
223
  __exportStar(require("./classes/KYCFieldClass"), exports);
223
224
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum UBOOnboardingStatus {
2
+ Approved = "approved",
3
+ Failed = "failed",
4
+ Review = "review"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UBOOnboardingStatus = void 0;
4
+ var UBOOnboardingStatus;
5
+ (function (UBOOnboardingStatus) {
6
+ UBOOnboardingStatus["Approved"] = "approved";
7
+ UBOOnboardingStatus["Failed"] = "failed";
8
+ UBOOnboardingStatus["Review"] = "review";
9
+ })(UBOOnboardingStatus = exports.UBOOnboardingStatus || (exports.UBOOnboardingStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1248",
3
+ "version": "1.0.1250",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",