@riocrypto/common 1.0.1533 → 1.0.1535

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.
@@ -60,6 +60,7 @@ import { WebhookType } from "../types/webhook-type";
60
60
  import { WebhookRegistration } from "../types/webhook-registration";
61
61
  import { AdminActionType } from "../types/admin-action-type";
62
62
  import { AdminAction } from "../types/admin-action";
63
+ import { ArbitrageSettings } from "../types/arbitrage-settings";
63
64
  export declare class RioAdminClient {
64
65
  private axios;
65
66
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -340,4 +341,7 @@ export declare class RioAdminClient {
340
341
  getAdminActions(page: number): Promise<AdminAction[]>;
341
342
  getAdminAction(id: string): Promise<AdminAction>;
342
343
  cancelAdminAction(id: string): Promise<void>;
344
+ createArbitrageSettings(arbitrageSettings: ArbitrageSettings): Promise<ArbitrageSettings>;
345
+ getArbitrageSettings(): Promise<ArbitrageSettings>;
346
+ updateArbitrageSettings(arbitrageSettings: ArbitrageSettings): Promise<ArbitrageSettings>;
343
347
  }
@@ -1090,5 +1090,23 @@ class RioAdminClient {
1090
1090
  yield this.axios.put(`/api/admin/actions/${id}/cancel`);
1091
1091
  });
1092
1092
  }
1093
+ createArbitrageSettings(arbitrageSettings) {
1094
+ return __awaiter(this, void 0, void 0, function* () {
1095
+ const { data } = yield this.axios.post(`/api/arbitrage/settings`, arbitrageSettings);
1096
+ return data;
1097
+ });
1098
+ }
1099
+ getArbitrageSettings() {
1100
+ return __awaiter(this, void 0, void 0, function* () {
1101
+ const { data } = yield this.axios.get("/api/arbitrage/settings");
1102
+ return data;
1103
+ });
1104
+ }
1105
+ updateArbitrageSettings(arbitrageSettings) {
1106
+ return __awaiter(this, void 0, void 0, function* () {
1107
+ const { data } = yield this.axios.patch(`/api/arbitrage/settings`, arbitrageSettings);
1108
+ return data;
1109
+ });
1110
+ }
1093
1111
  }
1094
1112
  exports.RioAdminClient = RioAdminClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1533",
3
+ "version": "1.0.1535",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",