@riocrypto/common 1.0.1226 → 1.0.1227
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.
|
@@ -53,6 +53,10 @@ export declare class RioAdminClient {
|
|
|
53
53
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
54
54
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
55
55
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
56
|
+
getKYCRequirements(): Promise<{
|
|
57
|
+
textRequirements: "personalId" | "taxId"[];
|
|
58
|
+
fileRequirements: KYCFileType[];
|
|
59
|
+
}>;
|
|
56
60
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
57
61
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
58
62
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
@@ -91,6 +91,12 @@ class RioAdminClient {
|
|
|
91
91
|
return data;
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
getKYCRequirements() {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
const { data } = yield this.axios.get(`/api/kyc/requirements`);
|
|
97
|
+
return data;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
94
100
|
uploadFile(id, country, fileType, formData) {
|
|
95
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
102
|
const { data } = yield this.axios.post(`/api/users/${id}/files/${country}/${fileType}`, formData);
|
|
@@ -48,6 +48,10 @@ export declare class RioClient {
|
|
|
48
48
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
49
49
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
50
50
|
getRioSettings(): Promise<RioSettings>;
|
|
51
|
+
getKYCRequirements(): Promise<{
|
|
52
|
+
textRequirements: "personalId" | "taxId"[];
|
|
53
|
+
fileRequirements: KYCFileType[];
|
|
54
|
+
}>;
|
|
51
55
|
createRioSettings(rioSettings: {
|
|
52
56
|
platformFee: number;
|
|
53
57
|
}): Promise<void>;
|
|
@@ -106,6 +106,12 @@ class RioClient {
|
|
|
106
106
|
return data;
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
+
getKYCRequirements() {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const { data } = yield this.axios.get(`/api/kyc/requirements`);
|
|
112
|
+
return data;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
109
115
|
createRioSettings(rioSettings) {
|
|
110
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
117
|
yield this.axios.post(`/api/settings`, rioSettings);
|