@riocrypto/common 1.0.797 → 1.0.799

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.
@@ -76,7 +76,7 @@ export declare class RioClient {
76
76
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
77
77
  createBridgePlaidLink(userId: string): Promise<string>;
78
78
  createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
79
- updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
79
+ updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
80
80
  getFeesByVolume(): Promise<{
81
81
  days: number;
82
82
  fee: number;
@@ -99,5 +99,8 @@ export declare class RioClient {
99
99
  addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
100
100
  deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
101
101
  createKushkiBankPayment(orderId: string): Promise<any>;
102
- updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
102
+ updateAuth(update: AuthUpdate, id?: string): Promise<{
103
+ auth: Auth;
104
+ missing: string[];
105
+ }>;
103
106
  }
@@ -259,9 +259,10 @@ class RioClient {
259
259
  return response.data;
260
260
  });
261
261
  }
262
- updateBankAccount(id, country, fiat, accountNumber, swiftCode, notes, approved) {
262
+ updateBankAccount(id, userId, country, fiat, accountNumber, swiftCode, notes, approved) {
263
263
  return __awaiter(this, void 0, void 0, function* () {
264
264
  const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
265
+ userId,
265
266
  country,
266
267
  fiat,
267
268
  accountNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.797",
3
+ "version": "1.0.799",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",