@riocrypto/common 1.0.1672 → 1.0.1674
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.
|
@@ -395,18 +395,18 @@ class RioAdminClient {
|
|
|
395
395
|
}
|
|
396
396
|
getRioSettings() {
|
|
397
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
-
const { data } = yield this.axios.get(`/api/settings`);
|
|
398
|
+
const { data } = yield this.axios.get(`/api/settings/rio`);
|
|
399
399
|
return data;
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
createRioSettings(rioSettings) {
|
|
403
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
-
yield this.axios.post(`/api/settings`, rioSettings);
|
|
404
|
+
yield this.axios.post(`/api/settings/rio`, rioSettings);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
updateRioSettings(update) {
|
|
408
408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
-
const { data } = yield this.axios.patch(`/api/settings`, update);
|
|
409
|
+
const { data } = yield this.axios.patch(`/api/settings/rio`, update);
|
|
410
410
|
return data;
|
|
411
411
|
});
|
|
412
412
|
}
|
|
@@ -212,7 +212,7 @@ class RioClient {
|
|
|
212
212
|
}
|
|
213
213
|
getRioSettings() {
|
|
214
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
-
const { data } = yield this.axios.get(`/api/settings`);
|
|
215
|
+
const { data } = yield this.axios.get(`/api/settings/rio`);
|
|
216
216
|
return data;
|
|
217
217
|
});
|
|
218
218
|
}
|
|
@@ -268,12 +268,12 @@ class RioClient {
|
|
|
268
268
|
}
|
|
269
269
|
createRioSettings(rioSettings) {
|
|
270
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
-
yield this.axios.post(`/api/settings`, rioSettings);
|
|
271
|
+
yield this.axios.post(`/api/settings/rio`, rioSettings);
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
updateRioSettings(update) {
|
|
275
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
-
const { data } = yield this.axios.patch(`/api/settings`, update);
|
|
276
|
+
const { data } = yield this.axios.patch(`/api/settings/rio`, update);
|
|
277
277
|
return data;
|
|
278
278
|
});
|
|
279
279
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Blockchain } from "./blockchain";
|
|
2
2
|
import { SettlementTime } from "./settlement-time";
|
|
3
|
+
import { Side } from "./side";
|
|
3
4
|
import { TradingMarket } from "./trading-market";
|
|
4
5
|
export interface DashboardSettings {
|
|
5
6
|
userId: string;
|
|
6
|
-
previousTrade?:
|
|
7
|
+
previousTrade?: {
|
|
8
|
+
market: TradingMarket;
|
|
9
|
+
side: Side;
|
|
10
|
+
};
|
|
7
11
|
tradePresets?: {
|
|
8
12
|
[key in TradingMarket]: {
|
|
9
13
|
blockchain: Blockchain;
|