@buynomics-lib/bn-shared 1.17.77 → 1.17.78-feature-cf-161.0
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/kpi-system-variables.js +0 -6
- package/build/enums/kpis/kpi-system-variables.js.map +1 -1
- package/build/enums/kpis/system-derived-kpis.d.ts +2 -0
- package/build/enums/kpis/system-derived-kpis.js +69 -0
- package/build/enums/kpis/system-derived-kpis.js.map +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/build/interfaces/kpis/system-kpi.interface.d.ts +3 -0
- package/package.json +1 -1
|
@@ -27,11 +27,5 @@ exports.KpiSystemVariables = [
|
|
|
27
27
|
description: 'Price before applying promotional overlays.',
|
|
28
28
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
29
29
|
},
|
|
30
|
-
{
|
|
31
|
-
referenceId: 'base_units',
|
|
32
|
-
name: 'Base Units',
|
|
33
|
-
description: 'Units before applying promotional overlays.',
|
|
34
|
-
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
35
|
-
},
|
|
36
30
|
];
|
|
37
31
|
//# sourceMappingURL=kpi-system-variables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kpi-system-variables.js","sourceRoot":"","sources":["../../../src/enums/kpis/kpi-system-variables.ts"],"names":[],"mappings":";;;AAAA,uEAA8D;AAEjD,QAAA,kBAAkB,GAAG;IAChC;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,iDAAiD;QAC9D,MAAM,EAAE,4CAAiB,CAAC,OAAO;KAClC;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,+BAA+B;QAC5C,MAAM,EAAE,4CAAiB,CAAC,QAAQ;KACnC;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,kDAAkD;QAC/D,MAAM,EAAE,4CAAiB,CAAC,UAAU;KACrC;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,6CAA6C;QAC1D,MAAM,EAAE,4CAAiB,CAAC,QAAQ;KACnC;
|
|
1
|
+
{"version":3,"file":"kpi-system-variables.js","sourceRoot":"","sources":["../../../src/enums/kpis/kpi-system-variables.ts"],"names":[],"mappings":";;;AAAA,uEAA8D;AAEjD,QAAA,kBAAkB,GAAG;IAChC;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,iDAAiD;QAC9D,MAAM,EAAE,4CAAiB,CAAC,OAAO;KAClC;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,+BAA+B;QAC5C,MAAM,EAAE,4CAAiB,CAAC,QAAQ;KACnC;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,kDAAkD;QAC/D,MAAM,EAAE,4CAAiB,CAAC,UAAU;KACrC;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,6CAA6C;QAC1D,MAAM,EAAE,4CAAiB,CAAC,QAAQ;KACnC;CACF,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemDerivedKpis = 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 defaultMetricSettingsForMargin = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.MarginMarketShare];
|
|
11
|
+
exports.SystemDerivedKpis = [
|
|
12
|
+
{
|
|
13
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Derived, "_avg_price_realized"),
|
|
14
|
+
name: 'Avg. Price Realized',
|
|
15
|
+
formula: 'kpi_base_revenue / kpi_base_units',
|
|
16
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
17
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
18
|
+
displaySettings: {
|
|
19
|
+
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
20
|
+
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
21
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
22
|
+
},
|
|
23
|
+
isVisible: true,
|
|
24
|
+
type: kpi_config_type_enum_1.KpiConfigType.Derived,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Derived, "_units_market_share"),
|
|
28
|
+
name: 'Units Market Share',
|
|
29
|
+
formula: 'kpi_base_units / kpi_scoped_units_market_total',
|
|
30
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
31
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
32
|
+
displaySettings: {
|
|
33
|
+
minDecimalPlaces: defaultMetricSettingsForMargin.minimumFractionDigits,
|
|
34
|
+
maxDecimalPlaces: defaultMetricSettingsForMargin.maximumFractionDigits,
|
|
35
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
36
|
+
},
|
|
37
|
+
isVisible: true,
|
|
38
|
+
type: kpi_config_type_enum_1.KpiConfigType.Derived,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Derived, "_revenue_market_share"),
|
|
42
|
+
name: 'Revenue Market Share',
|
|
43
|
+
formula: 'kpi_base_revenue / kpi_scoped_revenue_market_total',
|
|
44
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
45
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
46
|
+
displaySettings: {
|
|
47
|
+
minDecimalPlaces: defaultMetricSettingsForMargin.minimumFractionDigits,
|
|
48
|
+
maxDecimalPlaces: defaultMetricSettingsForMargin.maximumFractionDigits,
|
|
49
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
50
|
+
},
|
|
51
|
+
isVisible: true,
|
|
52
|
+
type: kpi_config_type_enum_1.KpiConfigType.Derived,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Derived, "_avg_base_price_realized"),
|
|
56
|
+
name: 'Average Base Price Realized',
|
|
57
|
+
formula: 'kpi_base_base_revenue / kpi_base_units',
|
|
58
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
59
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
60
|
+
displaySettings: {
|
|
61
|
+
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
62
|
+
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
63
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
64
|
+
},
|
|
65
|
+
isVisible: true,
|
|
66
|
+
type: kpi_config_type_enum_1.KpiConfigType.Derived,
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
//# sourceMappingURL=system-derived-kpis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-derived-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-derived-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+DAAsD;AAGtD,IAAM,6BAA6B,GACjC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,KAAK,CAC3C,CAAA;AACH,IAAM,8BAA8B,GAClC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,iBAAiB,CACvD,CAAA;AAEU,QAAA,iBAAiB,GAAwB;IACpD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,OAAO,wBAAqB;QAC9D,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,QAAQ;QAClC,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,OAAO;KAC5B;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,OAAO,wBAAqB;QAC9D,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,gDAAgD;QACzD,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,UAAU;QACpC,eAAe,EAAE;YACf,gBAAgB,EAAE,8BAA8B,CAAC,qBAAqB;YACtE,gBAAgB,EAAE,8BAA8B,CAAC,qBAAqB;YACtE,YAAY,EAAE,wCAAe,CAAC,QAAQ;SACvC;QACD,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,oCAAa,CAAC,OAAO;KAC5B;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,OAAO,0BAAuB;QAChE,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,oDAAoD;QAC7D,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,UAAU;QACpC,eAAe,EAAE;YACf,gBAAgB,EAAE,8BAA8B,CAAC,qBAAqB;YACtE,gBAAgB,EAAE,8BAA8B,CAAC,qBAAqB;YACtE,YAAY,EAAE,wCAAe,CAAC,QAAQ;SACvC;QACD,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,oCAAa,CAAC,OAAO;KAC5B;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,OAAO,6BAA0B;QACnE,IAAI,EAAE,6BAA6B;QACnC,OAAO,EAAE,wCAAwC;QACjD,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,QAAQ;QAClC,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,OAAO;KAC5B;CACF,CAAA"}
|
package/build/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { ChangeCostBases } from './enums/cost-change/change-cost-bases';
|
|
|
27
27
|
import { CostChangeTypes } from './enums/cost-change/cost-change-types';
|
|
28
28
|
import { DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes } from './enums/deeperion';
|
|
29
29
|
import { SystemKpis } from './enums/kpis/system-kpis';
|
|
30
|
+
import { SystemDerivedKpis } from './enums/kpis/system-derived-kpis';
|
|
30
31
|
import { KpiConstraintType, KpiConstraintMode, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket } from './enums/optimization';
|
|
31
32
|
import { BnPermissions } from './enums/permissions';
|
|
32
33
|
import { ChangePriceBases } from './enums/price-change/change-price-bases';
|
|
@@ -66,4 +67,4 @@ import { SystemScopedKpis } from './enums/kpis/system-scoped-kpis';
|
|
|
66
67
|
import { ISystemKpiBase, ISystemKpi, IKpiDisplaySettings, ISystemScopedKpi, IScopedKpiScope } from './interfaces/kpis/system-kpi.interface';
|
|
67
68
|
import { TimePeriod } from './interfaces/time/time-period';
|
|
68
69
|
import { ProductType } from './enums/product/product-type.enum';
|
|
69
|
-
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, 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, KpiSystemVariables, SystemKpis, SystemScopedKpis, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, };
|
|
70
|
+
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, 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, KpiSystemVariables, SystemKpis, SystemScopedKpis, SystemDerivedKpis, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, };
|
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.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.SystemScopedKpis = exports.SystemKpis = exports.KpiSystemVariables = 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.DefaultClientDateSettings = exports.DateWeekStart = exports.DateGranularity = exports.ScenarioStatus = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = void 0;
|
|
7
|
+
exports.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.SystemDerivedKpis = exports.SystemScopedKpis = exports.SystemKpis = exports.KpiSystemVariables = 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.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; } });
|
|
@@ -70,6 +70,8 @@ Object.defineProperty(exports, "DeeperionRequestTypes", { enumerable: true, get:
|
|
|
70
70
|
Object.defineProperty(exports, "DeeperionModelTypes", { enumerable: true, get: function () { return deeperion_1.DeeperionModelTypes; } });
|
|
71
71
|
var system_kpis_1 = require("./enums/kpis/system-kpis");
|
|
72
72
|
Object.defineProperty(exports, "SystemKpis", { enumerable: true, get: function () { return system_kpis_1.SystemKpis; } });
|
|
73
|
+
var system_derived_kpis_1 = require("./enums/kpis/system-derived-kpis");
|
|
74
|
+
Object.defineProperty(exports, "SystemDerivedKpis", { enumerable: true, get: function () { return system_derived_kpis_1.SystemDerivedKpis; } });
|
|
73
75
|
var optimization_1 = require("./enums/optimization");
|
|
74
76
|
Object.defineProperty(exports, "KpiConstraintType", { enumerable: true, get: function () { return optimization_1.KpiConstraintType; } });
|
|
75
77
|
Object.defineProperty(exports, "KpiConstraintMode", { enumerable: true, get: function () { return optimization_1.KpiConstraintMode; } });
|
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;AAqO3C,mHAvOA,6DAAkC,OAuOA;AAClC,+GAvOA,yDAA8B,OAuOA;AArOhC,6EAA0E;AAiJxE,gGAjJO,kCAAe,OAiJP;AA9IjB,4HAAuH;AA6IrH,8GA7IO,gEAA6B,OA6IP;AA5I/B,4GAAwG;AA2ItG,uGA3IO,iDAAsB,OA2IP;AA1IxB,oFAAoF;AAwMlF,oGAxMO,uCAAmB,OAwMP;AAtMrB,mGAA+F;AAmK7F,wGAnKO,mDAAuB,OAmKP;AAlKzB,6DAAiE;AA0I/D,uGA1IO,yCAAsB,OA0IP;AAzIxB,wEAAuE;AA4IrE,oGA5IO,wCAAmB,OA4IP;AA3IrB,wEAAoE;AA+HlE,iGA/HO,qCAAgB,OA+HP;AA9HlB,gFAG8C;AA4H5C,oGA9HA,4CAAmB,OA8HA;AACnB,gHA9HA,wDAA+B,OA8HA;AA5HjC,0DAKmC;AAsKjC,gGAzKA,6BAAe,OAyKA;AACf,8FAzKA,2BAAa,OAyKA;AAEb,0GA1KA,uCAAyB,OA0KA;AAxK3B,kFAG+C;AAoH7C,sGAtHA,+CAAqB,OAsHA;AACrB,6GAtHA,sDAA4B,OAsHA;AAnH9B,oFAAgF;AA4H9E,uGA5HO,iDAAsB,OA4HP;AA3HxB,kEAMuC;AAkIrC,8FAvIA,+BAAa,OAuIA;AACb,mGAvIA,oCAAkB,OAuIA;AAElB,mGAvIA,oCAAkB,OAuIA;AApIpB,kEAA+D;AA0I7D,+FA1IO,gCAAc,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iE;AAyG/D,8FAzGO,oCAAa,OAyGP;AAxGf,0EAAsE;AAyGpE,mGAzGO,yCAAkB,OAyGP;AAxGpB,sEAAkE;AA0GhE,iGA1GO,qCAAgB,OA0GP;AAjGlB,uEAA+D;AAyD7D,4FAzDO,+BAAW,OAyDP"}
|
|
@@ -27,6 +27,9 @@ export interface ISystemKpiBase {
|
|
|
27
27
|
export interface ISystemKpi extends ISystemKpiBase {
|
|
28
28
|
type: KpiConfigType.Base;
|
|
29
29
|
}
|
|
30
|
+
export interface ISystemDerivedKpi extends ISystemKpiBase {
|
|
31
|
+
type: KpiConfigType.Derived;
|
|
32
|
+
}
|
|
30
33
|
export interface ISystemScopedKpi extends ISystemKpiBase {
|
|
31
34
|
underlyingKpiReferenceId: string;
|
|
32
35
|
scope: IScopedKpiScope;
|