@riocrypto/common 1.0.1448 → 1.0.1450
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 +6 -2
- package/build/clients/rio-admin-client.js +3 -3
- package/build/clients/rio-client.d.ts +4 -1
- package/build/clients/rio-client.js +2 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/swap-provider.d.ts +5 -0
- package/build/types/swap-provider.js +9 -0
- package/package.json +1 -1
|
@@ -45,10 +45,14 @@ import { AdminAuth } from "../types/admin-auth";
|
|
|
45
45
|
import { AdminAuthInput } from "../types/admin-auth-input";
|
|
46
46
|
import { BidInput } from "../types/bid-input";
|
|
47
47
|
import { RioBankAccount } from "../types/rio-bank-account";
|
|
48
|
+
import { SwapProvider } from "../types/swap-provider";
|
|
48
49
|
export declare class RioAdminClient {
|
|
49
50
|
private axios;
|
|
50
51
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
51
|
-
getLiquidityAvailable(): Promise<
|
|
52
|
+
getLiquidityAvailable(): Promise<{
|
|
53
|
+
buy: number;
|
|
54
|
+
sell: number;
|
|
55
|
+
}>;
|
|
52
56
|
exportOrders(page: number, startDate: Date, endDate: Date, query?: OrderQuery): Promise<Order[]>;
|
|
53
57
|
getOrders(page: number, limit?: number, query?: OrderQuery, startDate?: Date, endDate?: Date): Promise<Order[]>;
|
|
54
58
|
updateOrder(id: string, update: {
|
|
@@ -161,7 +165,7 @@ export declare class RioAdminClient {
|
|
|
161
165
|
cancelChainedOrder(id?: string): Promise<void>;
|
|
162
166
|
getOrder(id: string): Promise<Order>;
|
|
163
167
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
164
|
-
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider:
|
|
168
|
+
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: SwapProvider): Promise<void>;
|
|
165
169
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
166
170
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
167
171
|
startAddressVerification(addressId: string): Promise<void>;
|
|
@@ -33,8 +33,8 @@ class RioAdminClient {
|
|
|
33
33
|
}
|
|
34
34
|
getLiquidityAvailable() {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd
|
|
37
|
-
return data
|
|
36
|
+
const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd`);
|
|
37
|
+
return data;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
exportOrders(page, startDate, endDate, query) {
|
|
@@ -570,7 +570,7 @@ class RioAdminClient {
|
|
|
570
570
|
}
|
|
571
571
|
createInternalSwap(originCrypto, destinationCrypto, amount, provider) {
|
|
572
572
|
return __awaiter(this, void 0, void 0, function* () {
|
|
573
|
-
|
|
573
|
+
yield this.axios.post(`/api/liquidity/swaps`, {
|
|
574
574
|
originCrypto,
|
|
575
575
|
destinationCrypto,
|
|
576
576
|
amount,
|
|
@@ -42,7 +42,10 @@ import { BidInput } from "../types/bid-input";
|
|
|
42
42
|
export declare class RioClient {
|
|
43
43
|
private axios;
|
|
44
44
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
45
|
-
getLiquidityAvailable(): Promise<
|
|
45
|
+
getLiquidityAvailable(): Promise<{
|
|
46
|
+
buy: number;
|
|
47
|
+
sell: number;
|
|
48
|
+
}>;
|
|
46
49
|
exportOrders(page: number, startDate: Date, endDate: Date, query?: OrderQuery): Promise<Order[]>;
|
|
47
50
|
getOrders(page: number, limit?: number, query?: OrderQuery, includeOwnOrders?: boolean, startDate?: Date, endDate?: Date): Promise<Order[]>;
|
|
48
51
|
updateOrder(id: string, update: {
|
|
@@ -31,8 +31,8 @@ class RioClient {
|
|
|
31
31
|
}
|
|
32
32
|
getLiquidityAvailable() {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd
|
|
35
|
-
return data
|
|
34
|
+
const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd`);
|
|
35
|
+
return data;
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
exportOrders(page, startDate, endDate, query) {
|
package/build/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export * from "./types/auth-role";
|
|
|
231
231
|
export * from "./types/address-verification-status";
|
|
232
232
|
export * from "./types/bank-account-verification-status";
|
|
233
233
|
export * from "./types/rio-bank-account";
|
|
234
|
+
export * from "./types/swap-provider";
|
|
234
235
|
export * from "./classes/Asset";
|
|
235
236
|
export * from "./classes/KYCFieldClass";
|
|
236
237
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -247,6 +247,7 @@ __exportStar(require("./types/auth-role"), exports);
|
|
|
247
247
|
__exportStar(require("./types/address-verification-status"), exports);
|
|
248
248
|
__exportStar(require("./types/bank-account-verification-status"), exports);
|
|
249
249
|
__exportStar(require("./types/rio-bank-account"), exports);
|
|
250
|
+
__exportStar(require("./types/swap-provider"), exports);
|
|
250
251
|
__exportStar(require("./classes/Asset"), exports);
|
|
251
252
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
252
253
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwapProvider = void 0;
|
|
4
|
+
var SwapProvider;
|
|
5
|
+
(function (SwapProvider) {
|
|
6
|
+
SwapProvider["Coinbase"] = "coinbase";
|
|
7
|
+
SwapProvider["Bitso"] = "bitso";
|
|
8
|
+
SwapProvider["Binance"] = "binance";
|
|
9
|
+
})(SwapProvider = exports.SwapProvider || (exports.SwapProvider = {}));
|