@riocrypto/common 1.0.1010 → 1.0.1012

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.
@@ -28,10 +28,12 @@ import { ChainedQuoteInput } from "../types/chained-quote-input";
28
28
  import { ChainedQuote } from "../types/chained-quote";
29
29
  import { ChainedOrderInput } from "../types/chained-order-input";
30
30
  import { ChainedOrder } from "../types/chained-order";
31
+ import { ChainedOrderQuery } from "../types/chained-order-query";
31
32
  export declare class RioClient {
32
33
  private axios;
33
34
  constructor(axios: AxiosStatic | AxiosInstance);
34
35
  getOrders(page: number, limit?: number, query?: OrderQuery, includeOwnOrders?: boolean): Promise<Order[]>;
36
+ getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery, includeOwnOrders?: boolean): Promise<ChainedOrder[]>;
35
37
  createQuote(input: QuoteInput): Promise<Quote>;
36
38
  createChainedQuote(input: ChainedQuoteInput): Promise<ChainedQuote>;
37
39
  getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
@@ -30,6 +30,15 @@ class RioClient {
30
30
  return data;
31
31
  });
32
32
  }
33
+ getChainedOrders(page, limit, query, includeOwnOrders) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const { data } = yield this.axios.get(`/api/orders/chained?`, {
36
+ params: Object.assign(Object.assign({ page,
37
+ limit }, query), { includeOwnOrders }),
38
+ });
39
+ return data;
40
+ });
41
+ }
33
42
  createQuote(input) {
34
43
  return __awaiter(this, void 0, void 0, function* () {
35
44
  const { data } = yield this.axios.post(`/api/quotes`, input);
@@ -64,6 +64,8 @@ const humanizeOrderStatus = (status) => {
64
64
  return "Deposit registered";
65
65
  case order_status_1.OrderStatus.DepositConfirmed:
66
66
  return "Deposit confirmed";
67
+ case order_status_1.OrderStatus.BankPayoutDetailsAdded:
68
+ return "Processing";
67
69
  default:
68
70
  return "Unknown";
69
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1010",
3
+ "version": "1.0.1012",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",