@riocrypto/common 1.0.837 → 1.0.838
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.
|
@@ -65,6 +65,8 @@ export declare class RioAdminClient {
|
|
|
65
65
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
66
66
|
getUser(): Promise<User>;
|
|
67
67
|
getAdmin(): Promise<Admin>;
|
|
68
|
+
acceptAdminTasks(): Promise<Admin>;
|
|
69
|
+
stopAdminTasks(): Promise<Admin>;
|
|
68
70
|
createUser(user: UserInput): Promise<User>;
|
|
69
71
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
70
72
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
@@ -182,6 +182,18 @@ class RioAdminClient {
|
|
|
182
182
|
return data;
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
+
acceptAdminTasks() {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const { data } = yield this.axios.post("/api/admin/tasks/accept");
|
|
188
|
+
return data;
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
stopAdminTasks() {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const { data } = yield this.axios.post("/api/admin/tasks/stop");
|
|
194
|
+
return data;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
185
197
|
createUser(user) {
|
|
186
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
199
|
const { data } = yield this.axios.post("/api/users", user);
|