cetus-tools 1.0.42 → 1.0.44
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/ContributorActionManager.d.ts +50 -0
- package/dist/crud/ContributorActionManager.js +89 -0
- package/dist/crud/ContributorActionManager.js.map +1 -0
- package/dist/crud/ContributorManager.d.ts +29 -0
- package/dist/crud/ContributorManager.js +65 -0
- package/dist/crud/ContributorManager.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/crud/PortfolioModificationManager.d.ts +0 -23
- package/dist/crud/PortfolioModificationManager.js +0 -3
- package/dist/crud/PortfolioModificationManager.js.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export interface IContributorAction {
|
|
4
|
+
contributorActionId?: number;
|
|
5
|
+
sourceId?: number;
|
|
6
|
+
contributorId?: number;
|
|
7
|
+
typeId?: number;
|
|
8
|
+
date?: number;
|
|
9
|
+
amount?: number;
|
|
10
|
+
rate?: number;
|
|
11
|
+
tier?: number;
|
|
12
|
+
nav?: number;
|
|
13
|
+
units?: number;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
createdAt?: string;
|
|
16
|
+
config?: AxiosRequestConfig;
|
|
17
|
+
}
|
|
18
|
+
export interface IContributorActionDetails {
|
|
19
|
+
contributorActionId?: number;
|
|
20
|
+
sourceId?: number | string;
|
|
21
|
+
contributorId?: number | string;
|
|
22
|
+
type?: string;
|
|
23
|
+
date?: number;
|
|
24
|
+
amount?: number;
|
|
25
|
+
rate?: number;
|
|
26
|
+
tier?: number;
|
|
27
|
+
nav?: number;
|
|
28
|
+
units?: number;
|
|
29
|
+
updatedAt?: string;
|
|
30
|
+
createdAt?: string;
|
|
31
|
+
columns?: string;
|
|
32
|
+
limit?: number;
|
|
33
|
+
offset?: number;
|
|
34
|
+
config?: AxiosRequestConfig;
|
|
35
|
+
}
|
|
36
|
+
export declare class ContributorActionManager extends CrudServiceManager<IContributorActionDetails, IContributorAction> {
|
|
37
|
+
private url;
|
|
38
|
+
private typeManager;
|
|
39
|
+
constructor(url: string);
|
|
40
|
+
find(details: IContributorActionDetails): Promise<IContributorAction | undefined>;
|
|
41
|
+
count(details: IContributorAction): Promise<{
|
|
42
|
+
result: number;
|
|
43
|
+
}>;
|
|
44
|
+
private buildRequestUrl;
|
|
45
|
+
findAll(details: IContributorActionDetails): Promise<IContributorAction[] | undefined>;
|
|
46
|
+
findById(id: StandardIdRequestDefinition): Promise<IContributorAction | undefined>;
|
|
47
|
+
create(details: IContributorActionDetails): Promise<IContributorAction | undefined>;
|
|
48
|
+
modify(contributorAction: IContributorAction): Promise<any>;
|
|
49
|
+
destroy(contributorAction: IContributorAction): Promise<any>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.ContributorActionManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
const TypeManager_1 = require("./TypeManager");
|
|
15
|
+
class ContributorActionManager extends itrm_tools_1.CrudServiceManager {
|
|
16
|
+
constructor(url) {
|
|
17
|
+
super();
|
|
18
|
+
this.url = url;
|
|
19
|
+
this.typeManager = new TypeManager_1.TypeManager(url);
|
|
20
|
+
}
|
|
21
|
+
find(details) {
|
|
22
|
+
return this.sendFinding(`${this.url}/contributorActions?sourceId=${details.sourceId}`, details.config);
|
|
23
|
+
}
|
|
24
|
+
count(details) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
var _a;
|
|
27
|
+
let url = this.buildRequestUrl(`${this.url}/contributorActions`, details);
|
|
28
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
buildRequestUrl(url, details) {
|
|
32
|
+
let suffix = `${details.contributorId ? `&contributorId=${details.contributorId}` : ""}${details.contributorId ? `&sourceId=${details.sourceId}` : ""}${details.typeId ? `&typeId=${details.typeId}` : ""}${details.tier ? `&tier=${details.tier}` : ""}`;
|
|
33
|
+
return `${url}?${suffix.substring(1)}`;
|
|
34
|
+
}
|
|
35
|
+
findAll(details) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
let contributorActions = [], limit = 500, offset = 0, isEmpty = false;
|
|
38
|
+
do {
|
|
39
|
+
let values = yield this.sendAllFinding(`${this.url}/contributorActions?limit=${limit}&offset=${offset}`, details.config);
|
|
40
|
+
if (values)
|
|
41
|
+
contributorActions = contributorActions.concat(values);
|
|
42
|
+
isEmpty = values == undefined || values.length == 0;
|
|
43
|
+
offset += limit;
|
|
44
|
+
} while (!isEmpty);
|
|
45
|
+
return contributorActions;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
findById(id) {
|
|
49
|
+
return this.sendFinding(`${this.url}/contributorActions?id=${id.id}`, id.config);
|
|
50
|
+
}
|
|
51
|
+
create(details) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
if (details.type) {
|
|
54
|
+
let contributorActionType = yield this.typeManager.findOrCreate({ type: details.type, config: details.config });
|
|
55
|
+
if (contributorActionType)
|
|
56
|
+
return this.sendCreation(`${this.url}/contributorActions`, {
|
|
57
|
+
contributorId: details.contributorId,
|
|
58
|
+
typeId: contributorActionType.typeId,
|
|
59
|
+
sourceId: details.sourceId,
|
|
60
|
+
date: details.date,
|
|
61
|
+
amount: details.amount,
|
|
62
|
+
rate: details.rate,
|
|
63
|
+
tier: details.tier,
|
|
64
|
+
nav: details.nav,
|
|
65
|
+
units: details.units
|
|
66
|
+
}, details.config);
|
|
67
|
+
}
|
|
68
|
+
return undefined;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
modify(contributorAction) {
|
|
72
|
+
return this.sendModification(`${this.url}/contributorActions/${contributorAction.contributorActionId}`, {
|
|
73
|
+
contributorId: contributorAction.contributorId,
|
|
74
|
+
typeId: contributorAction.typeId,
|
|
75
|
+
sourceId: contributorAction.sourceId,
|
|
76
|
+
date: contributorAction.date,
|
|
77
|
+
amount: contributorAction.amount,
|
|
78
|
+
rate: contributorAction.rate,
|
|
79
|
+
tier: contributorAction.tier,
|
|
80
|
+
nav: contributorAction.nav,
|
|
81
|
+
units: contributorAction.units
|
|
82
|
+
}, contributorAction.config);
|
|
83
|
+
}
|
|
84
|
+
destroy(contributorAction) {
|
|
85
|
+
return this.sendDestuction(`${this.url}/sources/${contributorAction.contributorActionId}`, contributorAction.config);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ContributorActionManager = ContributorActionManager;
|
|
89
|
+
//# sourceMappingURL=ContributorActionManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContributorActionManager.js","sourceRoot":"","sources":["../../src/crud/ContributorActionManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6E;AAC7E,+CAA4C;AAsC5C,MAAa,wBAAyB,SAAQ,+BAAiE;IAI3G,YAAY,GAAW;QACnB,KAAK,EA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I,EAAE,OAAO,CAAC,IAAI;wBAClB,GAAG,EAAE,OAAO,CAAC,GAAG;wBAChB,KAAK,EAAE,OAAO,CAAC,KAAK;qBACvB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC;YACD,OAAO,SAAS,CAAC;QACrB,CAAC;KAAA;IAEM,MAAM,CAAC,iBAAqC;QAC/C,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,GAAG,uBAAuB,iBAAiB,CAAC,mBAAmB,EAAE,EAAE;YACpG,aAAa,EAAE,iBAAiB,CAAC,aAAa;YAC9C,MAAM,EAAE,iBAAiB,CAAC,MAAM;YAChC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;YACpC,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,MAAM,EAAE,iBAAiB,CAAC,MAAM;YAChC,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,GAAG,EAAE,iBAAiB,CAAC,GAAG;YAC1B,KAAK,EAAE,iBAAiB,CAAC,KAAK;SACjC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAEM,OAAO,CAAC,iBAAqC;QAChD,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,iBAAiB,CAAC,mBAAmB,EAAE,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACzH,CAAC;CACJ;AA5ED,4DA4EC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
export interface IContributor {
|
|
4
|
+
contributorId?: number;
|
|
5
|
+
document?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
updatedAt?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
config?: AxiosRequestConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface IContributorDetails {
|
|
12
|
+
document?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
config?: AxiosRequestConfig;
|
|
15
|
+
}
|
|
16
|
+
export declare class ContributorManager extends CrudServiceManager<IContributorDetails, IContributor> {
|
|
17
|
+
private url;
|
|
18
|
+
constructor(url: string);
|
|
19
|
+
find(details: IContributorDetails): Promise<IContributor | undefined>;
|
|
20
|
+
count(details: IContributor): Promise<{
|
|
21
|
+
result: number;
|
|
22
|
+
}>;
|
|
23
|
+
private buildRequestUrl;
|
|
24
|
+
findAll(details: IContributorDetails): Promise<IContributor[] | undefined>;
|
|
25
|
+
findById(id: StandardIdRequestDefinition): Promise<IContributor | undefined>;
|
|
26
|
+
create(details: IContributorDetails): Promise<IContributor | undefined>;
|
|
27
|
+
modify(contributor: IContributor): Promise<any>;
|
|
28
|
+
destroy(contributor: IContributor): Promise<any>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.ContributorManager = void 0;
|
|
13
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
14
|
+
class ContributorManager extends itrm_tools_1.CrudServiceManager {
|
|
15
|
+
constructor(url) {
|
|
16
|
+
super();
|
|
17
|
+
this.url = url;
|
|
18
|
+
}
|
|
19
|
+
find(details) {
|
|
20
|
+
return this.sendFinding(`${this.url}/contributors?name=${details.name}`, details.config);
|
|
21
|
+
}
|
|
22
|
+
count(details) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
var _a;
|
|
25
|
+
let url = this.buildRequestUrl(`${this.url}/contributors`, details);
|
|
26
|
+
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : { result: 0 };
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
buildRequestUrl(url, details) {
|
|
30
|
+
let suffix = `${details.name ? `&name=${details.name}` : ""}${details.document ? `&document=${details.document}` : ""}`;
|
|
31
|
+
return `${url}?${suffix.substring(1)}`;
|
|
32
|
+
}
|
|
33
|
+
findAll(details) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
let contributors = [], limit = 100, offset = 0, isEmpty = false;
|
|
36
|
+
do {
|
|
37
|
+
let values = yield this.sendAllFinding(`${this.url}/contributors?limit=${limit}&offset=${offset}`, details.config);
|
|
38
|
+
if (values)
|
|
39
|
+
contributors = contributors.concat(values);
|
|
40
|
+
isEmpty = values == undefined || values.length == 0;
|
|
41
|
+
offset += limit;
|
|
42
|
+
} while (!isEmpty);
|
|
43
|
+
return contributors;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
findById(id) {
|
|
47
|
+
return this.sendFinding(`${this.url}/contributors?id=${id.id}`, id.config);
|
|
48
|
+
}
|
|
49
|
+
create(details) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
return this.sendCreation(`${this.url}/contributors`, {
|
|
52
|
+
document: details.document,
|
|
53
|
+
name: details.name
|
|
54
|
+
}, details.config);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
modify(contributor) {
|
|
58
|
+
return this.sendModification(`${this.url}/contributors/${contributor.contributorId}`, { name: contributor.name, document: contributor.document }, contributor.config);
|
|
59
|
+
}
|
|
60
|
+
destroy(contributor) {
|
|
61
|
+
return this.sendDestuction(`${this.url}/contributors/${contributor.contributorId}`, contributor.config);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ContributorManager = ContributorManager;
|
|
65
|
+
//# sourceMappingURL=ContributorManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContributorManager.js","sourceRoot":"","sources":["../../src/crud/ContributorManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA6E;AAiB7E,MAAa,kBAAmB,SAAQ,+BAAqD;IAGzF,YAAY,GAAW;QACnB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAEM,IAAI,CAAC,OAA4B;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,sBAAsB,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7F,CAAC;IAEY,KAAK,CAAC,OAAqB;;;YACpC,IAAI,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,eAAe,EAAE,OAAO,CAAC,CAAC;YACpE,OAAO,MAAA,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,mCAAI,EAAC,MAAM,EAAE,CAAC,EAAC,CAAC;QACzE,CAAC;KAAA;IAEO,eAAe,CAAC,GAAW,EAAE,OAAqB;QACtD,IAAI,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACxH,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,SAAS,CA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,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1K,CAAC;IAEM,OAAO,CAAC,WAAyB;QACpC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,iBAAiB,WAAW,CAAC,aAAa,EAAE,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5G,CAAC;CACJ;AApDD,gDAoDC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export { IOperations as IOperations, IOperationsDetails as IOperationsDetails, O
|
|
|
21
21
|
export { PairsManager as PairsManager, IPairs as IPairs, IPairsDetails as IPairsDetails } from "./crud/PairsManager";
|
|
22
22
|
export { RatesManager as RatesManager, IRates as IRates, IRatesDetails as IRatesDetails } from "./crud/RatesManager";
|
|
23
23
|
export { SourceManager as SourceManager, ISource as ISource, ISourceDetails as ISourceDetails } from "./crud/SourceManager";
|
|
24
|
+
export { ContributorManager as ContributorManager, IContributor as IContributor, IContributorDetails as IContributorDetails } from "./crud/ContributorManager";
|
|
25
|
+
export { ContributorActionManager as ContributorActionManager, IContributorAction as IContributorAction, IContributorActionDetails as IContributorActionDetails } from "./crud/ContributorActionManager";
|
|
24
26
|
export { applyLoginMocks as applyLoginMocks } from "./crud/test/LoginServiceMock";
|
|
25
27
|
export { applyPlatformMocks as applyPlatformMocks } from "./crud/test/PlatformMocks";
|
|
26
28
|
export { applyRoleMocks as applyRoleMocks } from "./crud/test/RoleMocks";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyTypeMocks = exports.applyStatusMocks = exports.applyRoleMocks = exports.applyPlatformMocks = exports.applyLoginMocks = exports.SourceManager = exports.RatesManager = exports.PairsManager = exports.OperationsManager = exports.IntermediaryManager = exports.AssetsManager = exports.ActivityHistoryManager = exports.UserManager = exports.UserCredentialsManager = exports.TypeManager = exports.StatusManager = exports.RoleManager = exports.AvailablePlatformManager = exports.PlatformManager = exports.ComponentManager = exports.findBitsoBook = exports.findBalances = exports.BitsoApiConnection = exports.ServiceSessionChecker = exports.RoleServicePermissionsChecker = exports.ExpressLogableConfig = void 0;
|
|
3
|
+
exports.applyTypeMocks = exports.applyStatusMocks = exports.applyRoleMocks = exports.applyPlatformMocks = exports.applyLoginMocks = exports.ContributorActionManager = exports.ContributorManager = exports.SourceManager = exports.RatesManager = exports.PairsManager = exports.OperationsManager = exports.IntermediaryManager = exports.AssetsManager = exports.ActivityHistoryManager = exports.UserManager = exports.UserCredentialsManager = exports.TypeManager = exports.StatusManager = exports.RoleManager = exports.AvailablePlatformManager = exports.PlatformManager = exports.ComponentManager = exports.findBitsoBook = exports.findBalances = exports.BitsoApiConnection = exports.ServiceSessionChecker = exports.RoleServicePermissionsChecker = exports.ExpressLogableConfig = void 0;
|
|
4
4
|
var ExpressLogableConfig_1 = require("./api/ExpressLogableConfig");
|
|
5
5
|
Object.defineProperty(exports, "ExpressLogableConfig", { enumerable: true, get: function () { return ExpressLogableConfig_1.ExpressLogableConfig; } });
|
|
6
6
|
var RoleServicePermissionsChecker_1 = require("./api/checkers/RoleServicePermissionsChecker");
|
|
@@ -43,6 +43,10 @@ var RatesManager_1 = require("./crud/RatesManager");
|
|
|
43
43
|
Object.defineProperty(exports, "RatesManager", { enumerable: true, get: function () { return RatesManager_1.RatesManager; } });
|
|
44
44
|
var SourceManager_1 = require("./crud/SourceManager");
|
|
45
45
|
Object.defineProperty(exports, "SourceManager", { enumerable: true, get: function () { return SourceManager_1.SourceManager; } });
|
|
46
|
+
var ContributorManager_1 = require("./crud/ContributorManager");
|
|
47
|
+
Object.defineProperty(exports, "ContributorManager", { enumerable: true, get: function () { return ContributorManager_1.ContributorManager; } });
|
|
48
|
+
var ContributorActionManager_1 = require("./crud/ContributorActionManager");
|
|
49
|
+
Object.defineProperty(exports, "ContributorActionManager", { enumerable: true, get: function () { return ContributorActionManager_1.ContributorActionManager; } });
|
|
46
50
|
var LoginServiceMock_1 = require("./crud/test/LoginServiceMock");
|
|
47
51
|
Object.defineProperty(exports, "applyLoginMocks", { enumerable: true, get: function () { return LoginServiceMock_1.applyLoginMocks; } });
|
|
48
52
|
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,mEAA0F;AAAjF,4HAAA,oBAAoB,OAAwB;AAErD,8FAA8H;AAArH,8IAAA,6BAA6B,OAAiC;AACvE,8EAAkM;AAA7F,8HAAA,qBAAqB,OAAyB;AAEnJ,qEAA4H;AAAjF,wHAAA,kBAAkB,OAAsB;AACnF,+DAA8G;AAArE,4GAAA,YAAY,OAAgB;AACrE,yDAAuG;AAApE,0GAAA,aAAa,OAAiB;AAIjE,4DAA2P;AAAtE,oHAAA,gBAAgB,OAAoB;AACzN,0DAA4L;AAAnE,kHAAA,eAAe,OAAmB;AAC3J,4EAAqN;AAA9F,oIAAA,wBAAwB,OAA4B;AAC3K,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAC7F,sDAAwI;AAA7D,8GAAA,aAAa,OAAiB;AACzG,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAC7F,wEAAuM;AAAxF,gIAAA,sBAAsB,OAA0B;AAC/J,kDAA0H;AAAvD,0GAAA,WAAW,OAAe;AAC7F,wEAA2L;AAAxF,gIAAA,sBAAsB,OAA0B;AACnJ,sDAA4H;AAA7D,8GAAA,aAAa,OAAiB;AAC7F,kEAAsK;AAA/E,0HAAA,mBAAmB,OAAuB;AACjI,8DAAwJ;AAAzE,sHAAA,iBAAiB,OAAqB;AACrH,oDAAqH;AAA5G,4GAAA,YAAY,OAAgB;AACrC,oDAAqH;AAA5G,4GAAA,YAAY,OAAgB;AACrC,sDAA4H;AAAnH,8GAAA,aAAa,OAAiB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceR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E;AAAhE,2GAAA,cAAc,OAAkB"}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PortfolioModificationManager.js","sourceRoot":"","sources":["../../src/crud/PortfolioModificationManager.ts"],"names":[],"mappings":""}
|