@riocrypto/common 1.0.1246 → 1.0.1248
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.
|
@@ -54,7 +54,7 @@ export declare class RioAdminClient {
|
|
|
54
54
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
55
55
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
56
56
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
57
|
-
|
|
57
|
+
getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
58
58
|
textRequirements: ("personalId" | "taxId")[];
|
|
59
59
|
fileRequirements: KYCFileType[];
|
|
60
60
|
}>;
|
|
@@ -63,6 +63,7 @@ export declare class RioAdminClient {
|
|
|
63
63
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
64
64
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
65
65
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
66
|
+
sendVerificationEmail(userId: string, country: Country): Promise<void>;
|
|
66
67
|
updateAdmin(update: {
|
|
67
68
|
email?: string;
|
|
68
69
|
password?: string;
|
|
@@ -91,9 +91,9 @@ class RioAdminClient {
|
|
|
91
91
|
return data;
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
getOnboardingRequirements(userType, country, countryOfOrigin) {
|
|
95
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
const { data } = yield this.axios.get(`/api/
|
|
96
|
+
const { data } = yield this.axios.get(`/api/users/requirements`, {
|
|
97
97
|
params: {
|
|
98
98
|
type: userType,
|
|
99
99
|
country,
|
|
@@ -137,6 +137,14 @@ class RioAdminClient {
|
|
|
137
137
|
return data.link;
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
sendVerificationEmail(userId, country) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
yield this.axios.post("/api/kyc/email", {
|
|
143
|
+
userId,
|
|
144
|
+
country,
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
}
|
|
140
148
|
updateAdmin(update) {
|
|
141
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
150
|
const { data } = yield this.axios.patch(`/api/auth/admin`, update);
|
|
@@ -49,7 +49,8 @@ export declare class RioClient {
|
|
|
49
49
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
50
50
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
51
51
|
getRioSettings(): Promise<RioSettings>;
|
|
52
|
-
|
|
52
|
+
sendVerificationEmail(userId: string, country: Country): Promise<void>;
|
|
53
|
+
getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
53
54
|
textRequirements: ("personalId" | "taxId")[];
|
|
54
55
|
fileRequirements: KYCFileType[];
|
|
55
56
|
}>;
|
|
@@ -106,9 +106,17 @@ class RioClient {
|
|
|
106
106
|
return data;
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
sendVerificationEmail(userId, country) {
|
|
110
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
|
|
111
|
+
yield this.axios.post("/api/kyc/email", {
|
|
112
|
+
userId,
|
|
113
|
+
country,
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
getOnboardingRequirements(userType, country, countryOfOrigin) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const { data } = yield this.axios.get(`/api/users/requirements`, {
|
|
112
120
|
params: {
|
|
113
121
|
type: userType,
|
|
114
122
|
country,
|