@riocrypto/common 1.0.1181 → 1.0.1183
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.
|
@@ -85,7 +85,7 @@ export declare class RioAdminClient {
|
|
|
85
85
|
acceptAdminTasks(adminId?: string): Promise<Admin>;
|
|
86
86
|
grantAdminAccessToUser(userId?: string): Promise<void>;
|
|
87
87
|
stopAdminTasks(adminId?: string): Promise<Admin>;
|
|
88
|
-
getAdminTasks(taskTypes
|
|
88
|
+
getAdminTasks(taskTypes?: AdminTaskType[]): Promise<AdminTask[]>;
|
|
89
89
|
getAdmins(): Promise<Admin[]>;
|
|
90
90
|
markAdminTaskComplete(id: string): Promise<AdminTask>;
|
|
91
91
|
createUser(user: UserInput): Promise<User>;
|
|
@@ -232,9 +232,8 @@ class RioAdminClient {
|
|
|
232
232
|
}
|
|
233
233
|
getAdminTasks(taskTypes) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
-
const taskTypeString = taskTypes.join(",");
|
|
236
235
|
const { data } = yield this.axios.get("/api/admin/tasks", {
|
|
237
|
-
params: { taskTypes:
|
|
236
|
+
params: { taskTypes: taskTypes ? taskTypes.join(",") : undefined },
|
|
238
237
|
});
|
|
239
238
|
return data;
|
|
240
239
|
});
|
package/build/types/order.d.ts
CHANGED