@riocrypto/common 1.0.1449 → 1.0.1451

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.
@@ -45,6 +45,7 @@ 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);
@@ -164,7 +165,7 @@ export declare class RioAdminClient {
164
165
  cancelChainedOrder(id?: string): Promise<void>;
165
166
  getOrder(id: string): Promise<Order>;
166
167
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
167
- createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: "coinbase" | "circle"): Promise<void>;
168
+ createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: SwapProvider): Promise<void>;
168
169
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
169
170
  getBankPayout(orderId: string): Promise<BankPayout>;
170
171
  startAddressVerification(addressId: string): Promise<void>;
@@ -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
- const response = yield this.axios.post(`/api/liquidity/swaps`, {
573
+ yield this.axios.post(`/api/liquidity/swaps`, {
574
574
  originCrypto,
575
575
  destinationCrypto,
576
576
  amount,
package/build/index.d.ts CHANGED
@@ -231,6 +231,8 @@ 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";
235
+ export * from "./types/swap-origin";
234
236
  export * from "./classes/Asset";
235
237
  export * from "./classes/KYCFieldClass";
236
238
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -247,6 +247,8 @@ __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);
251
+ __exportStar(require("./types/swap-origin"), exports);
250
252
  __exportStar(require("./classes/Asset"), exports);
251
253
  __exportStar(require("./classes/KYCFieldClass"), exports);
252
254
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum SwapOrigin {
2
+ Fireblocks = "fireblocks",
3
+ Coinbase = "coinbase",
4
+ Bitso = "bitso",
5
+ Binance = "binance"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwapOrigin = void 0;
4
+ var SwapOrigin;
5
+ (function (SwapOrigin) {
6
+ SwapOrigin["Fireblocks"] = "fireblocks";
7
+ SwapOrigin["Coinbase"] = "coinbase";
8
+ SwapOrigin["Bitso"] = "bitso";
9
+ SwapOrigin["Binance"] = "binance";
10
+ })(SwapOrigin = exports.SwapOrigin || (exports.SwapOrigin = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum SwapProvider {
2
+ Coinbase = "coinbase",
3
+ Bitso = "bitso",
4
+ Binance = "binance"
5
+ }
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1449",
3
+ "version": "1.0.1451",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",