@riocrypto/common 1.0.1088 → 1.0.1091
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.
- package/build/clients/rio-admin-client.d.ts +2 -1
- package/build/clients/rio-admin-client.js +2 -5
- package/build/clients/rio-client.d.ts +2 -1
- package/build/clients/rio-client.js +2 -5
- package/build/types/bridge-external-account-query.d.ts +4 -0
- package/build/types/bridge-external-account-query.js +2 -0
- package/package.json +1 -1
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
});
|