@riocrypto/common 1.0.1489 → 1.0.1490

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.
@@ -109,6 +109,10 @@ export declare class RioAdminClient {
109
109
  id: string;
110
110
  link: string;
111
111
  }>;
112
+ createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
113
+ id: string;
114
+ link: string;
115
+ }>;
112
116
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
113
117
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
114
118
  createUBO(user: UBOInput): Promise<UBO>;
@@ -260,6 +260,15 @@ class RioAdminClient {
260
260
  return data;
261
261
  });
262
262
  }
263
+ createIncrementalOnboardingByLink(userId, countryOfOperation) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
266
+ userId,
267
+ countryOfOperation,
268
+ });
269
+ return data;
270
+ });
271
+ }
263
272
  sendVerificationEmail(type, id, country) {
264
273
  return __awaiter(this, void 0, void 0, function* () {
265
274
  yield this.axios.post("/api/kyc/email", {
@@ -194,4 +194,8 @@ export declare class RioClient {
194
194
  id: string;
195
195
  link: string;
196
196
  }>;
197
+ createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
198
+ id: string;
199
+ link: string;
200
+ }>;
197
201
  }
@@ -741,5 +741,14 @@ class RioClient {
741
741
  return data;
742
742
  });
743
743
  }
744
+ createIncrementalOnboardingByLink(userId, countryOfOperation) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ const { data } = yield this.axios.post("/api/onboardings/incremental/link", {
747
+ userId,
748
+ countryOfOperation,
749
+ });
750
+ return data;
751
+ });
752
+ }
744
753
  }
745
754
  exports.RioClient = RioClient;
@@ -64,10 +64,12 @@ export declare type User = {
64
64
  onboarding?: {
65
65
  [country in CountryOfOrigin]?: {
66
66
  status?: OnboardingStatus;
67
+ hasAcceptedTerms?: boolean;
68
+ aiPriseId?: string;
69
+ bridgeId?: string;
67
70
  personalId?: string;
68
71
  taxId?: string;
69
72
  immigrationStatus?: ImmigrationStatus;
70
- hasAcceptedTerms?: boolean;
71
73
  individualIdentityVerification?: {
72
74
  status?: "passed" | "failed" | "review";
73
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1489",
3
+ "version": "1.0.1490",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",