@riocrypto/common 1.0.1256 → 1.0.1258
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 +4 -0
- package/build/clients/rio-admin-client.js +12 -0
- package/build/clients/rio-client.d.ts +4 -0
- package/build/clients/rio-client.js +12 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/UBO-input.d.ts +46 -0
- package/build/types/UBO-input.js +2 -0
- package/build/types/UBO.d.ts +1 -0
- package/package.json +1 -1
|
@@ -38,6 +38,8 @@ import { BridgeExternalAccountQuery } from "../types/bridge-external-account-que
|
|
|
38
38
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
39
39
|
import { KYCFileType } from "../types/kyc-file-type";
|
|
40
40
|
import { UserType } from "../types/user-type";
|
|
41
|
+
import { UBOInput } from "../types/UBO-input";
|
|
42
|
+
import { UBO } from "../types/UBO";
|
|
41
43
|
export declare class RioAdminClient {
|
|
42
44
|
private axios;
|
|
43
45
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -59,12 +61,14 @@ export declare class RioAdminClient {
|
|
|
59
61
|
fileRequirements: KYCFileType[];
|
|
60
62
|
}>;
|
|
61
63
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
64
|
+
uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
|
|
62
65
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
63
66
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
64
67
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
65
68
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
66
69
|
sendVerificationEmail(userId: string, country: Country): Promise<void>;
|
|
67
70
|
sendBridgeOnboardingEmail(userId: string): Promise<void>;
|
|
71
|
+
createUBO(user: UBOInput): Promise<UBO>;
|
|
68
72
|
updateAdmin(update: {
|
|
69
73
|
email?: string;
|
|
70
74
|
password?: string;
|
|
@@ -109,6 +109,12 @@ class RioAdminClient {
|
|
|
109
109
|
return data;
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
+
uploadUBOFile(id, country, fileType, formData) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const { data } = yield this.axios.post(`/api/ubos/${id}/files/${country}/${fileType}`, formData);
|
|
115
|
+
return data;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
112
118
|
uploadKYCReport(id, formData) {
|
|
113
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
120
|
const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
|
|
@@ -150,6 +156,12 @@ class RioAdminClient {
|
|
|
150
156
|
yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
|
|
151
157
|
});
|
|
152
158
|
}
|
|
159
|
+
createUBO(user) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const { data } = yield this.axios.post("/api/ubos", user);
|
|
162
|
+
return data;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
153
165
|
updateAdmin(update) {
|
|
154
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
167
|
const { data } = yield this.axios.patch(`/api/auth/admin`, update);
|
|
@@ -34,6 +34,8 @@ import { SecurityQuestion } from "../types/security-question";
|
|
|
34
34
|
import { KYCFileType } from "../types/kyc-file-type";
|
|
35
35
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
36
36
|
import { UserType } from "../types/user-type";
|
|
37
|
+
import { UBOInput } from "../types/UBO-input";
|
|
38
|
+
import { UBO } from "../types/UBO";
|
|
37
39
|
export declare class RioClient {
|
|
38
40
|
private axios;
|
|
39
41
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -68,6 +70,8 @@ export declare class RioClient {
|
|
|
68
70
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
69
71
|
getUser(userId?: string): Promise<User>;
|
|
70
72
|
createUser(user: UserInput): Promise<User>;
|
|
73
|
+
createUBO(user: UBOInput): Promise<UBO>;
|
|
74
|
+
uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
|
|
71
75
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
72
76
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
73
77
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
@@ -188,6 +188,18 @@ class RioClient {
|
|
|
188
188
|
return data;
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
+
createUBO(user) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const { data } = yield this.axios.post("/api/ubos", user);
|
|
194
|
+
return data;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
uploadUBOFile(id, country, fileType, formData) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const { data } = yield this.axios.post(`/api/ubos/${id}/files/${country}/${fileType}`, formData);
|
|
200
|
+
return data;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
191
203
|
uploadProofOfAddress(id, formData) {
|
|
192
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
205
|
const { data } = yield this.axios.post(`/api/users/${id}/proof-of-address`, formData);
|
package/build/index.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export * from "./types/kyc-file-type";
|
|
|
208
208
|
export * from "./types/identity-verification-status";
|
|
209
209
|
export * from "./types/UBO-onboarding-status";
|
|
210
210
|
export * from "./types/UBO";
|
|
211
|
+
export * from "./types/UBO-input";
|
|
211
212
|
export * from "./classes/Asset";
|
|
212
213
|
export * from "./classes/KYCFieldClass";
|
|
213
214
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -224,6 +224,7 @@ __exportStar(require("./types/kyc-file-type"), exports);
|
|
|
224
224
|
__exportStar(require("./types/identity-verification-status"), exports);
|
|
225
225
|
__exportStar(require("./types/UBO-onboarding-status"), exports);
|
|
226
226
|
__exportStar(require("./types/UBO"), exports);
|
|
227
|
+
__exportStar(require("./types/UBO-input"), exports);
|
|
227
228
|
__exportStar(require("./classes/Asset"), exports);
|
|
228
229
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
229
230
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CountryOfOrigin } from "./country-of-origin";
|
|
2
|
+
import { OnboardingStatus } from "./onboarding-status";
|
|
3
|
+
export declare type UBOInput = {
|
|
4
|
+
individualData?: {
|
|
5
|
+
firstName?: string;
|
|
6
|
+
middleName?: string;
|
|
7
|
+
lastName?: string;
|
|
8
|
+
secondLastName?: string;
|
|
9
|
+
birthday?: Date;
|
|
10
|
+
countryOfOrigin?: CountryOfOrigin;
|
|
11
|
+
};
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
birthday?: Date;
|
|
15
|
+
associatedUserId?: string;
|
|
16
|
+
onboarding?: {
|
|
17
|
+
[country in CountryOfOrigin]?: {
|
|
18
|
+
status?: OnboardingStatus;
|
|
19
|
+
personalId?: string;
|
|
20
|
+
taxId?: string;
|
|
21
|
+
isResident?: boolean;
|
|
22
|
+
individualIdentityVerification?: {
|
|
23
|
+
status?: "passed" | "failed" | "review";
|
|
24
|
+
};
|
|
25
|
+
files?: {
|
|
26
|
+
certificateOfIncorporation?: string;
|
|
27
|
+
KYCReport?: string;
|
|
28
|
+
taxTranscript?: string;
|
|
29
|
+
proofOfAddress?: string;
|
|
30
|
+
businessRegistration?: string;
|
|
31
|
+
taxIdentificationCertificate?: string;
|
|
32
|
+
legalRepresentativeIdPowerOfAttorney?: string;
|
|
33
|
+
personalIdentificationCertificate?: string;
|
|
34
|
+
extraFiles?: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
address?: {
|
|
39
|
+
street1?: string;
|
|
40
|
+
street2?: string;
|
|
41
|
+
city?: string;
|
|
42
|
+
state?: string;
|
|
43
|
+
postalCode?: string;
|
|
44
|
+
country?: CountryOfOrigin;
|
|
45
|
+
};
|
|
46
|
+
};
|
package/build/types/UBO.d.ts
CHANGED