@riocrypto/common 1.0.1003 → 1.0.1005

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.
@@ -69,6 +69,7 @@ export declare class RioClient {
69
69
  createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
70
70
  cancelOrder(id?: string): Promise<Order>;
71
71
  getOrder(id: string): Promise<Order>;
72
+ getChainedOrder(id: string): Promise<ChainedOrder>;
72
73
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
73
74
  getBankPayout(orderId: string): Promise<BankPayout>;
74
75
  getBridgeOnboardingLinks(userId: string): Promise<{
@@ -214,6 +214,12 @@ class RioClient {
214
214
  return response.data;
215
215
  });
216
216
  }
217
+ getChainedOrder(id) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const response = yield this.axios.get(`/api/orders/chained/${id}`);
220
+ return response.data;
221
+ });
222
+ }
217
223
  createBankPayout(oid, bankAccountId) {
218
224
  return __awaiter(this, void 0, void 0, function* () {
219
225
  const response = yield this.axios.post(`/api/payouts/bank`, {
@@ -6,7 +6,7 @@ export interface ChainedQuoteInput {
6
6
  destinationUserId: string;
7
7
  crypto?: Crypto;
8
8
  originFiat: Fiat;
9
- destiantionFiat: Fiat;
9
+ destinationFiat: Fiat;
10
10
  amountOriginFiat: number;
11
11
  originCountry: Country;
12
12
  destinationCountry: Country;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1003",
3
+ "version": "1.0.1005",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",