@riocrypto/common 1.0.863 → 1.0.864

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.
@@ -27,6 +27,7 @@ import { UserQuery } from "../types/user-query";
27
27
  import { BankAccountQuery } from "../types/bank-account-query";
28
28
  import { AdminTask } from "../types/admin-task";
29
29
  import { AdminTaskType } from "../types/admin-task-type";
30
+ import { ImportOrderInput } from "../types/import-order-input";
30
31
  export declare class RioAdminClient {
31
32
  private axios;
32
33
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -89,6 +90,7 @@ export declare class RioAdminClient {
89
90
  }>;
90
91
  refreshAdminToken(): Promise<void>;
91
92
  createOrder(order: OrderInput): Promise<Order>;
93
+ importOrder(order: ImportOrderInput): Promise<Order>;
92
94
  updateOrder(id: string, update: OrderUpdate): Promise<Order>;
93
95
  cancelOrder(id?: string): Promise<Order>;
94
96
  getOrder(id: string): Promise<Order>;
@@ -287,6 +287,12 @@ class RioAdminClient {
287
287
  return response.data;
288
288
  });
289
289
  }
290
+ importOrder(order) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const response = yield this.axios.post("/api/orders/import", order);
293
+ return response.data;
294
+ });
295
+ }
290
296
  updateOrder(id, update) {
291
297
  return __awaiter(this, void 0, void 0, function* () {
292
298
  const response = yield this.axios.patch(`/api/orders/${id}`, update);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.863",
3
+ "version": "1.0.864",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",