@riocrypto/common 1.0.842 → 1.0.844

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.
@@ -65,7 +65,7 @@ export declare class RioAdminClient {
65
65
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
66
66
  confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
67
67
  confirmBankPayout(orderId: string): Promise<any>;
68
- getUser(): Promise<User>;
68
+ getUser(userId: string): Promise<User>;
69
69
  getAdmin(): Promise<Admin>;
70
70
  acceptAdminTasks(): Promise<Admin>;
71
71
  stopAdminTasks(): Promise<Admin>;
@@ -170,9 +170,9 @@ class RioAdminClient {
170
170
  return data;
171
171
  });
172
172
  }
173
- getUser() {
173
+ getUser(userId) {
174
174
  return __awaiter(this, void 0, void 0, function* () {
175
- const { data } = yield this.axios.get("/api/users");
175
+ const { data } = yield this.axios.get(`/api/users/${userId}`);
176
176
  return data;
177
177
  });
178
178
  }
@@ -5,4 +5,5 @@ export interface AdminTask {
5
5
  createdAt: Date;
6
6
  orderId?: string;
7
7
  userId?: string;
8
+ bankAccountId?: string;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.842",
3
+ "version": "1.0.844",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",