@riocrypto/common 1.0.1498 → 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.
- package/build/clients/rio-admin-client.d.ts +8 -1
- package/build/clients/rio-admin-client.js +15 -2
- package/build/clients/rio-client.d.ts +8 -1
- package/build/clients/rio-client.js +15 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/onboarding.d.ts +15 -0
- package/build/types/onboarding.js +2 -0
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ import { AddressVerification } from "../types/address-verification";
|
|
|
51
51
|
import { BankAccountVerification } from "../types/bank-account-verification";
|
|
52
52
|
import { MultipartLiquidityOrder } from "../types/multipart-liquidity-order";
|
|
53
53
|
import { LiquidityOrderRecipe } from "../types/liquidity-order-recipe";
|
|
54
|
+
import { Onboarding } from "../types/onboarding";
|
|
54
55
|
export declare class RioAdminClient {
|
|
55
56
|
private axios;
|
|
56
57
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -125,8 +126,14 @@ export declare class RioAdminClient {
|
|
|
125
126
|
}>;
|
|
126
127
|
createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
|
|
127
128
|
id: string;
|
|
128
|
-
|
|
129
|
+
kycLink: string;
|
|
130
|
+
}>;
|
|
131
|
+
createIncrementalUSOnboardingByLink(userId: string): Promise<{
|
|
132
|
+
id: string;
|
|
133
|
+
kycLink: string;
|
|
134
|
+
tosLink: string;
|
|
129
135
|
}>;
|
|
136
|
+
getOnboarding(id: string): Promise<Onboarding>;
|
|
130
137
|
sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
|
|
131
138
|
sendBridgeOnboardingEmail(userId: string): Promise<void>;
|
|
132
139
|
createUBO(user: UBOInput): Promise<UBO>;
|
|
@@ -277,13 +277,26 @@ 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(
|
|
280
|
+
const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/incremental/link`, {
|
|
281
281
|
userId,
|
|
282
|
-
countryOfOperation,
|
|
283
282
|
});
|
|
284
283
|
return data;
|
|
285
284
|
});
|
|
286
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`, {
|
|
289
|
+
userId,
|
|
290
|
+
});
|
|
291
|
+
return data;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
getOnboarding(id) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const { data } = yield this.axios.get(`/api/onboardings/${id}`);
|
|
297
|
+
return data;
|
|
298
|
+
});
|
|
299
|
+
}
|
|
287
300
|
sendVerificationEmail(type, id, country) {
|
|
288
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
302
|
yield this.axios.post("/api/kyc/email", {
|
|
@@ -41,6 +41,7 @@ import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
|
41
41
|
import { BidInput } from "../types/bid-input";
|
|
42
42
|
import { AddressVerification } from "../types/address-verification";
|
|
43
43
|
import { BankAccountVerification } from "../types/bank-account-verification";
|
|
44
|
+
import { Onboarding } from "../types/onboarding";
|
|
44
45
|
export declare class RioClient {
|
|
45
46
|
private axios;
|
|
46
47
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -210,6 +211,12 @@ export declare class RioClient {
|
|
|
210
211
|
}>;
|
|
211
212
|
createIncrementalOnboardingByLink(userId: string, countryOfOperation: Country): Promise<{
|
|
212
213
|
id: string;
|
|
213
|
-
|
|
214
|
+
kycLink: string;
|
|
215
|
+
}>;
|
|
216
|
+
createIncrementalUSOnboardingByLink(userId: string): Promise<{
|
|
217
|
+
id: string;
|
|
218
|
+
kycLink: string;
|
|
219
|
+
tosLink: string;
|
|
214
220
|
}>;
|
|
221
|
+
getOnboarding(id: string): Promise<Onboarding>;
|
|
215
222
|
}
|
|
@@ -758,12 +758,25 @@ 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(
|
|
761
|
+
const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/incremental/link`, {
|
|
762
762
|
userId,
|
|
763
|
-
countryOfOperation,
|
|
764
763
|
});
|
|
765
764
|
return data;
|
|
766
765
|
});
|
|
767
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`, {
|
|
770
|
+
userId,
|
|
771
|
+
});
|
|
772
|
+
return data;
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
getOnboarding(id) {
|
|
776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
777
|
+
const { data } = yield this.axios.get(`/api/onboardings/${id}`);
|
|
778
|
+
return data;
|
|
779
|
+
});
|
|
780
|
+
}
|
|
768
781
|
}
|
|
769
782
|
exports.RioClient = RioClient;
|
package/build/index.d.ts
CHANGED
|
@@ -238,6 +238,7 @@ export * from "./types/address-verification";
|
|
|
238
238
|
export * from "./types/bank-account-verification";
|
|
239
239
|
export * from "./types/multipart-liquidity-order";
|
|
240
240
|
export * from "./types/liquidity-order-recipe";
|
|
241
|
+
export * from "./types/onboarding";
|
|
241
242
|
export * from "./classes/Asset";
|
|
242
243
|
export * from "./classes/KYCFieldClass";
|
|
243
244
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -254,6 +254,7 @@ __exportStar(require("./types/address-verification"), exports);
|
|
|
254
254
|
__exportStar(require("./types/bank-account-verification"), exports);
|
|
255
255
|
__exportStar(require("./types/multipart-liquidity-order"), exports);
|
|
256
256
|
__exportStar(require("./types/liquidity-order-recipe"), exports);
|
|
257
|
+
__exportStar(require("./types/onboarding"), exports);
|
|
257
258
|
__exportStar(require("./classes/Asset"), exports);
|
|
258
259
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
259
260
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Country } from "./country";
|
|
2
|
+
import { UserType } from "./user-type";
|
|
3
|
+
export interface Onboarding {
|
|
4
|
+
id: string;
|
|
5
|
+
userType: UserType;
|
|
6
|
+
country: Country;
|
|
7
|
+
status: "approved" | "declined" | "pending" | "review" | "error" | "bridgeToSCompleted" | "bridgeKYCCompleted";
|
|
8
|
+
isIncremental: boolean;
|
|
9
|
+
userId?: string;
|
|
10
|
+
brokerId?: string;
|
|
11
|
+
authId?: string;
|
|
12
|
+
aiPriseId?: string;
|
|
13
|
+
bridgeId?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
}
|