@riocrypto/common 1.0.894 → 1.0.896

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,8 +71,8 @@ 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>;
@@ -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
  }
@@ -8,6 +8,7 @@ export interface QuoteInput {
8
8
  crypto: Crypto;
9
9
  fiat: Fiat;
10
10
  country: Country;
11
+ quoteInCrypto: boolean;
11
12
  amountFiat?: number;
12
13
  amountCrypto?: number;
13
14
  brokerId?: string;
@@ -15,6 +15,7 @@ export interface Quote {
15
15
  side: Side;
16
16
  fiat: Fiat;
17
17
  createdAt: Date;
18
+ quoteInCrypto: boolean;
18
19
  paymentMethod?: PaymentMethod;
19
20
  payoutMethod?: PayoutMethod;
20
21
  expiresAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.894",
3
+ "version": "1.0.896",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",