ia-common 1.0.1-beta.232 → 1.0.1-beta.234
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/build/@utils.d.ts +1 -0
- package/build/@utils.js +1 -0
- package/build/enum/configuration.enum.d.ts +6 -3
- package/build/enum/configuration.enum.js +7 -0
- package/build/enum/cron-job.enum.d.ts +2 -1
- package/build/enum/cron-job.enum.js +1 -0
- package/build/utils/math-utils.d.ts +4 -0
- package/build/utils/math-utils.js +13 -0
- package/package.json +1 -1
package/build/@utils.d.ts
CHANGED
package/build/@utils.js
CHANGED
|
@@ -19,3 +19,4 @@ __exportStar(require("./utils/string-utils"), exports);
|
|
|
19
19
|
__exportStar(require("./utils/date-util"), exports);
|
|
20
20
|
__exportStar(require("./utils/validate-utils"), exports);
|
|
21
21
|
// export * from "./red-black-tree/red-black-tree";
|
|
22
|
+
__exportStar(require("./utils/math-utils"), exports);
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { CronJobsNames } from "./cron-job.enum";
|
|
2
2
|
export declare enum Configuration {
|
|
3
|
-
ORGANIZATION_DEACTIVATION = "organization_deactivation"
|
|
3
|
+
ORGANIZATION_DEACTIVATION = "organization_deactivation",
|
|
4
|
+
GAIN_LOSS_CALCULATION = "gain_loss_calculation"
|
|
4
5
|
}
|
|
5
6
|
export declare enum ConfigurationDescription {
|
|
6
|
-
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization"
|
|
7
|
+
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization",
|
|
8
|
+
GAIN_LOSS_CALCULATION = "update the gain loss calculation"
|
|
7
9
|
}
|
|
8
10
|
export declare enum ConfigurationText {
|
|
9
|
-
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization, Users, and Subscription entities upon SEBI certificate expiration"
|
|
11
|
+
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization, Users, and Subscription entities upon SEBI certificate expiration",
|
|
12
|
+
GAIN_LOSS_CALCULATION = "It will calculate the gain loss of the advice and update the gain loss in the equity-advice entity."
|
|
10
13
|
}
|
|
11
14
|
export declare namespace Configuration {
|
|
12
15
|
function CronJobsConfigurationsKeys(key: Configuration): boolean;
|
|
@@ -6,14 +6,17 @@ var cron_job_enum_1 = require("./cron-job.enum");
|
|
|
6
6
|
var Configuration;
|
|
7
7
|
(function (Configuration) {
|
|
8
8
|
Configuration["ORGANIZATION_DEACTIVATION"] = "organization_deactivation";
|
|
9
|
+
Configuration["GAIN_LOSS_CALCULATION"] = "gain_loss_calculation";
|
|
9
10
|
})(Configuration || (exports.Configuration = Configuration = {}));
|
|
10
11
|
var ConfigurationDescription;
|
|
11
12
|
(function (ConfigurationDescription) {
|
|
12
13
|
ConfigurationDescription["ORGANIZATION_DEACTIVATION"] = "Update the status of \"Account_suspended\" accounts in Organization";
|
|
14
|
+
ConfigurationDescription["GAIN_LOSS_CALCULATION"] = "update the gain loss calculation";
|
|
13
15
|
})(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
|
|
14
16
|
var ConfigurationText;
|
|
15
17
|
(function (ConfigurationText) {
|
|
16
18
|
ConfigurationText["ORGANIZATION_DEACTIVATION"] = "Update the status of \"Account_suspended\" accounts in Organization, Users, and Subscription entities upon SEBI certificate expiration";
|
|
19
|
+
ConfigurationText["GAIN_LOSS_CALCULATION"] = "It will calculate the gain loss of the advice and update the gain loss in the equity-advice entity.";
|
|
17
20
|
})(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
|
|
18
21
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
19
22
|
(function (Configuration) {
|
|
@@ -27,6 +30,7 @@ var ConfigurationText;
|
|
|
27
30
|
var _a;
|
|
28
31
|
var cronJobConfigurationKeyMapping = (_a = {},
|
|
29
32
|
_a[Configuration.ORGANIZATION_DEACTIVATION] = cron_job_enum_1.CronJobsNames.ORGANIZATION_DEACTIVATION,
|
|
33
|
+
_a[Configuration.GAIN_LOSS_CALCULATION] = cron_job_enum_1.CronJobsNames.GAIN_LOSS_CALCULATION,
|
|
30
34
|
_a);
|
|
31
35
|
return cronJobConfigurationKeyMapping[configurationKey];
|
|
32
36
|
}
|
|
@@ -35,6 +39,7 @@ var ConfigurationText;
|
|
|
35
39
|
var _a;
|
|
36
40
|
var configurationTypeKeyMapping = (_a = {},
|
|
37
41
|
_a[Configuration.ORGANIZATION_DEACTIVATION] = Configuration.ORGANIZATION_DEACTIVATION,
|
|
42
|
+
_a[Configuration.GAIN_LOSS_CALCULATION] = Configuration.GAIN_LOSS_CALCULATION,
|
|
38
43
|
_a);
|
|
39
44
|
return configurationTypeKeyMapping[configurationType];
|
|
40
45
|
}
|
|
@@ -43,6 +48,7 @@ var ConfigurationText;
|
|
|
43
48
|
var _a;
|
|
44
49
|
var configurationTypeDescriptionMapping = (_a = {},
|
|
45
50
|
_a[Configuration.ORGANIZATION_DEACTIVATION] = ConfigurationDescription.ORGANIZATION_DEACTIVATION,
|
|
51
|
+
_a[Configuration.GAIN_LOSS_CALCULATION] = ConfigurationDescription.GAIN_LOSS_CALCULATION,
|
|
46
52
|
_a);
|
|
47
53
|
return configurationTypeDescriptionMapping[configurationType];
|
|
48
54
|
}
|
|
@@ -51,6 +57,7 @@ var ConfigurationText;
|
|
|
51
57
|
var _a;
|
|
52
58
|
var configurationTypeTextMapping = (_a = {},
|
|
53
59
|
_a[Configuration.ORGANIZATION_DEACTIVATION] = ConfigurationText.ORGANIZATION_DEACTIVATION,
|
|
60
|
+
_a[Configuration.GAIN_LOSS_CALCULATION] = ConfigurationText.GAIN_LOSS_CALCULATION,
|
|
54
61
|
_a);
|
|
55
62
|
return configurationTypeTextMapping[configurationType];
|
|
56
63
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum CronJobsNames {
|
|
2
|
-
ORGANIZATION_DEACTIVATION = "organization_deactivation"
|
|
2
|
+
ORGANIZATION_DEACTIVATION = "organization_deactivation",
|
|
3
|
+
GAIN_LOSS_CALCULATION = "gain_loss_calculation"
|
|
3
4
|
}
|
|
4
5
|
export declare enum CronJobsStatus {
|
|
5
6
|
RUNNING = "running",
|
|
@@ -5,6 +5,7 @@ exports.CronJobsStatus = exports.CronJobsNames = void 0;
|
|
|
5
5
|
var CronJobsNames;
|
|
6
6
|
(function (CronJobsNames) {
|
|
7
7
|
CronJobsNames["ORGANIZATION_DEACTIVATION"] = "organization_deactivation";
|
|
8
|
+
CronJobsNames["GAIN_LOSS_CALCULATION"] = "gain_loss_calculation";
|
|
8
9
|
})(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
|
|
9
10
|
var CronJobsStatus;
|
|
10
11
|
(function (CronJobsStatus) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mathUtils = exports.MathUtils = void 0;
|
|
4
|
+
var MathUtils = /** @class */ (function () {
|
|
5
|
+
function MathUtils() {
|
|
6
|
+
}
|
|
7
|
+
MathUtils.prototype.randomNumber = function (min, max) {
|
|
8
|
+
return parseFloat((Math.random() * (max - min) + min).toFixed(2));
|
|
9
|
+
};
|
|
10
|
+
return MathUtils;
|
|
11
|
+
}());
|
|
12
|
+
exports.MathUtils = MathUtils;
|
|
13
|
+
exports.mathUtils = new MathUtils();
|