@riocrypto/common 1.0.1310 → 1.0.1311
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.
|
@@ -61,6 +61,9 @@ export declare class RioAdminClient {
|
|
|
61
61
|
createTemporaryVerification(phoneNumber: string): Promise<{
|
|
62
62
|
code: string;
|
|
63
63
|
}>;
|
|
64
|
+
deleteTemporaryVerification(id: string): Promise<{
|
|
65
|
+
code: string;
|
|
66
|
+
}>;
|
|
64
67
|
getTemporaryVerifications(): Promise<{
|
|
65
68
|
phoneNumber: string;
|
|
66
69
|
}[]>;
|
|
@@ -104,6 +104,12 @@ class RioAdminClient {
|
|
|
104
104
|
return data;
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
+
deleteTemporaryVerification(id) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const { data } = yield this.axios.delete(`/api/auth/temporary-verifications/${id}`);
|
|
110
|
+
return data;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
107
113
|
getTemporaryVerifications() {
|
|
108
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
115
|
const response = yield this.axios.get("/api/auth/temporary-verifications");
|