@riocrypto/common 1.0.1075 → 1.0.1077
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.
|
@@ -82,6 +82,7 @@ export declare class RioAdminClient {
|
|
|
82
82
|
getUser(userId: string): Promise<User>;
|
|
83
83
|
getAdmin(): Promise<Admin>;
|
|
84
84
|
acceptAdminTasks(adminId?: string): Promise<Admin>;
|
|
85
|
+
grantAdminAccessToUser(userId?: string): Promise<void>;
|
|
85
86
|
stopAdminTasks(adminId?: string): Promise<Admin>;
|
|
86
87
|
getAdminTasks(taskTypes: AdminTaskType[]): Promise<AdminTask[]>;
|
|
87
88
|
getAdmins(): Promise<Admin[]>;
|
|
@@ -208,6 +208,12 @@ class RioAdminClient {
|
|
|
208
208
|
return data;
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
+
grantAdminAccessToUser(userId) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
const { data } = yield this.axios.patch(`/api/users/${userId}/grant-admin-access`);
|
|
214
|
+
return data;
|
|
215
|
+
});
|
|
216
|
+
}
|
|
211
217
|
stopAdminTasks(adminId) {
|
|
212
218
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
219
|
const { data } = yield this.axios.post("/api/admin/tasks/stop", {
|