elemento-alpha-tools 1.1.35 → 1.1.36
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/AssetsManager.d.ts +42 -0
- package/dist/crud/AssetsManager.js +97 -0
- package/dist/crud/AssetsManager.js.map +1 -0
- package/dist/crud/ForecastManager.d.ts +44 -0
- package/dist/crud/ForecastManager.js +95 -0
- package/dist/crud/ForecastManager.js.map +1 -0
- package/dist/crud/MarkedDataManager.d.ts +42 -0
- package/dist/crud/MarkedDataManager.js +91 -0
- package/dist/crud/MarkedDataManager.js.map +1 -0
- package/dist/crud/SourcesManager.d.ts +36 -0
- package/dist/crud/SourcesManager.js +91 -0
- package/dist/crud/SourcesManager.js.map +1 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
export interface IAssets {
|
|
4
|
+
assetsId?: number;
|
|
5
|
+
sourceId?: number;
|
|
6
|
+
typeId?: number;
|
|
7
|
+
name?: string;
|
|
8
|
+
ticker?: string;
|
|
9
|
+
details?: object;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
config?: AxiosRequestConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface IAssetsSearchDetails {
|
|
15
|
+
assetsId?: number;
|
|
16
|
+
sourceId?: number;
|
|
17
|
+
typeId?: number;
|
|
18
|
+
name?: string;
|
|
19
|
+
ticker?: string;
|
|
20
|
+
details?: object;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
config?: AxiosRequestConfig;
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
26
|
+
values?: IAssets[];
|
|
27
|
+
}
|
|
28
|
+
export declare class AssetsManager extends CrudServiceManager<IAssetsSearchDetails, IAssets> {
|
|
29
|
+
private url;
|
|
30
|
+
constructor(url: string);
|
|
31
|
+
find(details: IAssetsSearchDetails): Promise<IAssets | undefined>;
|
|
32
|
+
findById(id: StandardIdRequestDefinition): Promise<IAssets | undefined>;
|
|
33
|
+
count(details: IAssetsSearchDetails): Promise<{
|
|
34
|
+
result: number;
|
|
35
|
+
}>;
|
|
36
|
+
private buildRequestUrl;
|
|
37
|
+
findAll(details: IAssetsSearchDetails): Promise<IAssets[] | undefined>;
|
|
38
|
+
create(details: IAssetsSearchDetails): Promise<IAssets | undefined>;
|
|
39
|
+
createMany(details: IAssetsSearchDetails): Promise<IAssets[] | undefined>;
|
|
40
|
+
modify(assets: IAssets): Promise<any>;
|
|
41
|
+
destroy(assets: IAssets): Promise<any>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.AssetsManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class AssetsManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
find(details) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.sendFinding(`${this.url}/assets?sourceId=${details.sourceId}${details.typeId ? `&typeId=${details.typeId}` : ''}${details.ticker ? `&ticker=${details.ticker}` : ''}`, details.config);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
findById(id) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.sendFinding(`${this.url}/assets?id=${id.id}`, id.config);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
count(details) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a;
|
|
33
|
+
let url = this.buildRequestUrl(`${this.url}/marketData`, details);
|
|
34
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
buildRequestUrl(url, details) {
|
|
38
|
+
let suffix = `${details.assetsId ? `&assetsId=${details.assetsId}` : ""}${details.ticker ? `&ticker=${details.ticker}` : ''}${details.sourceId ? `&sourceId=${details.sourceId}` : ''}${details.typeId ? `&typeId=${details.typeId}` : ''}`;
|
|
39
|
+
return `${url}?${suffix.substring(1)}`;
|
|
40
|
+
}
|
|
41
|
+
findAll(details) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a;
|
|
44
|
+
let assets = [];
|
|
45
|
+
let url = this.buildRequestUrl(`${this.url}/assets`, details);
|
|
46
|
+
if (details.limit) {
|
|
47
|
+
assets = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
51
|
+
do {
|
|
52
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
53
|
+
if (values)
|
|
54
|
+
assets = assets.concat(values);
|
|
55
|
+
isEmpty = values == undefined || values.length == 0;
|
|
56
|
+
offset += limit;
|
|
57
|
+
} while (!isEmpty);
|
|
58
|
+
}
|
|
59
|
+
return assets;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
create(details) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return this.sendCreation(`${this.url}/assets`, {
|
|
65
|
+
sourceId: details.sourceId,
|
|
66
|
+
typeId: details.typeId,
|
|
67
|
+
name: details.name,
|
|
68
|
+
ticker: details.ticker,
|
|
69
|
+
details: details.details,
|
|
70
|
+
}, details.config);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
createMany(details) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a;
|
|
76
|
+
return this.sendCreationMany(`${this.url}/assets`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
modify(assets) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
return this.sendModification(`${this.url}/assets/${assets.assetsId}`, {
|
|
82
|
+
sourceId: assets.sourceId,
|
|
83
|
+
typeId: assets.typeId,
|
|
84
|
+
name: assets.name,
|
|
85
|
+
ticker: assets.ticker,
|
|
86
|
+
details: assets.details,
|
|
87
|
+
}, assets.config);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
destroy(assets) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return this.sendDestruction(`${this.url}/assets/${assets.assetsId}`, assets.config);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.AssetsManager = AssetsManager;
|
|
97
|
+
//# sourceMappingURL=AssetsManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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AC;KAAA;IAEY,OAAO,CAAC,MAAe;;YAChC,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,WAAW,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACxF,CAAC;KAAA;CACJ;AAvED,sCAuEC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
export interface IForecast {
|
|
4
|
+
forecastId?: number;
|
|
5
|
+
assetId?: number;
|
|
6
|
+
typeId?: number;
|
|
7
|
+
date?: number;
|
|
8
|
+
value?: number;
|
|
9
|
+
fromDate?: number;
|
|
10
|
+
toDate?: number;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}
|
|
15
|
+
export interface IForecastSearchDetails {
|
|
16
|
+
forecastId?: number;
|
|
17
|
+
assetId?: number;
|
|
18
|
+
typeId?: number;
|
|
19
|
+
date?: number;
|
|
20
|
+
value?: number;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
config?: AxiosRequestConfig;
|
|
24
|
+
fromDate?: number;
|
|
25
|
+
toDate?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
offset?: number;
|
|
28
|
+
values?: IForecast[];
|
|
29
|
+
}
|
|
30
|
+
export declare class ForecastManager extends CrudServiceManager<IForecastSearchDetails, IForecast> {
|
|
31
|
+
private url;
|
|
32
|
+
constructor(url: string);
|
|
33
|
+
find(details: IForecastSearchDetails): Promise<IForecast | undefined>;
|
|
34
|
+
findById(id: StandardIdRequestDefinition): Promise<IForecast | undefined>;
|
|
35
|
+
private buildRequestUrl;
|
|
36
|
+
count(details: IForecastSearchDetails): Promise<{
|
|
37
|
+
result: number;
|
|
38
|
+
}>;
|
|
39
|
+
findAll(details: IForecastSearchDetails): Promise<IForecast[] | undefined>;
|
|
40
|
+
create(details: IForecastSearchDetails): Promise<IForecast | undefined>;
|
|
41
|
+
createMany(details: IForecastSearchDetails): Promise<IForecast[] | undefined>;
|
|
42
|
+
modify(forecast: IForecast): Promise<any>;
|
|
43
|
+
destroy(forecast: IForecast): Promise<any>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.ForecastManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class ForecastManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
find(details) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.sendFinding(`${this.url}/forecast?assetId${details.assetId}${details.date ? `&date=${details.date}` : ''}${details.typeId ? `&typeId${details.typeId}` : ''}${details.value ? `&value${details.value}` : ''}`, details.config);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
findById(id) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.sendFinding(`${this.url}/forecast?id=${id.id}`, id.config);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
buildRequestUrl(url, details) {
|
|
31
|
+
let suffix = `${details.assetId ? `&assetId=${details.assetId}` : ""}${details.typeId ? `&typeId=${details.typeId}` : ""}${details.fromDate ? `&fromDate=${details.fromDate}` : ""}${details.toDate ? `&toDate=${details.toDate}` : ""}${details.date ? `&date=${details.date}` : ''}`;
|
|
32
|
+
return `${url}?${suffix.substring(1)}`;
|
|
33
|
+
}
|
|
34
|
+
count(details) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
var _a;
|
|
37
|
+
let url = this.buildRequestUrl(`${this.url}/forecast`, details);
|
|
38
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findAll(details) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a;
|
|
44
|
+
let forecast = [];
|
|
45
|
+
let url = this.buildRequestUrl(`${this.url}/forecast`, details);
|
|
46
|
+
if (details.limit) {
|
|
47
|
+
forecast = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
51
|
+
do {
|
|
52
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
53
|
+
if (values)
|
|
54
|
+
forecast = forecast.concat(values);
|
|
55
|
+
isEmpty = values == undefined || values.length == 0;
|
|
56
|
+
offset += limit;
|
|
57
|
+
} while (!isEmpty);
|
|
58
|
+
}
|
|
59
|
+
return forecast;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
create(details) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return this.sendCreation(`${this.url}/forecast`, {
|
|
65
|
+
assetId: details.assetId,
|
|
66
|
+
typeId: details.typeId,
|
|
67
|
+
date: details.date,
|
|
68
|
+
value: details.value,
|
|
69
|
+
}, details.config);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
createMany(details) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a;
|
|
75
|
+
return this.sendCreationMany(`${this.url}/forecast`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
modify(forecast) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return this.sendModification(`${this.url}/forecast/${forecast.forecastId}`, {
|
|
81
|
+
assetId: forecast.assetId,
|
|
82
|
+
typeId: forecast.typeId,
|
|
83
|
+
date: forecast.date,
|
|
84
|
+
value: forecast.value,
|
|
85
|
+
}, forecast.config);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
destroy(forecast) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return this.sendDestruction(`${this.url}/forecast/${forecast.forecastId}`, forecast.config);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ForecastManager = ForecastManager;
|
|
95
|
+
//# sourceMappingURL=ForecastManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForecastManager.js","sourceRoot":"","sources":["../../src/crud/ForecastManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA6E;AA+B7E,MAAa,eAAgB,SAAQ,+BAAqD;IAGtF,YAAY,GAAW;QACnB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAAA,CAAC;IAEW,IAAI,CAAC,OAA+B;;YAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,GAA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;AArED,0CAqEC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
export interface IMarkedData {
|
|
4
|
+
markedDataId?: number;
|
|
5
|
+
assetsId?: number;
|
|
6
|
+
date?: number;
|
|
7
|
+
value?: number;
|
|
8
|
+
updatedAt?: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
fromDate?: number;
|
|
11
|
+
toDate?: number;
|
|
12
|
+
config?: AxiosRequestConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface IMarkedDataSearchDetails {
|
|
15
|
+
markedDataId?: number;
|
|
16
|
+
assetsId?: number;
|
|
17
|
+
date?: number;
|
|
18
|
+
value?: number;
|
|
19
|
+
updatedAt?: string;
|
|
20
|
+
createdAt?: string;
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
fromDate?: number;
|
|
24
|
+
toDate?: number;
|
|
25
|
+
config?: AxiosRequestConfig;
|
|
26
|
+
values?: IMarkedData[];
|
|
27
|
+
}
|
|
28
|
+
export declare class MarkedDataManager extends CrudServiceManager<IMarkedDataSearchDetails, IMarkedData> {
|
|
29
|
+
private url;
|
|
30
|
+
constructor(url: string);
|
|
31
|
+
find(details: IMarkedDataSearchDetails): Promise<IMarkedData | undefined>;
|
|
32
|
+
count(details: IMarkedDataSearchDetails): Promise<{
|
|
33
|
+
result: number;
|
|
34
|
+
}>;
|
|
35
|
+
private buildRequestUrl;
|
|
36
|
+
findAll(details: IMarkedDataSearchDetails): Promise<IMarkedData[] | undefined>;
|
|
37
|
+
findById(id: StandardIdRequestDefinition): Promise<IMarkedData | undefined>;
|
|
38
|
+
create(details: IMarkedDataSearchDetails): Promise<IMarkedData | undefined>;
|
|
39
|
+
createMany(details: IMarkedDataSearchDetails): Promise<IMarkedData[] | undefined>;
|
|
40
|
+
modify(markedData: IMarkedData): Promise<any>;
|
|
41
|
+
destroy(markedData: IMarkedData): Promise<any>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.MarkedDataManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class MarkedDataManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
find(details) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.sendFinding(`${this.url}/markedData?assetsId=${details.assetsId}${details.date ? `&date=${details.date}` : ""}`, details.config);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
count(details) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
var _a;
|
|
28
|
+
let url = this.buildRequestUrl(`${this.url}/markedData`, details);
|
|
29
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
buildRequestUrl(url, details) {
|
|
33
|
+
let suffix = `${details.assetsId ? `&assetsId=${details.assetsId}` : ""}${details.fromDate ? `&fromDate=${details.fromDate}` : ""}${details.toDate ? `&toDate=${details.toDate}` : ""}${details.date ? `&date=${details.date}` : ''}`;
|
|
34
|
+
return `${url}?${suffix.substring(1)}`;
|
|
35
|
+
}
|
|
36
|
+
findAll(details) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
var _a;
|
|
39
|
+
let markedData = [];
|
|
40
|
+
let url = this.buildRequestUrl(`${this.url}/intermediaryData`, details);
|
|
41
|
+
if (details.limit) {
|
|
42
|
+
markedData = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
46
|
+
do {
|
|
47
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
48
|
+
if (values)
|
|
49
|
+
markedData = markedData.concat(values);
|
|
50
|
+
isEmpty = values == undefined || values.length == 0;
|
|
51
|
+
offset += limit;
|
|
52
|
+
} while (!isEmpty);
|
|
53
|
+
}
|
|
54
|
+
return markedData;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
findById(id) {
|
|
58
|
+
return this.sendFinding(`${this.url}/markedData?id=${id.id}`, id.config);
|
|
59
|
+
}
|
|
60
|
+
create(details) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return this.sendCreation(`${this.url}/markedData`, {
|
|
63
|
+
assetsId: details.assetsId,
|
|
64
|
+
date: details.date,
|
|
65
|
+
value: details.value,
|
|
66
|
+
}, details.config);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
createMany(details) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a;
|
|
72
|
+
return this.sendCreationMany(`${this.url}/markedData`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
modify(markedData) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
return this.sendModification(`${this.url}/markedData/${markedData.markedDataId}`, {
|
|
78
|
+
assetsId: markedData.assetsId,
|
|
79
|
+
date: markedData.date,
|
|
80
|
+
value: markedData.value,
|
|
81
|
+
}, markedData.config);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
destroy(markedData) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
return this.sendDestruction(`${this.url}/markedData/${markedData.markedDataId}`, markedData.config);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.MarkedDataManager = MarkedDataManager;
|
|
91
|
+
//# sourceMappingURL=MarkedDataManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkedDataManager.js","sourceRoot":"","sources":["../../src/crud/MarkedDataManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA6E;AA6B7E,MAAa,iBAAkB,SAAQ,+BAAyD;IAG5F,YAAY,GAAW;QACnB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAAA,CAAC;IAEW,IAAI,CAAC,OAAiC;;YAC/C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,wBAAwB,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QACjJ,CAAC;KAAA;IAEY,KAAK,CAAC,OAAiC;;;YAChD,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,aAAa,EAAE,OAAO,CA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,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;QAChG,CAAC;KAAA;IAEY,MAAM,CAAC,UAAuB;;YACvC,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,eAAe,UAAU,CAAC,YAAY,EAAE,EAAE;gBAC9E,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,KAAK,EAAE,UAAU,CAAC,KAAK;aAC1B,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC;KAAA;IAEY,OAAO,CAAC,UAAuB;;YACxC,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,eAAe,UAAU,CAAC,YAAY,EAAE,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QACxG,CAAC;KAAA;CACJ;AAnED,8CAmEC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
export interface ISource {
|
|
4
|
+
sourceId?: number;
|
|
5
|
+
typeId?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
updatedAt?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
config?: AxiosRequestConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface ISourceSearchDetails {
|
|
12
|
+
sourceId?: number;
|
|
13
|
+
typeId?: number;
|
|
14
|
+
name?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
createdAt?: string;
|
|
17
|
+
config?: AxiosRequestConfig;
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
values?: ISource[];
|
|
21
|
+
}
|
|
22
|
+
export declare class SourcesManager extends CrudServiceManager<ISourceSearchDetails, ISource> {
|
|
23
|
+
private url;
|
|
24
|
+
constructor(url: string);
|
|
25
|
+
find(details: ISourceSearchDetails): Promise<ISource | undefined>;
|
|
26
|
+
findById(id: StandardIdRequestDefinition): Promise<ISource | undefined>;
|
|
27
|
+
private buildRequestUrl;
|
|
28
|
+
count(details: ISourceSearchDetails): Promise<{
|
|
29
|
+
result: number;
|
|
30
|
+
}>;
|
|
31
|
+
findAll(details: ISourceSearchDetails): Promise<ISource[] | undefined>;
|
|
32
|
+
create(details: ISourceSearchDetails): Promise<ISource | undefined>;
|
|
33
|
+
createMany(details: ISourceSearchDetails): Promise<ISource[] | undefined>;
|
|
34
|
+
modify(sources: ISource): Promise<any>;
|
|
35
|
+
destroy(sources: ISource): Promise<any>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.SourcesManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class SourcesManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
find(details) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.sendFinding(`${this.url}/sources?name=${details.name}${details.typeId ? `&typeId=${details.typeId}` : ''}`, details.config);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
findById(id) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.sendFinding(`${this.url}/sources?id=${id.id}`, id.config);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
buildRequestUrl(url, details) {
|
|
31
|
+
let suffix = `${details.sourceId ? `&sourceId=${details.sourceId}` : ""}${details.name ? `&name=${details.name}` : ''}${details.typeId ? `&typeId=${details.typeId}` : ''}`;
|
|
32
|
+
return `${url}?${suffix.substring(1)}`;
|
|
33
|
+
}
|
|
34
|
+
count(details) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
var _a;
|
|
37
|
+
let url = this.buildRequestUrl(`${this.url}/sources`, details);
|
|
38
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findAll(details) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a;
|
|
44
|
+
let sources = [];
|
|
45
|
+
let url = this.buildRequestUrl(`${this.url}/sources`, details);
|
|
46
|
+
if (details.limit) {
|
|
47
|
+
sources = (_a = (yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config))) !== null && _a !== void 0 ? _a : [];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
51
|
+
do {
|
|
52
|
+
let values = yield this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
53
|
+
if (values)
|
|
54
|
+
sources = sources.concat(values);
|
|
55
|
+
isEmpty = values == undefined || values.length == 0;
|
|
56
|
+
offset += limit;
|
|
57
|
+
} while (!isEmpty);
|
|
58
|
+
}
|
|
59
|
+
return sources;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
create(details) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return this.sendCreation(`${this.url}/sources`, {
|
|
65
|
+
typeId: details.typeId,
|
|
66
|
+
name: details.name,
|
|
67
|
+
}, details.config);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
createMany(details) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
var _a;
|
|
73
|
+
return this.sendCreationMany(`${this.url}/sources`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
modify(sources) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
return this.sendModification(`${this.url}/sources/${sources.sourceId}`, {
|
|
79
|
+
typeId: sources.typeId,
|
|
80
|
+
name: sources.name,
|
|
81
|
+
}, sources.config);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
destroy(sources) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
return this.sendDestruction(`${this.url}/sources/${sources.sourceId}`, sources.config);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.SourcesManager = SourcesManager;
|
|
91
|
+
//# sourceMappingURL=SourcesManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourcesManager.js","sourceRoot":"","sources":["../../src/crud/SourcesManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA6E;AAuB7E,MAAa,cAAe,SAAQ,+BAAiD;IAGjF,YAAY,GAAW;QACnB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAAA,CAAC;IAEW,IAAI,CAAC,OAA6B;;YAC3C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,iBAAiB,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM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AC,OAA6B;;;YACjD,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,UAAU,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAC9F,CAAC;KAAA;IAEY,MAAM,CAAC,OAAgB;;YAChC,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,OAAO,CAAC,QAAQ,EAAE,EAAE;gBACpE,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,IAAI,EAAE,OAAO,CAAC,IAAI;aACrB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;KAAA;IAEY,OAAO,CAAC,OAAgB;;YACjC,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,OAAO,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3F,CAAC;KAAA;CACJ;AAjED,wCAiEC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export { ExpressLogableConfig as ExpressLogableConfig } from './apí/ExpressLogableConfig';
|
|
2
2
|
export { IServiceSessionConfig as IServiceSessionConfig, IServiceCredentials as IServiceCredentials, ServiceSessionChecker as ServiceSessionChecker } from './apí/checkers/ServiceSessionChecker';
|
|
3
3
|
export { RoleServicePermissionsChecker as RoleServicePermissionsChecker } from './apí/checkers/RoleServicePermissionsCheckers';
|
|
4
|
+
export { IAssets as IAssets, IAssetsSearchDetails as IAssetsSearchDetails, AssetsManager as AssetsManager } from './crud/AssetsManager';
|
|
5
|
+
export { IAvailablePlatform as IAvailablePlatform, IAvailablePlatformSearchDetails as IAvailablePlatformSearchDetails, AvailablePlatformManager as AvailablePlataformManager } from './crud/AvailablePlataformManager';
|
|
4
6
|
export { IBusiness as IBusiness, IBusinessSearchDetails as IBusinessSearchDetails, BusinessManager as BusinessManager } from './crud/BusinessManager';
|
|
5
7
|
export { IComponent as IComponent, IComponentSearchDetails as IComponentSearchDetails, IComponentDetails as IComponentDetails, IComponentServiceDetails as IComponentServiceDetails, ComponentManager as ComponentManager } from './crud/ComponentManager';
|
|
8
|
+
export { IForecast as IForecast, IForecastSearchDetails as IForecastSearchDetails, ForecastManager as ForecastManager } from './crud/ForecastManager';
|
|
9
|
+
export { IIntermediary as IIntermediary, IIntermediarySearchDetails as IIntermediarySearchDetails, IntermediaryManager as IntermediaryManager } from "./crud/Intermediaries";
|
|
10
|
+
export { IIntermediaryData as IIntermediaryData, IIntermediaryDataDetails as IIntermediaryDataDetails, IntermediaryDataManager as IntermediaryDataManager } from "./crud/IntermediaryDataManager";
|
|
11
|
+
export { IMarkedData as IMarkedData, IMarkedDataSearchDetails as IMarkedDataSearchDetails, MarkedDataManager as MarkedDataManager } from './crud/MarkedDataManager';
|
|
6
12
|
export { IPlatform as IPlatform, IPlatformSearchDetails as IPlatformSearchDetails, IPlatformDetails as IPlatformDetails, PlatformManager as PlatformManager } from "./crud/PlatformManager";
|
|
7
|
-
export { IAvailablePlatform as IAvailablePlatform, IAvailablePlatformSearchDetails as IAvailablePlatformSearchDetails, AvailablePlatformManager as AvailablePlataformManager } from './crud/AvailablePlataformManager';
|
|
8
13
|
export { IRole as IRole, IRoleSearchDetails as IRoleSearchDetails, RoleManager as RoleManager } from "./crud/RoleManager";
|
|
14
|
+
export { ISource as ISource, ISourceSearchDetails as ISourceSearchDetails, SourcesManager as SourcesManager } from './crud/SourcesManager';
|
|
9
15
|
export { IStatus as IStatus, IStatusSearchDetails as IStatusSearchDetails, StatusManager as StatusManager } from "./crud/StatusManager";
|
|
10
16
|
export { IType as IType, ITypeSearchDetails as ITypeSearchDetails, TypeManager as TypeManager } from "./crud/TypeManager";
|
|
11
17
|
export { IUserCredentials as IUserCredentials, IUserCredentialsSearchDetails as IUserCredentialsSearchDetails, UserCredentialsManager as UserCredentialsManager } from "./crud/UserCredentialsManager";
|
|
12
18
|
export { IUser as IUser, IUserSearchDetails as IUserSearchDetails, UserManager as UserManager } from "./crud/UserManager";
|
|
13
|
-
export { IIntermediary as IIntermediary, IIntermediarySearchDetails as IIntermediarySearchDetails, IntermediaryManager as IntermediaryManager } from "./crud/Intermediaries";
|
|
14
|
-
export { IIntermediaryData as IIntermediaryData, IIntermediaryDataDetails as IIntermediaryDataDetails, IntermediaryDataManager as IntermediaryDataManager } from "./crud/IntermediaryDataManager";
|
|
15
19
|
export { applyLoginMocks as applyLoginMocks } from "./crud/test/LoginServiceMocks";
|
|
16
20
|
export { applyPlatformMocks as applyPlatformMocks } from "./crud/test/PlatformMocks";
|
|
17
21
|
export { applyRoleMocks as applyRoleMocks } from "./crud/test/RoleMocks";
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyTypeMocks = exports.applyStatusMocks = exports.applyRoleMocks = exports.applyPlatformMocks = exports.applyLoginMocks = exports.
|
|
3
|
+
exports.applyTypeMocks = exports.applyStatusMocks = exports.applyRoleMocks = exports.applyPlatformMocks = exports.applyLoginMocks = exports.UserManager = exports.UserCredentialsManager = exports.TypeManager = exports.StatusManager = exports.SourcesManager = exports.RoleManager = exports.PlatformManager = exports.MarkedDataManager = exports.IntermediaryDataManager = exports.IntermediaryManager = exports.ForecastManager = exports.ComponentManager = exports.BusinessManager = exports.AvailablePlataformManager = exports.AssetsManager = exports.RoleServicePermissionsChecker = exports.ServiceSessionChecker = exports.ExpressLogableConfig = void 0;
|
|
4
4
|
var ExpressLogableConfig_1 = require("./ap\u00ED/ExpressLogableConfig");
|
|
5
5
|
Object.defineProperty(exports, "ExpressLogableConfig", { enumerable: true, get: function () { return ExpressLogableConfig_1.ExpressLogableConfig; } });
|
|
6
6
|
var ServiceSessionChecker_1 = require("./ap\u00ED/checkers/ServiceSessionChecker");
|
|
7
7
|
Object.defineProperty(exports, "ServiceSessionChecker", { enumerable: true, get: function () { return ServiceSessionChecker_1.ServiceSessionChecker; } });
|
|
8
8
|
var RoleServicePermissionsCheckers_1 = require("./ap\u00ED/checkers/RoleServicePermissionsCheckers");
|
|
9
9
|
Object.defineProperty(exports, "RoleServicePermissionsChecker", { enumerable: true, get: function () { return RoleServicePermissionsCheckers_1.RoleServicePermissionsChecker; } });
|
|
10
|
+
var AssetsManager_1 = require("./crud/AssetsManager");
|
|
11
|
+
Object.defineProperty(exports, "AssetsManager", { enumerable: true, get: function () { return AssetsManager_1.AssetsManager; } });
|
|
12
|
+
var AvailablePlataformManager_1 = require("./crud/AvailablePlataformManager");
|
|
13
|
+
Object.defineProperty(exports, "AvailablePlataformManager", { enumerable: true, get: function () { return AvailablePlataformManager_1.AvailablePlatformManager; } });
|
|
10
14
|
var BusinessManager_1 = require("./crud/BusinessManager");
|
|
11
15
|
Object.defineProperty(exports, "BusinessManager", { enumerable: true, get: function () { return BusinessManager_1.BusinessManager; } });
|
|
12
16
|
var ComponentManager_1 = require("./crud/ComponentManager");
|
|
13
17
|
Object.defineProperty(exports, "ComponentManager", { enumerable: true, get: function () { return ComponentManager_1.ComponentManager; } });
|
|
18
|
+
var ForecastManager_1 = require("./crud/ForecastManager");
|
|
19
|
+
Object.defineProperty(exports, "ForecastManager", { enumerable: true, get: function () { return ForecastManager_1.ForecastManager; } });
|
|
20
|
+
var Intermediaries_1 = require("./crud/Intermediaries");
|
|
21
|
+
Object.defineProperty(exports, "IntermediaryManager", { enumerable: true, get: function () { return Intermediaries_1.IntermediaryManager; } });
|
|
22
|
+
var IntermediaryDataManager_1 = require("./crud/IntermediaryDataManager");
|
|
23
|
+
Object.defineProperty(exports, "IntermediaryDataManager", { enumerable: true, get: function () { return IntermediaryDataManager_1.IntermediaryDataManager; } });
|
|
24
|
+
var MarkedDataManager_1 = require("./crud/MarkedDataManager");
|
|
25
|
+
Object.defineProperty(exports, "MarkedDataManager", { enumerable: true, get: function () { return MarkedDataManager_1.MarkedDataManager; } });
|
|
14
26
|
var PlatformManager_1 = require("./crud/PlatformManager");
|
|
15
27
|
Object.defineProperty(exports, "PlatformManager", { enumerable: true, get: function () { return PlatformManager_1.PlatformManager; } });
|
|
16
|
-
var AvailablePlataformManager_1 = require("./crud/AvailablePlataformManager");
|
|
17
|
-
Object.defineProperty(exports, "AvailablePlataformManager", { enumerable: true, get: function () { return AvailablePlataformManager_1.AvailablePlatformManager; } });
|
|
18
28
|
var RoleManager_1 = require("./crud/RoleManager");
|
|
19
29
|
Object.defineProperty(exports, "RoleManager", { enumerable: true, get: function () { return RoleManager_1.RoleManager; } });
|
|
30
|
+
var SourcesManager_1 = require("./crud/SourcesManager");
|
|
31
|
+
Object.defineProperty(exports, "SourcesManager", { enumerable: true, get: function () { return SourcesManager_1.SourcesManager; } });
|
|
20
32
|
var StatusManager_1 = require("./crud/StatusManager");
|
|
21
33
|
Object.defineProperty(exports, "StatusManager", { enumerable: true, get: function () { return StatusManager_1.StatusManager; } });
|
|
22
34
|
var TypeManager_1 = require("./crud/TypeManager");
|
|
@@ -25,10 +37,6 @@ var UserCredentialsManager_1 = require("./crud/UserCredentialsManager");
|
|
|
25
37
|
Object.defineProperty(exports, "UserCredentialsManager", { enumerable: true, get: function () { return UserCredentialsManager_1.UserCredentialsManager; } });
|
|
26
38
|
var UserManager_1 = require("./crud/UserManager");
|
|
27
39
|
Object.defineProperty(exports, "UserManager", { enumerable: true, get: function () { return UserManager_1.UserManager; } });
|
|
28
|
-
var Intermediaries_1 = require("./crud/Intermediaries");
|
|
29
|
-
Object.defineProperty(exports, "IntermediaryManager", { enumerable: true, get: function () { return Intermediaries_1.IntermediaryManager; } });
|
|
30
|
-
var IntermediaryDataManager_1 = require("./crud/IntermediaryDataManager");
|
|
31
|
-
Object.defineProperty(exports, "IntermediaryDataManager", { enumerable: true, get: function () { return IntermediaryDataManager_1.IntermediaryDataManager; } });
|
|
32
40
|
var LoginServiceMocks_1 = require("./crud/test/LoginServiceMocks");
|
|
33
41
|
Object.defineProperty(exports, "applyLoginMocks", { enumerable: true, get: function () { return LoginServiceMocks_1.applyLoginMocks; } });
|
|
34
42
|
var PlatformMocks_1 = require("./crud/test/PlatformMocks");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA0F;AAAjF,4HAAA,oBAAoB,OAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA0F;AAAjF,4HAAA,oBAAoB,OAAwB;AACrD,mFAAkM;AAA7F,8HAAA,qBAAqB,OAAyB;AACnJ,qGAA+H;AAAtH,+IAAA,6BAA6B,OAAiC;AACvE,sDAAwI;AAA7D,8GAAA,aAAa,OAAiB;AACzG,8EAAuN;AAAhG,sIAAA,wBAAwB,OAA6B;AAC5K,0DAAsJ;AAAnE,kHAAA,eAAe,OAAmB;AACrH,4DAA2P;AAAtE,oHAAA,gBAAgB,OAAoB;AACzN,0DAAsJ;AAAnE,kHAAA,eAAe,OAAmB;AACrH,wDAA6K;AAA1E,qHAAA,mBAAmB,OAAuB;AAC7I,0EAAkM;AAA3F,kIAAA,uBAAuB,OAA2B;AACzJ,8DAAoK;AAAzE,sHAAA,iBAAiB,OAAqB;AACjI,0DAA4L;AAAnE,kHAAA,eAAe,OAAmB;AAC3J,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAC7F,wDAA2I;AAAhE,gHAAA,cAAc,OAAkB;AAC3G,sDAAwI;AAA7D,8GAAA,aAAa,OAAiB;AACzG,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAC7F,wEAAuM;AAAxF,gIAAA,sBAAsB,OAA0B;AAC/J,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAE7F,mEAAmF;AAA1E,oHAAA,eAAe,OAAmB;AAC3C,2DAAqF;AAA5E,mHAAA,kBAAkB,OAAsB;AACjD,mDAAyE;AAAhE,2GAAA,cAAc,OAAkB;AACzC,uDAA+E;AAAtE,+GAAA,gBAAgB,OAAoB;AAC7C,mDAAyE;AAAhE,2GAAA,cAAc,OAAkB"}
|