@riocrypto/common 1.0.1309 → 1.0.1310
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.
|
@@ -58,6 +58,12 @@ export declare class RioAdminClient {
|
|
|
58
58
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
59
59
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
60
60
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
61
|
+
createTemporaryVerification(phoneNumber: string): Promise<{
|
|
62
|
+
code: string;
|
|
63
|
+
}>;
|
|
64
|
+
getTemporaryVerifications(): Promise<{
|
|
65
|
+
phoneNumber: string;
|
|
66
|
+
}[]>;
|
|
61
67
|
getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
62
68
|
textRequirements: ("personalId" | "taxId")[];
|
|
63
69
|
fileRequirements: KYCFileType[];
|
|
@@ -96,6 +96,20 @@ class RioAdminClient {
|
|
|
96
96
|
return data;
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
+
createTemporaryVerification(phoneNumber) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const { data } = yield this.axios.post("/api/auth/temporary-verifications", {
|
|
102
|
+
phoneNumber,
|
|
103
|
+
});
|
|
104
|
+
return data;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
getTemporaryVerifications() {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const response = yield this.axios.get("/api/auth/temporary-verifications");
|
|
110
|
+
return response.data;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
99
113
|
getOnboardingRequirements(userType, country, countryOfOrigin) {
|
|
100
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
115
|
const { data } = yield this.axios.get(`/api/users/requirements`, {
|