@riocrypto/common 1.0.1487 → 1.0.1489

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.
@@ -105,6 +105,10 @@ export declare class RioAdminClient {
105
105
  uploadCSF(id: string, formData: FormData): Promise<User>;
106
106
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
107
107
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
108
+ createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string): Promise<{
109
+ id: string;
110
+ link: string;
111
+ }>;
108
112
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
109
113
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
110
114
  createUBO(user: UBOInput): Promise<UBO>;
@@ -250,6 +250,16 @@ class RioAdminClient {
250
250
  return data.link;
251
251
  });
252
252
  }
253
+ createOnboardingByLink(userType, countryOfOperation, brokerId) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ const { data } = yield this.axios.post("/api/onboardings/link", {
256
+ userType,
257
+ countryOfOperation,
258
+ brokerId,
259
+ });
260
+ return data;
261
+ });
262
+ }
253
263
  sendVerificationEmail(type, id, country) {
254
264
  return __awaiter(this, void 0, void 0, function* () {
255
265
  yield this.axios.post("/api/kyc/email", {
@@ -190,4 +190,8 @@ export declare class RioClient {
190
190
  updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
191
191
  getInvoice(orderId: string): Promise<Invoice>;
192
192
  getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
193
+ createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string): Promise<{
194
+ id: string;
195
+ link: string;
196
+ }>;
193
197
  }
@@ -731,5 +731,15 @@ class RioClient {
731
731
  return response.data.balance;
732
732
  });
733
733
  }
734
+ createOnboardingByLink(userType, countryOfOperation, brokerId) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ const { data } = yield this.axios.post("/api/onboardings/link", {
737
+ userType,
738
+ countryOfOperation,
739
+ brokerId,
740
+ });
741
+ return data;
742
+ });
743
+ }
734
744
  }
735
745
  exports.RioClient = RioClient;
@@ -6,7 +6,5 @@ export interface OnboardingCompleteEvent {
6
6
  id: string;
7
7
  country: Country;
8
8
  status: "approved" | "declined" | "pending" | "review" | "error";
9
- brokerId?: string;
10
- authId?: string;
11
9
  };
12
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1487",
3
+ "version": "1.0.1489",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",