@riocrypto/common 1.0.1463 → 1.0.1465

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.
@@ -49,6 +49,7 @@ import { SwapProvider } from "../types/swap-provider";
49
49
  import { SwapOrigin } from "../types/swap-origin";
50
50
  import { AddressVerification } from "../types/address-verification";
51
51
  import { BankAccountVerification } from "../types/bank-account-verification";
52
+ import { MultipartLiquidityOrder } from "../types/multipart-liquidity-order";
52
53
  export declare class RioAdminClient {
53
54
  private axios;
54
55
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -171,6 +172,8 @@ export declare class RioAdminClient {
171
172
  createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, origin: SwapOrigin, destination: SwapOrigin, provider: SwapProvider): Promise<void>;
172
173
  expediteInternalSwap(id: string): Promise<void>;
173
174
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
175
+ createMultipartOrder(amount: number): Promise<MultipartLiquidityOrder>;
176
+ getMultipartOrders(page: number, limit?: number): Promise<MultipartLiquidityOrder[]>;
174
177
  getAddressVerification(cryptoAddressId: string): Promise<AddressVerification>;
175
178
  getBankAccountVerification(bankAccountId: string): Promise<BankAccountVerification>;
176
179
  getBankPayout(orderId: string): Promise<BankPayout>;
@@ -10,6 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RioAdminClient = void 0;
13
+ const fiat_1 = require("../types/fiat");
14
+ const crypto_1 = require("../types/crypto");
13
15
  const IdentityVerificationType_1 = require("../types/IdentityVerificationType");
14
16
  class RioAdminClient {
15
17
  constructor(axios) {
@@ -596,6 +598,27 @@ class RioAdminClient {
596
598
  return data;
597
599
  });
598
600
  }
601
+ createMultipartOrder(amount) {
602
+ return __awaiter(this, void 0, void 0, function* () {
603
+ const { data } = yield this.axios.post(`/api/liquidity/multipart-orders`, {
604
+ amount,
605
+ originFiat: fiat_1.Fiat.USD,
606
+ destinationCrypto: crypto_1.Crypto.USDTEthereum,
607
+ });
608
+ return data;
609
+ });
610
+ }
611
+ getMultipartOrders(page, limit) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ const { data } = yield this.axios.get(`/api/liquidity/multipart-orders`, {
614
+ params: {
615
+ page,
616
+ limit,
617
+ },
618
+ });
619
+ return data;
620
+ });
621
+ }
599
622
  getAddressVerification(cryptoAddressId) {
600
623
  return __awaiter(this, void 0, void 0, function* () {
601
624
  const { data } = yield this.axios.get(`/api/addresses/verification?`, {
package/build/index.d.ts CHANGED
@@ -235,6 +235,7 @@ export * from "./types/swap-provider";
235
235
  export * from "./types/swap-origin";
236
236
  export * from "./types/address-verification";
237
237
  export * from "./types/bank-account-verification";
238
+ export * from "./types/multipart-liquidity-order";
238
239
  export * from "./classes/Asset";
239
240
  export * from "./classes/KYCFieldClass";
240
241
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -251,6 +251,7 @@ __exportStar(require("./types/swap-provider"), exports);
251
251
  __exportStar(require("./types/swap-origin"), exports);
252
252
  __exportStar(require("./types/address-verification"), exports);
253
253
  __exportStar(require("./types/bank-account-verification"), exports);
254
+ __exportStar(require("./types/multipart-liquidity-order"), exports);
254
255
  __exportStar(require("./classes/Asset"), exports);
255
256
  __exportStar(require("./classes/KYCFieldClass"), exports);
256
257
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -16,30 +16,4 @@ var Crypto;
16
16
  Crypto["USDTTron"] = "TRX_USDT_S2UZ";
17
17
  Crypto["SOL"] = "SOL";
18
18
  Crypto["TRON"] = "TRX";
19
- // XLM = "XLM",
20
- // sUSDC = "sUSDC",
21
- // AVAX = "AVAX",
22
- // AVAX = "AVAX",
23
- // AVAXCUSDC = "AVAXCUSDC",
24
- // DAI = "DAI",
25
- // mUSDC = "mUSDC",
26
- // MATIC = "MATIC",
27
- // USDT = "USDT",
28
- // BUSD = "BUSD",
29
- // GUSD = "GUSD",
30
- // PAX = "PAX",
31
- // AAVE = "AAVE",
32
- // COMP = "COMP",
33
- // LINK = "LINK",
34
- // WBTC = "WBTC",
35
- // WETH = "WETH",
36
- // BAT = "BAT",
37
- // CRV = "CRV",
38
- // MKR = "MKR",
39
- // SNX = "SNX",
40
- // UNI = "UNI",
41
- // YFI = "YFI",
42
- // ALGO = "ALGO",
43
- // AUSDC = "AUSDC",
44
- // AUSDT = "AUSDT",
45
19
  })(Crypto = exports.Crypto || (exports.Crypto = {}));
@@ -0,0 +1,10 @@
1
+ import { Fiat } from "./fiat";
2
+ export interface MultipartLiquidityOrder {
3
+ createdAt: Date;
4
+ destinationCrypto: Crypto;
5
+ originFiat: Fiat;
6
+ amountFiat: number;
7
+ amountCrypto?: number;
8
+ status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdrawn" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawn" | "done";
9
+ coinbaseOrderId?: string;
10
+ }
@@ -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.1463",
3
+ "version": "1.0.1465",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",