@riocrypto/common 1.0.1494 → 1.0.1496

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.
@@ -107,7 +107,20 @@ export declare class RioAdminClient {
107
107
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
108
108
  createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string): Promise<{
109
109
  id: string;
110
- link: string;
110
+ kycLink: string;
111
+ }>;
112
+ createUSOnboardingByLink({ userType, firstName, middleName, lastName, secondLastName, email, brokerId, }: {
113
+ userType: UserType;
114
+ firstName: string;
115
+ middleName?: string;
116
+ lastName: string;
117
+ secondLastName?: string;
118
+ email: string;
119
+ brokerId?: string;
120
+ }): Promise<{
121
+ id: string;
122
+ kycLink: string;
123
+ tosLink: string;
111
124
  }>;
112
125
  createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
113
126
  id: string;
@@ -252,7 +252,7 @@ class RioAdminClient {
252
252
  }
253
253
  createOnboardingByLink(userType, countryOfOperation, brokerId) {
254
254
  return __awaiter(this, void 0, void 0, function* () {
255
- const { data } = yield this.axios.post("/api/onboardings/link", {
255
+ const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/link`, {
256
256
  userType,
257
257
  countryOfOperation,
258
258
  brokerId,
@@ -260,6 +260,20 @@ class RioAdminClient {
260
260
  return data;
261
261
  });
262
262
  }
263
+ createUSOnboardingByLink({ userType, firstName, middleName, lastName, secondLastName, email, brokerId, }) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const { data } = yield this.axios.post("/api/onboardings/US/link", {
266
+ userType,
267
+ firstName,
268
+ middleName,
269
+ lastName,
270
+ secondLastName,
271
+ email,
272
+ brokerId,
273
+ });
274
+ return data;
275
+ });
276
+ }
263
277
  createIncrementalOnboardingByLink(userId, countryOfOperation) {
264
278
  return __awaiter(this, void 0, void 0, function* () {
265
279
  const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
@@ -192,7 +192,20 @@ export declare class RioClient {
192
192
  getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
193
193
  createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string): Promise<{
194
194
  id: string;
195
- link: string;
195
+ kycLink: string;
196
+ }>;
197
+ createUSOnboardingByLink({ userType, firstName, middleName, lastName, secondLastName, email, brokerId, }: {
198
+ userType: UserType;
199
+ firstName: string;
200
+ middleName?: string;
201
+ lastName: string;
202
+ secondLastName?: string;
203
+ email: string;
204
+ brokerId?: string;
205
+ }): Promise<{
206
+ id: string;
207
+ kycLink: string;
208
+ tosLink: string;
196
209
  }>;
197
210
  createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
198
211
  id: string;
@@ -733,7 +733,7 @@ class RioClient {
733
733
  }
734
734
  createOnboardingByLink(userType, countryOfOperation, brokerId) {
735
735
  return __awaiter(this, void 0, void 0, function* () {
736
- const { data } = yield this.axios.post("/api/onboardings/link", {
736
+ const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/link`, {
737
737
  userType,
738
738
  countryOfOperation,
739
739
  brokerId,
@@ -741,6 +741,20 @@ class RioClient {
741
741
  return data;
742
742
  });
743
743
  }
744
+ createUSOnboardingByLink({ userType, firstName, middleName, lastName, secondLastName, email, brokerId, }) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ const { data } = yield this.axios.post("/api/onboardings/US/link", {
747
+ userType,
748
+ firstName,
749
+ middleName,
750
+ lastName,
751
+ secondLastName,
752
+ email,
753
+ brokerId,
754
+ });
755
+ return data;
756
+ });
757
+ }
744
758
  createIncrementalOnboardingByLink(userId, countryOfOperation) {
745
759
  return __awaiter(this, void 0, void 0, function* () {
746
760
  const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1494",
3
+ "version": "1.0.1496",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",