@riocrypto/common 1.0.1470 → 1.0.1472
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.
|
@@ -50,6 +50,7 @@ import { SwapOrigin } from "../types/swap-origin";
|
|
|
50
50
|
import { AddressVerification } from "../types/address-verification";
|
|
51
51
|
import { BankAccountVerification } from "../types/bank-account-verification";
|
|
52
52
|
import { MultipartLiquidityOrder } from "../types/multipart-liquidity-order";
|
|
53
|
+
import { LiquidityOrderRecipe } from "../types/liquidity-order-recipe";
|
|
53
54
|
export declare class RioAdminClient {
|
|
54
55
|
private axios;
|
|
55
56
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -172,7 +173,7 @@ export declare class RioAdminClient {
|
|
|
172
173
|
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, origin: SwapOrigin, destination: SwapOrigin, provider: SwapProvider): Promise<void>;
|
|
173
174
|
expediteInternalSwap(id: string): Promise<void>;
|
|
174
175
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
175
|
-
createMultipartOrder(amount: number): Promise<MultipartLiquidityOrder>;
|
|
176
|
+
createMultipartOrder(amount: number, recipe: LiquidityOrderRecipe): Promise<MultipartLiquidityOrder>;
|
|
176
177
|
getMultipartOrders(page: number, limit?: number): Promise<MultipartLiquidityOrder[]>;
|
|
177
178
|
getAddressVerification(cryptoAddressId: string): Promise<AddressVerification>;
|
|
178
179
|
getBankAccountVerification(bankAccountId: string): Promise<BankAccountVerification>;
|
|
@@ -10,8 +10,6 @@ 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");
|
|
15
13
|
const IdentityVerificationType_1 = require("../types/IdentityVerificationType");
|
|
16
14
|
class RioAdminClient {
|
|
17
15
|
constructor(axios) {
|
|
@@ -598,12 +596,11 @@ class RioAdminClient {
|
|
|
598
596
|
return data;
|
|
599
597
|
});
|
|
600
598
|
}
|
|
601
|
-
createMultipartOrder(amount) {
|
|
599
|
+
createMultipartOrder(amount, recipe) {
|
|
602
600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
603
601
|
const { data } = yield this.axios.post(`/api/liquidity/multipart-orders`, {
|
|
604
602
|
amount,
|
|
605
|
-
|
|
606
|
-
destinationCrypto: crypto_1.Crypto.USDTEthereum,
|
|
603
|
+
recipe,
|
|
607
604
|
});
|
|
608
605
|
return data;
|
|
609
606
|
});
|
package/build/index.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ export * from "./types/swap-origin";
|
|
|
236
236
|
export * from "./types/address-verification";
|
|
237
237
|
export * from "./types/bank-account-verification";
|
|
238
238
|
export * from "./types/multipart-liquidity-order";
|
|
239
|
+
export * from "./types/liquidity-order-recipe";
|
|
239
240
|
export * from "./classes/Asset";
|
|
240
241
|
export * from "./classes/KYCFieldClass";
|
|
241
242
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -252,6 +252,7 @@ __exportStar(require("./types/swap-origin"), exports);
|
|
|
252
252
|
__exportStar(require("./types/address-verification"), exports);
|
|
253
253
|
__exportStar(require("./types/bank-account-verification"), exports);
|
|
254
254
|
__exportStar(require("./types/multipart-liquidity-order"), exports);
|
|
255
|
+
__exportStar(require("./types/liquidity-order-recipe"), exports);
|
|
255
256
|
__exportStar(require("./classes/Asset"), exports);
|
|
256
257
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
257
258
|
__exportStar(require("./classes/KYCFileClass"), exports);
|