@buynomics-lib/bn-shared 1.17.83 → 1.17.84
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/enums/kpis/system-scoped-kpis.js +0 -9
- package/build/enums/kpis/system-scoped-kpis.js.map +1 -1
- package/build/enums/kpis/system-specific-kpis.d.ts +5 -0
- package/build/enums/kpis/system-specific-kpis.js +28 -0
- package/build/enums/kpis/system-specific-kpis.js.map +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/interfaces/kpis/system-kpi.interface.d.ts +5 -2
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ var kpi_display_style_enum_1 = require("./kpi-display-style.enum");
|
|
|
8
8
|
var kpi_config_type_enum_1 = require("./kpi-config-type.enum");
|
|
9
9
|
var product_type_enum_1 = require("../product/product-type.enum");
|
|
10
10
|
var system_kpis_1 = require("./system-kpis");
|
|
11
|
-
var kpi_system_variables_1 = require("./kpi-system-variables");
|
|
12
11
|
var defaultMetricSettingsForPrice = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Price];
|
|
13
12
|
var defaultMetricSettingsForUnits = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Units];
|
|
14
13
|
exports.SystemScopedKpisReferenceIds = {
|
|
@@ -23,8 +22,6 @@ exports.SystemScopedKpis = [
|
|
|
23
22
|
name: 'Revenue Market Total',
|
|
24
23
|
underlyingKpiReferenceId: system_kpis_1.SystemBaseKpisReferenceIds.Revenue,
|
|
25
24
|
scope: {},
|
|
26
|
-
formula: "".concat(kpi_system_variables_1.SystemVariablesReferenceIds.Units, " * ").concat(kpi_system_variables_1.SystemVariablesReferenceIds.Price),
|
|
27
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
28
25
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
29
26
|
displaySettings: {
|
|
30
27
|
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
@@ -39,8 +36,6 @@ exports.SystemScopedKpis = [
|
|
|
39
36
|
name: 'Units Market Total',
|
|
40
37
|
underlyingKpiReferenceId: system_kpis_1.SystemBaseKpisReferenceIds.Units,
|
|
41
38
|
scope: {},
|
|
42
|
-
formula: kpi_system_variables_1.SystemVariablesReferenceIds.Units,
|
|
43
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
44
39
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
45
40
|
displaySettings: {
|
|
46
41
|
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
@@ -55,8 +50,6 @@ exports.SystemScopedKpis = [
|
|
|
55
50
|
name: 'Revenue Own Total',
|
|
56
51
|
underlyingKpiReferenceId: system_kpis_1.SystemBaseKpisReferenceIds.Revenue,
|
|
57
52
|
scope: { productTypes: [product_type_enum_1.ProductType.Own] },
|
|
58
|
-
formula: "".concat(kpi_system_variables_1.SystemVariablesReferenceIds.Units, " * ").concat(kpi_system_variables_1.SystemVariablesReferenceIds.Price),
|
|
59
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
60
53
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
61
54
|
displaySettings: {
|
|
62
55
|
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
@@ -71,8 +64,6 @@ exports.SystemScopedKpis = [
|
|
|
71
64
|
name: 'Units Own Total',
|
|
72
65
|
underlyingKpiReferenceId: system_kpis_1.SystemBaseKpisReferenceIds.Units,
|
|
73
66
|
scope: { productTypes: [product_type_enum_1.ProductType.Own] },
|
|
74
|
-
formula: kpi_system_variables_1.SystemVariablesReferenceIds.Units,
|
|
75
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
76
67
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
77
68
|
displaySettings: {
|
|
78
69
|
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-scoped-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-scoped-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+DAAsD;AAEtD,kEAA0D;AAC1D,6CAA0D;
|
|
1
|
+
{"version":3,"file":"system-scoped-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-scoped-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+DAAsD;AAEtD,kEAA0D;AAC1D,6CAA0D;AAG1D,IAAM,6BAA6B,GACjC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,KAAK,CAC3C,CAAA;AACH,IAAM,6BAA6B,GACjC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,KAAK,CAC3C,CAAA;AAEU,QAAA,4BAA4B,GAAG;IAC1C,kBAAkB,EAAE,cAAO,oCAAa,CAAC,MAAM,0BAAuB;IACtE,gBAAgB,EAAE,cAAO,oCAAa,CAAC,MAAM,wBAAqB;IAClE,eAAe,EAAE,cAAO,oCAAa,CAAC,MAAM,uBAAoB;IAChE,aAAa,EAAE,cAAO,oCAAa,CAAC,MAAM,qBAAkB;CACpD,CAAA;AAEG,QAAA,gBAAgB,GAAuB;IAClD;QACE,WAAW,EAAE,oCAA4B,CAAC,kBAAkB;QAC5D,IAAI,EAAE,sBAAsB;QAC5B,wBAAwB,EAAE,wCAA0B,CAAC,OAAO;QAC5D,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,4CAAiB,CAAC,QAAQ;QAClC,eAAe,EAAE;YACf,gBAAgB,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AAO;QACjC,eAAe,EAAE;YACf,gBAAgB,EAAE,6BAA6B,CAAC,qBAAqB;YACrE,gBAAgB,EAAE,6BAA6B,CAAC,qBAAqB;YACrE,YAAY,EAAE,wCAAe,CAAC,QAAQ;SACvC;QACD,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,oCAAa,CAAC,MAAM;KAC3B;CACF,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemSpecificKpis = exports.SystemSpecificKpisReferenceIds = void 0;
|
|
4
|
+
var kpi_variable_format_enum_1 = require("./kpi-variable-format.enum");
|
|
5
|
+
var default_client_number_formatting_settings_1 = require("../../helpers/default-client-number-formatting-settings");
|
|
6
|
+
var client_number_formatting_settings_1 = require("../client/client-number-formatting-settings");
|
|
7
|
+
var kpi_display_style_enum_1 = require("./kpi-display-style.enum");
|
|
8
|
+
var kpi_config_type_enum_1 = require("./kpi-config-type.enum");
|
|
9
|
+
var defaultMetricSettingsForPrice = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Price];
|
|
10
|
+
var defaultMetricSettingsForUnits = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Units];
|
|
11
|
+
exports.SystemSpecificKpisReferenceIds = {
|
|
12
|
+
Elasticity: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Specific, "_elasticity"),
|
|
13
|
+
};
|
|
14
|
+
exports.SystemSpecificKpis = [
|
|
15
|
+
{
|
|
16
|
+
referenceId: exports.SystemSpecificKpisReferenceIds.Elasticity,
|
|
17
|
+
name: 'Elasticity',
|
|
18
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
19
|
+
isVisible: true,
|
|
20
|
+
type: kpi_config_type_enum_1.KpiConfigType.Specific,
|
|
21
|
+
displaySettings: {
|
|
22
|
+
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
23
|
+
maxDecimalPlaces: defaultMetricSettingsForUnits.maximumFractionDigits,
|
|
24
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
//# sourceMappingURL=system-specific-kpis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-specific-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-specific-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+DAAsD;AAStD,IAAM,6BAA6B,GACjC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,KAAK,CAC3C,CAAA;AACH,IAAM,6BAA6B,GACjC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,KAAK,CAC3C,CAAA;AAEU,QAAA,8BAA8B,GAAG;IAC5C,UAAU,EAAE,cAAO,oCAAa,CAAC,QAAQ,gBAAa;CAC9C,CAAA;AAEG,QAAA,kBAAkB,GAAyB;IACtD;QACE,WAAW,EAAE,sCAA8B,CAAC,UAAU;QACtD,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,4CAAiB,CAAC,OAAO;QACjC,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,oCAAa,CAAC,QAAQ;QAC5B,eAAe,EAAE;YACf,gBAAgB,EAAE,6BAA6B,CAAC,qBAAqB;YACrE,gBAAgB,EAAE,6BAA6B,CAAC,qBAAqB;YACrE,YAAY,EAAE,wCAAe,CAAC,QAAQ;SACvC;KACF;CACF,CAAA"}
|
package/build/index.d.ts
CHANGED
|
@@ -70,4 +70,5 @@ import { ISystemKpiBase, ISystemKpi, IKpiDisplaySettings, ISystemScopedKpi, ISco
|
|
|
70
70
|
import { TimePeriod } from './interfaces/time/time-period';
|
|
71
71
|
import { ProductType } from './enums/product/product-type.enum';
|
|
72
72
|
import { WidgetPresetType, WidgetPresetAvailability } from './enums/widget-preset';
|
|
73
|
-
|
|
73
|
+
import { SystemSpecificKpis, SystemSpecificKpisReferenceIds } from './enums/kpis/system-specific-kpis';
|
|
74
|
+
export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, KpiConstraintMode, MechanicParamTypes, MechanicParamReferenceIds, MechanicTypeRelations, ProductType, PromotionOfferStatus, PromotionOffersCalendarGroupByOptions, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ScenarioStatus, DateGranularity, DateWeekStart, ClientDateSettings, DefaultClientDateSettings, WidgetPresetType, WidgetPresetAvailability, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, ScenarioEventSource, KpiVariableFormat, KpiAggregation, KpiDisplayStyle, KpiConfigType, SystemVariableType, KpiSystemVariables, SystemKpis, SystemBaseKpisReferenceIds, SystemScopedKpis, SystemScopedKpisReferenceIds, SystemDerivedKpis, SystemDerivedKpisReferenceIds, SystemSpecificKpisReferenceIds, SystemSpecificKpis, SystemVariablesReferenceIds, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, ISystemVariable, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, SCENARIO_KPIS_GROUP_BY_MAX_LEVEL, FORMULA_PREFIX_FOR_MEASURING_UNITS, FORMULA_PREFIX_FOR_INPUT_VARIABLES, };
|
package/build/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PromotionOffersCalendarGroupByOptions = exports.PromotionOfferStatus = exports.ProductType = exports.MechanicTypeRelations = exports.MechanicParamReferenceIds = exports.MechanicParamTypes = exports.KpiConstraintMode = exports.KpiConstraintType = exports.ValueDriverType = exports.ClientIndustry = exports.ClientStatus = exports.AvailabilityChangeTypes = exports.CostChangeTypes = exports.ChangeCostBases = exports.ClientFeatureScope = exports.ClientFeatureState = exports.ClientFeature = exports.ChangeProductPriceBases = exports.ChangePriceBases = exports.PriceChangeTypes = exports.ClientProductPortfolioVersion = exports.ClientNumberFormattingSettingsCurrency = exports.ClientNumberFormattingSettingsMetric = exports.ClientNumberFormattingSettingsNotation = exports.ClientNumberFormattingSettingsStyle = exports.ClientNumberFormattingSettingsGlobalFormat = exports.ClientDuplicationParts = exports.BuynomicsAppVersion = exports.CentralSteeringVersion = exports.FittingStatuses = exports.IntermediaryGroupRangeFormats = exports.IntermediaryGroupTypes = exports.ClientTypes = exports.DefaultClientDecimalSettings = exports.ClientDecimalSettings = exports.DefaultClientCLVPriceTypeLabels = exports.ClientCLVPriceTypes = exports.ClientCLVPeriods = exports.DefaultClientTermLabels = exports.ClientTerms = exports.CustomCostFormulaParams = exports.DeeperionModelTypes = exports.DeeperionRequestTypes = exports.DeeperionAppSwitchValues = exports.DeeperionVersions = exports.StaticLevelReferenceIds = exports.PriceLevelTypes = exports.SortableProductFields = exports.ConfigurableProductFields = exports.BnPermissions = void 0;
|
|
7
|
-
exports.FORMULA_PREFIX_FOR_INPUT_VARIABLES = exports.FORMULA_PREFIX_FOR_MEASURING_UNITS = exports.SCENARIO_KPIS_GROUP_BY_MAX_LEVEL = exports.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.SystemVariablesReferenceIds = exports.SystemDerivedKpisReferenceIds = exports.SystemDerivedKpis = exports.SystemScopedKpisReferenceIds = exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = exports.SystemVariableType = exports.KpiConfigType = exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = exports.ScenarioEventSource = exports.WebsocketEvents = exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.calculateRange = exports.WidgetPresetAvailability = exports.WidgetPresetType = exports.DefaultClientDateSettings = exports.DateWeekStart = exports.DateGranularity = exports.ScenarioStatus = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = void 0;
|
|
7
|
+
exports.FORMULA_PREFIX_FOR_INPUT_VARIABLES = exports.FORMULA_PREFIX_FOR_MEASURING_UNITS = exports.SCENARIO_KPIS_GROUP_BY_MAX_LEVEL = exports.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.SystemVariablesReferenceIds = exports.SystemSpecificKpis = exports.SystemSpecificKpisReferenceIds = exports.SystemDerivedKpisReferenceIds = exports.SystemDerivedKpis = exports.SystemScopedKpisReferenceIds = exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = exports.SystemVariableType = exports.KpiConfigType = exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = exports.ScenarioEventSource = exports.WebsocketEvents = exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.calculateRange = exports.WidgetPresetAvailability = exports.WidgetPresetType = exports.DefaultClientDateSettings = exports.DateWeekStart = exports.DateGranularity = exports.ScenarioStatus = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = void 0;
|
|
8
8
|
var activeOptimizationsLimit_1 = require("./constants/activeOptimizationsLimit");
|
|
9
9
|
Object.defineProperty(exports, "DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
10
10
|
Object.defineProperty(exports, "MAX_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.MAX_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
@@ -160,4 +160,7 @@ Object.defineProperty(exports, "ProductType", { enumerable: true, get: function
|
|
|
160
160
|
var widget_preset_1 = require("./enums/widget-preset");
|
|
161
161
|
Object.defineProperty(exports, "WidgetPresetType", { enumerable: true, get: function () { return widget_preset_1.WidgetPresetType; } });
|
|
162
162
|
Object.defineProperty(exports, "WidgetPresetAvailability", { enumerable: true, get: function () { return widget_preset_1.WidgetPresetAvailability; } });
|
|
163
|
+
var system_specific_kpis_1 = require("./enums/kpis/system-specific-kpis");
|
|
164
|
+
Object.defineProperty(exports, "SystemSpecificKpis", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpis; } });
|
|
165
|
+
Object.defineProperty(exports, "SystemSpecificKpisReferenceIds", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpisReferenceIds; } });
|
|
163
166
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,iFAG6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,iFAG6C;AA0Q3C,mHA5QA,6DAAkC,OA4QA;AAClC,+GA5QA,yDAA8B,OA4QA;AA1QhC,yDAA2E;AA2QzE,iHA3QO,+CAAgC,OA2QP;AA1QlC,+DAGoC;AAwQlC,mHA1QA,oDAAkC,OA0QA;AAClC,mHA1QA,oDAAkC,OA0QA;AAxQpC,6EAA0E;AAuKxE,gGAvKO,kCAAe,OAuKP;AApKjB,4HAAuH;AAmKrH,8GAnKO,gEAA6B,OAmKP;AAlK/B,4GAAwG;AAiKtG,uGAjKO,iDAAsB,OAiKP;AAhKxB,oFAAoF;AAgOlF,oGAhOO,uCAAmB,OAgOP;AA9NrB,mGAA+F;AAyL7F,wGAzLO,mDAAuB,OAyLP;AAxLzB,6DAAiE;AAgK/D,uG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E,gGA3IO,kCAAe,OA2IP;AA1IjB,6DAA0D;AA4HxD,+FA5HO,gCAAc,OA4HP;AA3HhB,iGAAiG;AA4H/F,+GA5HO,6DAA8B,OA4HP;AA3HhC,6FAAyF;AAqIvF,8GArIO,+DAA6B,OAqIP;AApI/B,6EAAyE;AAqIvE,sGArIO,+CAAqB,OAqIP;AApIvB,iHAA2G;AAqIzG,sHArIO,iFAAqC,OAqIP;AApIvC,sEAA8C;AA4H5C,qBA5HK,qBAAU,CA4HL;AA3HZ,iHAG4D;AAsH1D,oHAxHA,+EAAmC,OAwHA;AACnC,gHAxHA,2EAA+B,OAwHA;AAtHjC,iEAA6D;AAwH3D,gGAxHO,mCAAe,OAwHP;AAvHjB,yGAA6F;AAwH3F,2CAxHK,+BAAgC,CAwHL;AApHlC,kFAI8C;AA0H5C,+FA7HA,yCAAc,OA6HA;AADd,kGA3HA,4CAAiB,OA2HA;AAIjB,mGA9HA,6CAAkB,OA8HA;AA5HpB,8EAAqE;AA0HnE,gGA1HO,wCAAe,OA0HP;AAzHjB,0EAAiE;AA0H/D,8FA1HO,oCAAa,OA0HP;AAzHf,0EAG0C;AAwHxC,mGA1HA,yCAAkB,OA0HA;AASlB,4GAlIA,kDAA2B,OAkIA;AAhI7B,sEAGwC;AAuHtC,iGAzHA,qCAAgB,OAyHA;AAChB,6GAzHA,iDAA4B,OAyHA;AA9G9B,uEAA+D;AAiE7D,4FAjEO,+BAAW,OAiEP;AAhEb,uDAG8B;AAwE5B,iGA1EA,gCAAgB,OA0EA;AAChB,yGA1EA,wCAAwB,OA0EA;AAxE1B,0EAG0C;AA0GxC,mGA5GA,yCAAkB,OA4GA;AADlB,+GA1GA,qDAA8B,OA0GA"}
|
|
@@ -17,8 +17,8 @@ export interface IKpiDisplaySettings {
|
|
|
17
17
|
export interface ISystemKpiBase {
|
|
18
18
|
referenceId: string;
|
|
19
19
|
name: string;
|
|
20
|
-
formula
|
|
21
|
-
aggregation
|
|
20
|
+
formula?: string;
|
|
21
|
+
aggregation?: KpiAggregation;
|
|
22
22
|
format: KpiVariableFormat;
|
|
23
23
|
displaySettings: IKpiDisplaySettings;
|
|
24
24
|
isVisible: boolean;
|
|
@@ -35,6 +35,9 @@ export interface ISystemScopedKpi extends ISystemKpiBase {
|
|
|
35
35
|
scope: IScopedKpiScope;
|
|
36
36
|
type: KpiConfigType.Scoped;
|
|
37
37
|
}
|
|
38
|
+
export interface ISystemSpecificKpi extends ISystemKpiBase {
|
|
39
|
+
type: KpiConfigType.Specific;
|
|
40
|
+
}
|
|
38
41
|
export interface ISystemVariable {
|
|
39
42
|
referenceId: string;
|
|
40
43
|
name: string;
|