ia-common 1.0.1-beta.222 → 1.0.1-beta.223
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.
|
@@ -11,4 +11,12 @@ export declare enum ConfigurationText {
|
|
|
11
11
|
export declare namespace ConfigurationKey {
|
|
12
12
|
function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
|
|
13
13
|
function getCronJobName(configurationKey: ConfigurationKey): CronJobsNames;
|
|
14
|
+
function getKey(configurationType: ConfigurationKey): ConfigurationKey;
|
|
15
|
+
function getDescription(configurationType: ConfigurationKey): ConfigurationDescription;
|
|
16
|
+
function getText(configurationType: ConfigurationKey): ConfigurationText;
|
|
17
|
+
function getObj(configurationType: ConfigurationKey): {
|
|
18
|
+
key: ConfigurationKey;
|
|
19
|
+
description: ConfigurationDescription;
|
|
20
|
+
text: ConfigurationText;
|
|
21
|
+
};
|
|
14
22
|
}
|
|
@@ -31,4 +31,36 @@ var ConfigurationText;
|
|
|
31
31
|
return cronJobConfigurationKeyMapping[configurationKey];
|
|
32
32
|
}
|
|
33
33
|
ConfigurationKey.getCronJobName = getCronJobName;
|
|
34
|
+
function getKey(configurationType) {
|
|
35
|
+
var _a;
|
|
36
|
+
var configurationTypeKeyMapping = (_a = {},
|
|
37
|
+
_a[ConfigurationKey.ORGANIZATION_DEACTIVATION] = ConfigurationKey.ORGANIZATION_DEACTIVATION,
|
|
38
|
+
_a);
|
|
39
|
+
return configurationTypeKeyMapping[configurationType];
|
|
40
|
+
}
|
|
41
|
+
ConfigurationKey.getKey = getKey;
|
|
42
|
+
function getDescription(configurationType) {
|
|
43
|
+
var _a;
|
|
44
|
+
var configurationTypeDescriptionMapping = (_a = {},
|
|
45
|
+
_a[ConfigurationKey.ORGANIZATION_DEACTIVATION] = ConfigurationDescription.ORGANIZATION_DEACTIVATION,
|
|
46
|
+
_a);
|
|
47
|
+
return configurationTypeDescriptionMapping[configurationType];
|
|
48
|
+
}
|
|
49
|
+
ConfigurationKey.getDescription = getDescription;
|
|
50
|
+
function getText(configurationType) {
|
|
51
|
+
var _a;
|
|
52
|
+
var configurationTypeTextMapping = (_a = {},
|
|
53
|
+
_a[ConfigurationKey.ORGANIZATION_DEACTIVATION] = ConfigurationText.ORGANIZATION_DEACTIVATION,
|
|
54
|
+
_a);
|
|
55
|
+
return configurationTypeTextMapping[configurationType];
|
|
56
|
+
}
|
|
57
|
+
ConfigurationKey.getText = getText;
|
|
58
|
+
function getObj(configurationType) {
|
|
59
|
+
return {
|
|
60
|
+
key: getKey(configurationType),
|
|
61
|
+
description: getDescription(configurationType),
|
|
62
|
+
text: getText(configurationType),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
ConfigurationKey.getObj = getObj;
|
|
34
66
|
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|