@riocrypto/common 1.0.1499 → 1.0.1500

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.
@@ -126,7 +126,12 @@ export declare class RioAdminClient {
126
126
  }>;
127
127
  createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
128
128
  id: string;
129
- link: string;
129
+ kycLink: string;
130
+ }>;
131
+ createIncrementalUSOnboardingByLink(userId: string): Promise<{
132
+ id: string;
133
+ kycLink: string;
134
+ tosLink: string;
130
135
  }>;
131
136
  getOnboarding(id: string): Promise<Onboarding>;
132
137
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
@@ -277,9 +277,16 @@ class RioAdminClient {
277
277
  }
278
278
  createIncrementalOnboardingByLink(userId, countryOfOperation) {
279
279
  return __awaiter(this, void 0, void 0, function* () {
280
- const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
280
+ const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/incremental/link`, {
281
+ userId,
282
+ });
283
+ return data;
284
+ });
285
+ }
286
+ createIncrementalUSOnboardingByLink(userId) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ const { data } = yield this.axios.post(`/api/onboardings/us/incremental/link`, {
281
289
  userId,
282
- countryOfOperation,
283
290
  });
284
291
  return data;
285
292
  });
@@ -211,7 +211,12 @@ export declare class RioClient {
211
211
  }>;
212
212
  createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
213
213
  id: string;
214
- link: string;
214
+ kycLink: string;
215
+ }>;
216
+ createIncrementalUSOnboardingByLink(userId: string): Promise<{
217
+ id: string;
218
+ kycLink: string;
219
+ tosLink: string;
215
220
  }>;
216
221
  getOnboarding(id: string): Promise<Onboarding>;
217
222
  }
@@ -758,9 +758,16 @@ class RioClient {
758
758
  }
759
759
  createIncrementalOnboardingByLink(userId, countryOfOperation) {
760
760
  return __awaiter(this, void 0, void 0, function* () {
761
- const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
761
+ const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/incremental/link`, {
762
+ userId,
763
+ });
764
+ return data;
765
+ });
766
+ }
767
+ createIncrementalUSOnboardingByLink(userId) {
768
+ return __awaiter(this, void 0, void 0, function* () {
769
+ const { data } = yield this.axios.post(`/api/onboardings/us/incremental/link`, {
762
770
  userId,
763
- countryOfOperation,
764
771
  });
765
772
  return data;
766
773
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1499",
3
+ "version": "1.0.1500",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",