@riocrypto/common 1.0.616 → 1.0.617

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.
@@ -23,7 +23,7 @@ export declare class RioClient {
23
23
  private axios;
24
24
  constructor(axios: AxiosStatic | AxiosInstance);
25
25
  getOrders(): Promise<Order[]>;
26
- getUsers(type?: UserType): Promise<User[]>;
26
+ getUsers(type?: UserType, brokerId?: string): Promise<User[]>;
27
27
  signinAdmin(email: string, password: string): Promise<any>;
28
28
  updateUser(update: UserUpdate, userId?: string): Promise<User>;
29
29
  uploadBusinessCOI(id: string, formData: FormData): Promise<User>;
@@ -42,7 +42,7 @@ export declare class RioClient {
42
42
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
43
43
  confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
44
44
  confirmBankPayout(orderId: string): Promise<any>;
45
- getUser(id?: string): Promise<User>;
45
+ getUser(): Promise<User>;
46
46
  createUser(user: UserInput): Promise<void>;
47
47
  getBankPayment(orderId: string): Promise<BankPayment>;
48
48
  verifyBankPayment(orderId: string): Promise<any>;
@@ -20,11 +20,12 @@ class RioClient {
20
20
  return data;
21
21
  });
22
22
  }
23
- getUsers(type) {
23
+ getUsers(type, brokerId) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  const { data } = yield this.axios.get(`/api/users`, {
26
26
  params: {
27
27
  type,
28
+ brokerId,
28
29
  },
29
30
  });
30
31
  return data;
@@ -108,9 +109,9 @@ class RioClient {
108
109
  return data;
109
110
  });
110
111
  }
111
- getUser(id) {
112
+ getUser() {
112
113
  return __awaiter(this, void 0, void 0, function* () {
113
- const { data } = yield this.axios.get("/api/users" + id ? `/${id}` : "");
114
+ const { data } = yield this.axios.get("/api/users");
114
115
  return data;
115
116
  });
116
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.616",
3
+ "version": "1.0.617",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",