@riocrypto/common 1.0.1087 → 1.0.1089

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.
@@ -63,7 +63,7 @@ export declare class RioAdminClient {
63
63
  tosLink: string;
64
64
  kycLink: string;
65
65
  }>;
66
- getBridgeExternalAccounts(userId: string): Promise<{
66
+ getBridgeExternalAccounts(userId?: string, brokerId?: string): Promise<{
67
67
  id: string;
68
68
  bank_name: string;
69
69
  account_owner_name: string;
@@ -121,11 +121,12 @@ class RioAdminClient {
121
121
  return data;
122
122
  });
123
123
  }
124
- getBridgeExternalAccounts(userId) {
124
+ getBridgeExternalAccounts(userId, brokerId) {
125
125
  return __awaiter(this, void 0, void 0, function* () {
126
126
  const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
127
127
  params: {
128
- userId,
128
+ userId: userId ? userId : undefined,
129
+ brokerId: brokerId ? brokerId : undefined,
129
130
  },
130
131
  });
131
132
  return data;
@@ -80,7 +80,7 @@ export declare class RioClient {
80
80
  tosLink: string;
81
81
  kycLink: string;
82
82
  }>;
83
- getBridgeExternalAccounts(userId: string): Promise<{
83
+ getBridgeExternalAccounts(userId?: string, brokerId?: string): Promise<{
84
84
  id: string;
85
85
  bank_name: string;
86
86
  account_owner_name: string;
@@ -255,11 +255,12 @@ class RioClient {
255
255
  return data;
256
256
  });
257
257
  }
258
- getBridgeExternalAccounts(userId) {
258
+ getBridgeExternalAccounts(userId, brokerId) {
259
259
  return __awaiter(this, void 0, void 0, function* () {
260
260
  const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
261
261
  params: {
262
- userId,
262
+ userId: userId ? userId : undefined,
263
+ brokerId: brokerId ? brokerId : undefined,
263
264
  },
264
265
  });
265
266
  return data;
@@ -0,0 +1,4 @@
1
+ export interface BridgeExternalAccountQuery {
2
+ userId?: string;
3
+ brokerId?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1087",
3
+ "version": "1.0.1089",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",