@riocrypto/common 1.0.1488 → 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.
|
@@ -105,6 +105,14 @@ 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
|
+
}>;
|
|
112
|
+
createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
|
|
113
|
+
id: string;
|
|
114
|
+
link: string;
|
|
115
|
+
}>;
|
|
108
116
|
sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
|
|
109
117
|
sendBridgeOnboardingEmail(userId: string): Promise<void>;
|
|
110
118
|
createUBO(user: UBOInput): Promise<UBO>;
|
|
@@ -250,6 +250,25 @@ 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
|
+
}
|
|
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
|
+
}
|
|
253
272
|
sendVerificationEmail(type, id, country) {
|
|
254
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
274
|
yield this.axios.post("/api/kyc/email", {
|
|
@@ -190,4 +190,12 @@ 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
|
+
}>;
|
|
197
|
+
createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
|
|
198
|
+
id: string;
|
|
199
|
+
link: string;
|
|
200
|
+
}>;
|
|
193
201
|
}
|
|
@@ -731,5 +731,24 @@ 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
|
+
}
|
|
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
|
+
}
|
|
734
753
|
}
|
|
735
754
|
exports.RioClient = RioClient;
|
package/build/types/user.d.ts
CHANGED
|
@@ -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
|
};
|