@riocrypto/common 1.0.1493 → 1.0.1495
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 +14 -1
- package/build/clients/rio-admin-client.js +15 -1
- package/build/clients/rio-client.d.ts +14 -1
- package/build/clients/rio-client.js +15 -1
- package/build/types/onboarding-status.d.ts +2 -0
- package/build/types/onboarding-status.js +2 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
110
|
+
kycLink: string;
|
|
111
|
+
}>;
|
|
112
|
+
createUSOnboardingByLinks({ 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(
|
|
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
|
+
createUSOnboardingByLinks({ 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
|
-
|
|
195
|
+
kycLink: string;
|
|
196
|
+
}>;
|
|
197
|
+
createUSOnboardingByLinks({ 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(
|
|
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
|
+
createUSOnboardingByLinks({ 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", {
|
|
@@ -7,6 +7,8 @@ export declare enum OnboardingStatus {
|
|
|
7
7
|
LegalRepresentativeFailed = "legalRepresentativeFailed",
|
|
8
8
|
BridgeTosAndKYCCompleted = "bridgeToSAndKYCCompleted",
|
|
9
9
|
BridgeKYCCompleted = "bridgeKYCCompleted",
|
|
10
|
+
BridgeKYCApproved = "bridgeKYCApproved",
|
|
11
|
+
bridgeToSCompleted = "bridgeToSCompleted",
|
|
10
12
|
Started = "started",
|
|
11
13
|
Failed = "failed",
|
|
12
14
|
Review = "review",
|
|
@@ -11,6 +11,8 @@ var OnboardingStatus;
|
|
|
11
11
|
OnboardingStatus["LegalRepresentativeFailed"] = "legalRepresentativeFailed";
|
|
12
12
|
OnboardingStatus["BridgeTosAndKYCCompleted"] = "bridgeToSAndKYCCompleted";
|
|
13
13
|
OnboardingStatus["BridgeKYCCompleted"] = "bridgeKYCCompleted";
|
|
14
|
+
OnboardingStatus["BridgeKYCApproved"] = "bridgeKYCApproved";
|
|
15
|
+
OnboardingStatus["bridgeToSCompleted"] = "bridgeToSCompleted";
|
|
14
16
|
OnboardingStatus["Started"] = "started";
|
|
15
17
|
OnboardingStatus["Failed"] = "failed";
|
|
16
18
|
OnboardingStatus["Review"] = "review";
|