@riocrypto/common 1.0.675 → 1.0.678
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.
|
@@ -33,7 +33,7 @@ export declare class RioAdminClient {
|
|
|
33
33
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
34
34
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
35
35
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
36
|
-
|
|
36
|
+
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
37
37
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
38
38
|
updateAdmin(update: {
|
|
39
39
|
email?: string;
|
|
@@ -86,7 +86,7 @@ class RioAdminClient {
|
|
|
86
86
|
return data;
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
uploadCSF(id, formData) {
|
|
90
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
91
|
const { data } = yield this.axios.post(`/api/users/${id}/csf`, formData);
|
|
92
92
|
return data;
|
|
@@ -8,10 +8,12 @@ const humanizeKYCStatus = (status) => {
|
|
|
8
8
|
return "Failed";
|
|
9
9
|
case kyc_status_1.KYCStatus.Review:
|
|
10
10
|
return "Review";
|
|
11
|
-
case kyc_status_1.KYCStatus.
|
|
12
|
-
return "
|
|
13
|
-
case kyc_status_1.KYCStatus.
|
|
14
|
-
return "Passed";
|
|
11
|
+
case kyc_status_1.KYCStatus.Approved:
|
|
12
|
+
return "Approved";
|
|
13
|
+
case kyc_status_1.KYCStatus.LegalRepresentativePassed:
|
|
14
|
+
return "Legal Representative Passed";
|
|
15
|
+
case kyc_status_1.KYCStatus.LegalRepresentativeFailed:
|
|
16
|
+
return "Legal Representative Failed";
|
|
15
17
|
case kyc_status_1.KYCStatus.None:
|
|
16
18
|
return "None";
|
|
17
19
|
default:
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum KYCStatus {
|
|
2
|
-
|
|
2
|
+
Approved = "approved",
|
|
3
|
+
LegalRepresentativePassed = "legalRepresentativeApproved",
|
|
4
|
+
LegalRepresentativeFailed = "legalRepresentativeFailed",
|
|
3
5
|
Failed = "failed",
|
|
4
6
|
Review = "review",
|
|
5
|
-
businessApproved = "businessApproved",
|
|
6
7
|
None = "none"
|
|
7
8
|
}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.KYCStatus = void 0;
|
|
4
4
|
var KYCStatus;
|
|
5
5
|
(function (KYCStatus) {
|
|
6
|
-
KYCStatus["
|
|
6
|
+
KYCStatus["Approved"] = "approved";
|
|
7
|
+
KYCStatus["LegalRepresentativePassed"] = "legalRepresentativeApproved";
|
|
8
|
+
KYCStatus["LegalRepresentativeFailed"] = "legalRepresentativeFailed";
|
|
7
9
|
KYCStatus["Failed"] = "failed";
|
|
8
10
|
KYCStatus["Review"] = "review";
|
|
9
|
-
KYCStatus["businessApproved"] = "businessApproved";
|
|
10
11
|
KYCStatus["None"] = "none";
|
|
11
12
|
})(KYCStatus = exports.KYCStatus || (exports.KYCStatus = {}));
|