@riocrypto/common 1.0.893 → 1.0.895
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.
|
@@ -71,10 +71,10 @@ export declare class RioAdminClient {
|
|
|
71
71
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
72
72
|
getUser(userId: string): Promise<User>;
|
|
73
73
|
getAdmin(): Promise<Admin>;
|
|
74
|
-
acceptAdminTasks(): Promise<Admin>;
|
|
75
|
-
stopAdminTasks(): Promise<Admin>;
|
|
74
|
+
acceptAdminTasks(adminId?: string): Promise<Admin>;
|
|
75
|
+
stopAdminTasks(adminId?: string): Promise<Admin>;
|
|
76
76
|
getAdminTasks(taskTypes: AdminTaskType[]): Promise<AdminTask[]>;
|
|
77
|
-
|
|
77
|
+
getAdmins(): Promise<Admin[]>;
|
|
78
78
|
markAdminTaskComplete(id: string): Promise<AdminTask>;
|
|
79
79
|
createUser(user: UserInput): Promise<User>;
|
|
80
80
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
@@ -182,15 +182,19 @@ class RioAdminClient {
|
|
|
182
182
|
return data;
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
acceptAdminTasks() {
|
|
185
|
+
acceptAdminTasks(adminId) {
|
|
186
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
-
const { data } = yield this.axios.post("/api/admin/tasks/accept"
|
|
187
|
+
const { data } = yield this.axios.post("/api/admin/tasks/accept", {
|
|
188
|
+
adminId: adminId ? adminId : undefined,
|
|
189
|
+
});
|
|
188
190
|
return data;
|
|
189
191
|
});
|
|
190
192
|
}
|
|
191
|
-
stopAdminTasks() {
|
|
193
|
+
stopAdminTasks(adminId) {
|
|
192
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
const { data } = yield this.axios.post("/api/admin/tasks/stop"
|
|
195
|
+
const { data } = yield this.axios.post("/api/admin/tasks/stop", {
|
|
196
|
+
adminId: adminId ? adminId : undefined,
|
|
197
|
+
});
|
|
194
198
|
return data;
|
|
195
199
|
});
|
|
196
200
|
}
|
|
@@ -203,9 +207,9 @@ class RioAdminClient {
|
|
|
203
207
|
return data;
|
|
204
208
|
});
|
|
205
209
|
}
|
|
206
|
-
|
|
210
|
+
getAdmins() {
|
|
207
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
const { data } = yield this.axios.get("/api/admin/
|
|
212
|
+
const { data } = yield this.axios.get("/api/admin/all");
|
|
209
213
|
return data;
|
|
210
214
|
});
|
|
211
215
|
}
|