cetus-tools 1.0.41 → 1.0.42
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.
- package/dist/crud/OperationsManager.d.ts +2 -0
- package/dist/crud/OperationsManager.js +17 -9
- package/dist/crud/OperationsManager.js.map +1 -1
- package/dist/crud/PortfolioModificationManager.d.ts +23 -0
- package/dist/crud/PortfolioModificationManager.js +3 -0
- package/dist/crud/PortfolioModificationManager.js.map +1 -0
- package/dist/crud/RatesManager.js +89 -89
- package/package.json +2 -2
|
@@ -32,6 +32,8 @@ export interface IOperationsDetails {
|
|
|
32
32
|
details?: any;
|
|
33
33
|
updatedAt?: string;
|
|
34
34
|
createdAt?: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
offset?: number;
|
|
35
37
|
config?: AxiosRequestConfig;
|
|
36
38
|
}
|
|
37
39
|
export declare class OperationsManager extends CrudServiceManager<IOperationsDetails, IOperations> {
|
|
@@ -29,19 +29,27 @@ class OperationsManager extends itrm_tools_1.CrudServiceManager {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
buildRequestUrl(url, details) {
|
|
32
|
-
let suffix = `${details.parentId ? `&parentId=${details.parentId}` : ""}${details.intermediaryId ? `&intermediaryId=${details.intermediaryId}` : ""}${details.quoteAssetId ? `"eAssetId=${details.quoteAssetId}` : ""}${details.intermediaryId ? `&intermediaryId=${details.intermediaryId}` : ""}${details.sourceId ? `&sourceId=${details.sourceId}` : ""}${details.date ? `&date=${details.date}` : ""}`;
|
|
32
|
+
let suffix = `${details.parentId ? `&parentId=${details.parentId}` : ""}${details.intermediaryId ? `&intermediaryId=${details.intermediaryId}` : ""}${details.quoteAssetId ? `"eAssetId=${details.quoteAssetId}` : ""}${details.intermediaryId ? `&intermediaryId=${details.intermediaryId}` : ""}${details.sourceId ? `&sourceId=${details.sourceId}` : ""}${details.date ? `&date=${details.date}` : ""}${details.side ? `&side=${details.side}` : ""}`;
|
|
33
33
|
return `${url}?${suffix.substring(1)}`;
|
|
34
34
|
}
|
|
35
35
|
findAll(details) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
var _a;
|
|
38
|
+
let operations = [];
|
|
39
|
+
let url = this.buildRequestUrl(`${this.url}/operations`, details);
|
|
40
|
+
if (details.limit) {
|
|
41
|
+
operations = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
45
|
+
do {
|
|
46
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
47
|
+
if (values)
|
|
48
|
+
operations = operations.concat(values);
|
|
49
|
+
isEmpty = values == undefined || values.length == 0;
|
|
50
|
+
offset += limit;
|
|
51
|
+
} while (!isEmpty);
|
|
52
|
+
}
|
|
45
53
|
return operations;
|
|
46
54
|
});
|
|
47
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsManager.js","sourceRoot":"","sources":["../../src/crud/OperationsManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6E;
|
|
1
|
+
{"version":3,"file":"OperationsManager.js","sourceRoot":"","sources":["../../src/crud/OperationsManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6E;AAyC7E,MAAa,iBAAkB,SAAQ,+BAAmD;IAGtF,YAAY,GAAW;QACnB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAEY,IAAI,CAAC,OAA2B;;YACzC,OAAO,IAAI,CAAC,WAAW,CAAC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,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAEM,OAAO,CAAC,SAAsB;QACjC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,eAAe,SAAS,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACpG,CAAC;CACJ;AA/ED,8CA+EC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
export interface IRates {
|
|
3
|
+
rateId?: number;
|
|
4
|
+
pairId?: number;
|
|
5
|
+
timestamp?: number;
|
|
6
|
+
rate?: number;
|
|
7
|
+
updatedAt?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
config?: AxiosRequestConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface IRatesDetails {
|
|
12
|
+
rateId?: number;
|
|
13
|
+
pairId?: number | string;
|
|
14
|
+
timestamp?: number;
|
|
15
|
+
rate?: number;
|
|
16
|
+
updatedAt?: string;
|
|
17
|
+
createdAt?: string;
|
|
18
|
+
values?: IRates[];
|
|
19
|
+
columns?: string;
|
|
20
|
+
limit?: number;
|
|
21
|
+
offset?: number;
|
|
22
|
+
config?: AxiosRequestConfig;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortfolioModificationManager.js","sourceRoot":"","sources":["../../src/crud/PortfolioModificationManager.ts"],"names":[],"mappings":""}
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RatesManager = void 0;
|
|
13
|
-
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
-
class RatesManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
-
constructor(url) {
|
|
16
|
-
super();
|
|
17
|
-
this.url = url;
|
|
18
|
-
}
|
|
19
|
-
find(details) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return this.sendFinding(`${this.url}/rates?pairId=${details.pairId}${details.timestamp ? "×tamp=" + details.timestamp : ""}`, details.config);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
count(details) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
let url = this.buildRequestUrl(`${this.url}/rates`, details);
|
|
28
|
-
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
unique(details) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
let url = `${this.url}/rates/distinct?columns=${details.columns}`;
|
|
34
|
-
const rates = yield this.sendAllFinding(url, details.config);
|
|
35
|
-
return rates;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
findAll(details) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
var _a;
|
|
41
|
-
let assets = [];
|
|
42
|
-
let url = this.buildRequestUrl(`${this.url}/rates`, details);
|
|
43
|
-
if (details.limit) {
|
|
44
|
-
assets = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
let limit = 5000, offset = 0, isEmpty = false;
|
|
48
|
-
do {
|
|
49
|
-
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
50
|
-
if (values)
|
|
51
|
-
assets = assets.concat(values);
|
|
52
|
-
isEmpty = values == undefined || values.length == 0;
|
|
53
|
-
offset += limit;
|
|
54
|
-
} while (!isEmpty);
|
|
55
|
-
}
|
|
56
|
-
return assets;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
buildRequestUrl(url, details) {
|
|
60
|
-
let suffix = `${details.pairId ? `&pairId=${details.pairId}` : ""}${details.timestamp ? `×tamp=${details.timestamp}` : ""}`;
|
|
61
|
-
return `${url}?${suffix.substring(1)}`;
|
|
62
|
-
}
|
|
63
|
-
findById(id) {
|
|
64
|
-
return this.sendFinding(`${this.url}/rates?id=${id.id}`, id.config);
|
|
65
|
-
}
|
|
66
|
-
create(details) {
|
|
67
|
-
return this.sendCreation(`${this.url}/rates`, {
|
|
68
|
-
pairId: details.pairId,
|
|
69
|
-
timestamp: details.timestamp,
|
|
70
|
-
rate: details.rate
|
|
71
|
-
}, details.config);
|
|
72
|
-
}
|
|
73
|
-
multipleCreation(details) {
|
|
74
|
-
return this.sendCreation(`${this.url}/rates`, {
|
|
75
|
-
values: details.values
|
|
76
|
-
}, details.config);
|
|
77
|
-
}
|
|
78
|
-
modify(rate) {
|
|
79
|
-
return this.sendModification(`${this.url}/rates/${rate.pairId}`, {
|
|
80
|
-
pairId: rate.pairId,
|
|
81
|
-
timestamp: rate.timestamp,
|
|
82
|
-
rate: rate.rate
|
|
83
|
-
}, rate.config);
|
|
84
|
-
}
|
|
85
|
-
destroy(rate) {
|
|
86
|
-
return this.sendDestuction(`${this.url}/rates/${rate.pairId}`, rate.config);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.RatesManager = RatesManager;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RatesManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class RatesManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
find(details) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return this.sendFinding(`${this.url}/rates?pairId=${details.pairId}${details.timestamp ? "×tamp=" + details.timestamp : ""}`, details.config);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
count(details) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
var _a;
|
|
27
|
+
let url = this.buildRequestUrl(`${this.url}/rates`, details);
|
|
28
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
unique(details) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
let url = `${this.url}/rates/distinct?columns=${details.columns}`;
|
|
34
|
+
const rates = yield this.sendAllFinding(url, details.config);
|
|
35
|
+
return rates;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
findAll(details) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a;
|
|
41
|
+
let assets = [];
|
|
42
|
+
let url = this.buildRequestUrl(`${this.url}/rates`, details);
|
|
43
|
+
if (details.limit) {
|
|
44
|
+
assets = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
48
|
+
do {
|
|
49
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
50
|
+
if (values)
|
|
51
|
+
assets = assets.concat(values);
|
|
52
|
+
isEmpty = values == undefined || values.length == 0;
|
|
53
|
+
offset += limit;
|
|
54
|
+
} while (!isEmpty);
|
|
55
|
+
}
|
|
56
|
+
return assets;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
buildRequestUrl(url, details) {
|
|
60
|
+
let suffix = `${details.pairId ? `&pairId=${details.pairId}` : ""}${details.timestamp ? `×tamp=${details.timestamp}` : ""}`;
|
|
61
|
+
return `${url}?${suffix.substring(1)}`;
|
|
62
|
+
}
|
|
63
|
+
findById(id) {
|
|
64
|
+
return this.sendFinding(`${this.url}/rates?id=${id.id}`, id.config);
|
|
65
|
+
}
|
|
66
|
+
create(details) {
|
|
67
|
+
return this.sendCreation(`${this.url}/rates`, {
|
|
68
|
+
pairId: details.pairId,
|
|
69
|
+
timestamp: details.timestamp,
|
|
70
|
+
rate: details.rate
|
|
71
|
+
}, details.config);
|
|
72
|
+
}
|
|
73
|
+
multipleCreation(details) {
|
|
74
|
+
return this.sendCreation(`${this.url}/rates`, {
|
|
75
|
+
values: details.values
|
|
76
|
+
}, details.config);
|
|
77
|
+
}
|
|
78
|
+
modify(rate) {
|
|
79
|
+
return this.sendModification(`${this.url}/rates/${rate.pairId}`, {
|
|
80
|
+
pairId: rate.pairId,
|
|
81
|
+
timestamp: rate.timestamp,
|
|
82
|
+
rate: rate.rate
|
|
83
|
+
}, rate.config);
|
|
84
|
+
}
|
|
85
|
+
destroy(rate) {
|
|
86
|
+
return this.sendDestuction(`${this.url}/rates/${rate.pairId}`, rate.config);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.RatesManager = RatesManager;
|
|
90
90
|
//# sourceMappingURL=RatesManager.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cetus-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.42",
|
|
4
4
|
"description": "Librería para elementos comunes de CETUS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
"optionalDependencies": {
|
|
50
50
|
"axios-mock-adapter": "^2.0.0"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|