@riocrypto/common 1.0.1061 → 1.0.1063

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.
@@ -114,7 +114,7 @@ export declare class RioAdminClient {
114
114
  getOrder(id: string): Promise<Order>;
115
115
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
116
116
  createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number): Promise<void>;
117
- getInternalSwaps(): Promise<InternalSwap[]>;
117
+ getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
118
118
  getBankPayout(orderId: string): Promise<BankPayout>;
119
119
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
120
120
  createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
@@ -407,10 +407,15 @@ class RioAdminClient {
407
407
  });
408
408
  });
409
409
  }
410
- getInternalSwaps() {
410
+ getInternalSwaps(page, limit) {
411
411
  return __awaiter(this, void 0, void 0, function* () {
412
- const response = yield this.axios.get(`/api/liquidity/swaps`);
413
- return response.data;
412
+ const { data } = yield this.axios.get(`/api/liquidity/swaps`, {
413
+ params: {
414
+ page,
415
+ limit,
416
+ },
417
+ });
418
+ return data;
414
419
  });
415
420
  }
416
421
  getBankPayout(orderId) {
@@ -1,4 +1,5 @@
1
1
  export interface InternalSwap {
2
+ id: string;
2
3
  createdAt: Date;
3
4
  adminId: string;
4
5
  originCrypto: Crypto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1061",
3
+ "version": "1.0.1063",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",