@riocrypto/common 1.0.1089 → 1.0.1092

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.
@@ -35,6 +35,7 @@ import { ChainedQuote } from "../types/chained-quote";
35
35
  import { ChainedOrderInput } from "../types/chained-order-input";
36
36
  import { InternalSwap } from "../types/internal-swap";
37
37
  import { CountryOfOrigin } from "../types/country-of-origin";
38
+ import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
38
39
  export declare class RioAdminClient {
39
40
  private axios;
40
41
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -63,7 +64,7 @@ export declare class RioAdminClient {
63
64
  tosLink: string;
64
65
  kycLink: string;
65
66
  }>;
66
- getBridgeExternalAccounts(userId?: string, brokerId?: string): Promise<{
67
+ getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<{
67
68
  id: string;
68
69
  bank_name: string;
69
70
  account_owner_name: string;
@@ -121,13 +121,10 @@ class RioAdminClient {
121
121
  return data;
122
122
  });
123
123
  }
124
- getBridgeExternalAccounts(userId, brokerId) {
124
+ getBridgeExternalAccounts(query) {
125
125
  return __awaiter(this, void 0, void 0, function* () {
126
126
  const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
127
- params: {
128
- userId: userId ? userId : undefined,
129
- brokerId: brokerId ? brokerId : undefined,
130
- },
127
+ params: Object.assign({}, query),
131
128
  });
132
129
  return data;
133
130
  });
@@ -30,6 +30,7 @@ import { ChainedOrderInput } from "../types/chained-order-input";
30
30
  import { ChainedOrder } from "../types/chained-order";
31
31
  import { ChainedOrderQuery } from "../types/chained-order-query";
32
32
  import { CountryOfOrigin } from "../types/country-of-origin";
33
+ import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
33
34
  export declare class RioClient {
34
35
  private axios;
35
36
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -80,7 +81,7 @@ export declare class RioClient {
80
81
  tosLink: string;
81
82
  kycLink: string;
82
83
  }>;
83
- getBridgeExternalAccounts(userId?: string, brokerId?: string): Promise<{
84
+ getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<{
84
85
  id: string;
85
86
  bank_name: string;
86
87
  account_owner_name: string;
@@ -255,13 +255,10 @@ class RioClient {
255
255
  return data;
256
256
  });
257
257
  }
258
- getBridgeExternalAccounts(userId, brokerId) {
258
+ getBridgeExternalAccounts(query) {
259
259
  return __awaiter(this, void 0, void 0, function* () {
260
260
  const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
261
- params: {
262
- userId: userId ? userId : undefined,
263
- brokerId: brokerId ? brokerId : undefined,
264
- },
261
+ params: Object.assign({}, query),
265
262
  });
266
263
  return data;
267
264
  });
@@ -1,4 +1,6 @@
1
1
  export interface BridgeExternalAccount {
2
- userId: string;
3
- bridgeExternalAccountId: string;
2
+ id: string;
3
+ bank_name: string;
4
+ account_owner_name: string;
5
+ last_4: string;
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1089",
3
+ "version": "1.0.1092",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",