@riocrypto/common 1.0.805 → 1.0.807

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.
@@ -24,6 +24,7 @@ import { OrderUpdate } from "../types/order-update";
24
24
  import { QuoteInput } from "../types/quote-input";
25
25
  import { OrderQuery } from "../types/order-query";
26
26
  import { UserQuery } from "../types/user-query";
27
+ import { BankAccountQuery } from "../types/bank-account-query";
27
28
  export declare class RioAdminClient {
28
29
  private axios;
29
30
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -103,7 +104,7 @@ export declare class RioAdminClient {
103
104
  x: number;
104
105
  }>;
105
106
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
106
- getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
107
+ getBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<BankAccount[]>;
107
108
  getBankAccount(id: string): Promise<BankAccount>;
108
109
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
109
110
  getPartner(partnerId: string): Promise<Partner>;
@@ -354,10 +354,11 @@ class RioAdminClient {
354
354
  return response.data;
355
355
  });
356
356
  }
357
- getBankAccounts(page, limit) {
357
+ getBankAccounts(page, limit, query) {
358
358
  return __awaiter(this, void 0, void 0, function* () {
359
359
  const response = yield this.axios.get(`/api/bank/accounts`, {
360
- params: { page, limit },
360
+ params: Object.assign({ page,
361
+ limit }, query),
361
362
  });
362
363
  return response.data;
363
364
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.805",
3
+ "version": "1.0.807",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",