@riocrypto/common 1.0.1034 → 1.0.1035

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.
@@ -32,6 +32,7 @@ import { ChainedOrderQuery } from "../types/chained-order-query";
32
32
  import { ChainedOrder } from "../types/chained-order";
33
33
  import { ChainedQuoteInput } from "../types/chained-quote-input";
34
34
  import { ChainedQuote } from "../types/chained-quote";
35
+ import { ChainedOrderInput } from "../types/chained-order-input";
35
36
  export declare class RioAdminClient {
36
37
  private axios;
37
38
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -112,6 +113,7 @@ export declare class RioAdminClient {
112
113
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
113
114
  getBankPayout(orderId: string): Promise<BankPayout>;
114
115
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
116
+ createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
115
117
  createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
116
118
  createChainedQuote(input: ChainedQuoteInput): Promise<ChainedQuote>;
117
119
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CCI?: string, notes?: string): Promise<BankAccount>;
@@ -394,6 +394,12 @@ class RioAdminClient {
394
394
  return data;
395
395
  });
396
396
  }
397
+ createChainedOrder(order) {
398
+ return __awaiter(this, void 0, void 0, function* () {
399
+ const response = yield this.axios.post("/api/orders/chained", order);
400
+ return response.data;
401
+ });
402
+ }
397
403
  createCryptoAddress(address, crypto, userId, label) {
398
404
  return __awaiter(this, void 0, void 0, function* () {
399
405
  const response = yield this.axios.post(`/api/addresses`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1034",
3
+ "version": "1.0.1035",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",