ia-common 1.0.1-beta.215 → 1.0.1-beta.216
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/@enum.d.ts +2 -5
- package/build/@enum.js +2 -5
- package/build/enum/configuration.enum.d.ts +14 -0
- package/build/enum/configuration.enum.js +34 -0
- package/build/enum/cron-job.enum.d.ts +8 -0
- package/build/enum/cron-job.enum.js +13 -0
- package/build/model/configurations-entity-model.d.ts +1 -1
- package/build/model/configurations-entity-model.js +2 -2
- package/package.json +1 -1
package/build/@enum.d.ts
CHANGED
|
@@ -28,9 +28,6 @@ export * from "./enum/advisor-user-mapping-type.enum";
|
|
|
28
28
|
export * from "./enum/mutual-fund-status.enum";
|
|
29
29
|
export * from "./enum/nfo-advice-status.enum";
|
|
30
30
|
export * from "./enum/corporate-action-advice-status.enum";
|
|
31
|
-
export * from "./enum/configuration
|
|
32
|
-
export * from "./enum/
|
|
33
|
-
export * from "./enum/configuration-text.enum";
|
|
34
|
-
export * from "./enum/cron-job-name.enum";
|
|
35
|
-
export * from "./enum/cron-job-status.enum";
|
|
31
|
+
export * from "./enum/configuration.enum";
|
|
32
|
+
export * from "./enum/cron-job.enum";
|
|
36
33
|
export * from "./enum/time-zone.enum";
|
package/build/@enum.js
CHANGED
|
@@ -44,9 +44,6 @@ __exportStar(require("./enum/advisor-user-mapping-type.enum"), exports);
|
|
|
44
44
|
__exportStar(require("./enum/mutual-fund-status.enum"), exports);
|
|
45
45
|
__exportStar(require("./enum/nfo-advice-status.enum"), exports);
|
|
46
46
|
__exportStar(require("./enum/corporate-action-advice-status.enum"), exports);
|
|
47
|
-
__exportStar(require("./enum/configuration
|
|
48
|
-
__exportStar(require("./enum/
|
|
49
|
-
__exportStar(require("./enum/configuration-text.enum"), exports);
|
|
50
|
-
__exportStar(require("./enum/cron-job-name.enum"), exports);
|
|
51
|
-
__exportStar(require("./enum/cron-job-status.enum"), exports);
|
|
47
|
+
__exportStar(require("./enum/configuration.enum"), exports);
|
|
48
|
+
__exportStar(require("./enum/cron-job.enum"), exports);
|
|
52
49
|
__exportStar(require("./enum/time-zone.enum"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CronJobsNames } from "./cron-job.enum";
|
|
2
|
+
export declare enum ConfigurationKey {
|
|
3
|
+
ORGANIZATION_DEACTIVATION = "organization_deactivation"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ConfigurationDescription {
|
|
6
|
+
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ConfigurationText {
|
|
9
|
+
ORGANIZATION_DEACTIVATION = "Update the status of \"Account_suspended\" accounts in Organization, Users, and Subscription entities upon SEBI certificate expiration"
|
|
10
|
+
}
|
|
11
|
+
export declare namespace ConfigurationKey {
|
|
12
|
+
function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
|
|
13
|
+
function getCronJobName(configurationKey: ConfigurationKey): CronJobsNames;
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationText = exports.ConfigurationDescription = exports.ConfigurationKey = void 0;
|
|
4
|
+
var cron_job_enum_1 = require("./cron-job.enum");
|
|
5
|
+
//? add same key in all 3 configuration key, configuration description,configuration text enum
|
|
6
|
+
var ConfigurationKey;
|
|
7
|
+
(function (ConfigurationKey) {
|
|
8
|
+
ConfigurationKey["ORGANIZATION_DEACTIVATION"] = "organization_deactivation";
|
|
9
|
+
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
10
|
+
var ConfigurationDescription;
|
|
11
|
+
(function (ConfigurationDescription) {
|
|
12
|
+
ConfigurationDescription["ORGANIZATION_DEACTIVATION"] = "Update the status of \"Account_suspended\" accounts in Organization";
|
|
13
|
+
})(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
|
|
14
|
+
var ConfigurationText;
|
|
15
|
+
(function (ConfigurationText) {
|
|
16
|
+
ConfigurationText["ORGANIZATION_DEACTIVATION"] = "Update the status of \"Account_suspended\" accounts in Organization, Users, and Subscription entities upon SEBI certificate expiration";
|
|
17
|
+
})(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
19
|
+
(function (ConfigurationKey) {
|
|
20
|
+
function CronJobsConfigurationsKeys(key) {
|
|
21
|
+
if (getCronJobName(key))
|
|
22
|
+
return true;
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
ConfigurationKey.CronJobsConfigurationsKeys = CronJobsConfigurationsKeys;
|
|
26
|
+
function getCronJobName(configurationKey) {
|
|
27
|
+
var _a;
|
|
28
|
+
var cronJobConfigurationKeyMapping = (_a = {},
|
|
29
|
+
_a[ConfigurationKey.ORGANIZATION_DEACTIVATION] = cron_job_enum_1.CronJobsNames.ORGANIZATION_DEACTIVATION,
|
|
30
|
+
_a);
|
|
31
|
+
return cronJobConfigurationKeyMapping[configurationKey];
|
|
32
|
+
}
|
|
33
|
+
ConfigurationKey.getCronJobName = getCronJobName;
|
|
34
|
+
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronJobsStatus = exports.CronJobsNames = void 0;
|
|
4
|
+
var CronJobsNames;
|
|
5
|
+
(function (CronJobsNames) {
|
|
6
|
+
CronJobsNames["ORGANIZATION_DEACTIVATION"] = "organization_deactivation";
|
|
7
|
+
})(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
|
|
8
|
+
var CronJobsStatus;
|
|
9
|
+
(function (CronJobsStatus) {
|
|
10
|
+
CronJobsStatus["RUNNING"] = "running";
|
|
11
|
+
CronJobsStatus["FAILED"] = "failed";
|
|
12
|
+
CronJobsStatus["SUCCESS"] = "success";
|
|
13
|
+
})(CronJobsStatus || (exports.CronJobsStatus = CronJobsStatus = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IConfigurationsEntity } from "../@type";
|
|
2
|
-
import { ConfigurationKey } from "../enum/configuration
|
|
2
|
+
import { ConfigurationKey } from "../enum/configuration.enum";
|
|
3
3
|
export declare class ConfigurationsModel implements IConfigurationsEntity {
|
|
4
4
|
id: number;
|
|
5
5
|
key: ConfigurationKey;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigurationsModel = void 0;
|
|
4
|
-
var
|
|
4
|
+
var configuration_enum_1 = require("../enum/configuration.enum");
|
|
5
5
|
var ConfigurationsModel = /** @class */ (function () {
|
|
6
6
|
function ConfigurationsModel(data) {
|
|
7
7
|
Object.assign(this, data);
|
|
8
8
|
}
|
|
9
9
|
ConfigurationsModel.prototype.isCronJobKey = function () {
|
|
10
|
-
return
|
|
10
|
+
return configuration_enum_1.ConfigurationKey.CronJobsConfigurationsKeys(this.key);
|
|
11
11
|
};
|
|
12
12
|
ConfigurationsModel.findByKey = function (configurationEntities, key) {
|
|
13
13
|
return configurationEntities.find(function (configurationEntity) { return configurationEntity.key === key; });
|