@riocrypto/common 1.0.890 → 1.0.892

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.
@@ -74,6 +74,7 @@ export declare class RioAdminClient {
74
74
  acceptAdminTasks(): Promise<Admin>;
75
75
  stopAdminTasks(): Promise<Admin>;
76
76
  getAdminTasks(taskTypes: AdminTaskType[]): Promise<AdminTask[]>;
77
+ getAdminsAcceptingTasks(): Promise<Admin[]>;
77
78
  markAdminTaskComplete(id: string): Promise<AdminTask>;
78
79
  createUser(user: UserInput): Promise<User>;
79
80
  getBankPayment(orderId: string): Promise<BankPayment>;
@@ -203,6 +203,12 @@ class RioAdminClient {
203
203
  return data;
204
204
  });
205
205
  }
206
+ getAdminsAcceptingTasks() {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const { data } = yield this.axios.get("/api/admin/tasks/admins-accepting-tasks");
209
+ return data;
210
+ });
211
+ }
206
212
  markAdminTaskComplete(id) {
207
213
  return __awaiter(this, void 0, void 0, function* () {
208
214
  const { data } = yield this.axios.patch(`/api/admin/tasks/${id}/complete`);
@@ -15,5 +15,5 @@ export interface QuoteInput {
15
15
  markup?: number;
16
16
  netPrice?: number;
17
17
  orderId?: string;
18
- noMarkups: boolean;
18
+ noMarkups?: boolean;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.890",
3
+ "version": "1.0.892",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",