@buynomics-lib/bn-shared 1.17.69-feature-cf-122.1 → 1.17.69-feature-cf-108.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/system-kpis.js +0 -42
- package/build/enums/kpis/system-kpis.js.map +1 -1
- package/build/enums/kpis/system-scoped-kpis.d.ts +21 -0
- package/build/enums/kpis/system-scoped-kpis.js +77 -0
- package/build/enums/kpis/system-scoped-kpis.js.map +1 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/build/interfaces/kpis/index.d.ts +1 -0
- package/build/interfaces/kpis/index.js +18 -0
- package/build/interfaces/kpis/index.js.map +1 -0
- package/build/interfaces/kpis/scoped-kpi-scope.interface.d.ts +32 -0
- package/build/interfaces/kpis/scoped-kpi-scope.interface.js +3 -0
- package/build/interfaces/kpis/scoped-kpi-scope.interface.js.map +1 -0
- package/package.json +1 -1
|
@@ -10,20 +10,6 @@ var defaultMetricSettingsForPrice = default_client_number_formatting_settings_1.
|
|
|
10
10
|
var defaultMetricSettingsForUnits = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Units];
|
|
11
11
|
var defaultMetricSettingsForMargin = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.MarginMarketShare];
|
|
12
12
|
exports.SystemKpis = [
|
|
13
|
-
{
|
|
14
|
-
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_base_units"),
|
|
15
|
-
name: 'Units',
|
|
16
|
-
formula: 'base_units',
|
|
17
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
18
|
-
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
19
|
-
displaySettings: {
|
|
20
|
-
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
21
|
-
maxDecimalPlaces: defaultMetricSettingsForUnits.maximumFractionDigits,
|
|
22
|
-
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
23
|
-
},
|
|
24
|
-
isVisible: true,
|
|
25
|
-
type: kpi_config_type_enum_1.KpiConfigType.Base,
|
|
26
|
-
},
|
|
27
13
|
{
|
|
28
14
|
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_units"),
|
|
29
15
|
name: 'Units',
|
|
@@ -38,20 +24,6 @@ exports.SystemKpis = [
|
|
|
38
24
|
isVisible: true,
|
|
39
25
|
type: kpi_config_type_enum_1.KpiConfigType.Base,
|
|
40
26
|
},
|
|
41
|
-
{
|
|
42
|
-
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_base_revenue"),
|
|
43
|
-
name: 'Revenue',
|
|
44
|
-
formula: 'base_units * base_price',
|
|
45
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
46
|
-
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
47
|
-
displaySettings: {
|
|
48
|
-
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
49
|
-
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
50
|
-
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
51
|
-
},
|
|
52
|
-
isVisible: true,
|
|
53
|
-
type: kpi_config_type_enum_1.KpiConfigType.Base,
|
|
54
|
-
},
|
|
55
27
|
{
|
|
56
28
|
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_revenue"),
|
|
57
29
|
name: 'Revenue',
|
|
@@ -80,20 +52,6 @@ exports.SystemKpis = [
|
|
|
80
52
|
isVisible: false,
|
|
81
53
|
type: kpi_config_type_enum_1.KpiConfigType.Base,
|
|
82
54
|
},
|
|
83
|
-
{
|
|
84
|
-
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_min_base_price"),
|
|
85
|
-
name: 'Min. Price',
|
|
86
|
-
formula: 'base_price',
|
|
87
|
-
aggregation: kpi_variable_format_enum_1.KpiAggregation.MIN,
|
|
88
|
-
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
89
|
-
displaySettings: {
|
|
90
|
-
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
91
|
-
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
92
|
-
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
93
|
-
},
|
|
94
|
-
isVisible: false,
|
|
95
|
-
type: kpi_config_type_enum_1.KpiConfigType.Base,
|
|
96
|
-
},
|
|
97
55
|
{
|
|
98
56
|
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_min_availability"),
|
|
99
57
|
name: 'Min. Availability',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+DAAsD;AAEtD,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;AACH,IAAM,8BAA8B,GAClC,iFAAqC,CAAC,cAAc,CAClD,wEAAoC,CAAC,iBAAiB,CACvD,CAAA;AAEU,QAAA,UAAU,GAAG;IACxB;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"system-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;A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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,KAAK;QAChB,IAAI,EAAE,oCAAa,CAAC,IAAI;KACzB;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,IAAI,sBAAmB;QACzD,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,cAAc;QACvB,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,KAAK;QAChB,IAAI,EAAE,oCAAa,CAAC,IAAI;KACzB;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,IAAI,sBAAmB;QACzD,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,cAAc;QACvB,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,KAAK;QAChB,IAAI,EAAE,oCAAa,CAAC,IAAI;KACzB;CACF,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { KpiAggregation, KpiVariableFormat } from './kpi-variable-format.enum';
|
|
2
|
+
import { KpiDisplayStyle } from './kpi-display-style.enum';
|
|
3
|
+
import { KpiConfigType } from './kpi-config-type.enum';
|
|
4
|
+
import { IScopedKpiScope } from '../../interfaces/kpis/scoped-kpi-scope.interface';
|
|
5
|
+
export interface ISystemScopedKpi {
|
|
6
|
+
referenceId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
underlyingKpiReferenceId: string;
|
|
9
|
+
scope: IScopedKpiScope;
|
|
10
|
+
formula: string;
|
|
11
|
+
aggregation: KpiAggregation;
|
|
12
|
+
format: KpiVariableFormat;
|
|
13
|
+
displaySettings: {
|
|
14
|
+
minDecimalPlaces: number;
|
|
15
|
+
maxDecimalPlaces: number;
|
|
16
|
+
displayStyle: KpiDisplayStyle;
|
|
17
|
+
};
|
|
18
|
+
isVisible: boolean;
|
|
19
|
+
type: KpiConfigType.Scoped;
|
|
20
|
+
}
|
|
21
|
+
export declare const SystemScopedKpis: ISystemScopedKpi[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemScopedKpis = 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.SystemScopedKpis = [
|
|
12
|
+
{
|
|
13
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Scoped, "_revenue_market_total"),
|
|
14
|
+
name: 'Revenue Market Total',
|
|
15
|
+
underlyingKpiReferenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_revenue"),
|
|
16
|
+
scope: {},
|
|
17
|
+
formula: 'units * price',
|
|
18
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
19
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
20
|
+
displaySettings: {
|
|
21
|
+
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
22
|
+
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
23
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
24
|
+
},
|
|
25
|
+
isVisible: true,
|
|
26
|
+
type: kpi_config_type_enum_1.KpiConfigType.Scoped,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Scoped, "_units_market_total"),
|
|
30
|
+
name: 'Units Market Total',
|
|
31
|
+
underlyingKpiReferenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_units"),
|
|
32
|
+
scope: {},
|
|
33
|
+
formula: 'units',
|
|
34
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
35
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
36
|
+
displaySettings: {
|
|
37
|
+
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
38
|
+
maxDecimalPlaces: defaultMetricSettingsForUnits.maximumFractionDigits,
|
|
39
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
40
|
+
},
|
|
41
|
+
isVisible: true,
|
|
42
|
+
type: kpi_config_type_enum_1.KpiConfigType.Scoped,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Scoped, "_revenue_own_total"),
|
|
46
|
+
name: 'Revenue Own Total',
|
|
47
|
+
underlyingKpiReferenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_revenue"),
|
|
48
|
+
scope: { isCompetitor: false },
|
|
49
|
+
formula: 'units * price',
|
|
50
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
51
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
52
|
+
displaySettings: {
|
|
53
|
+
minDecimalPlaces: defaultMetricSettingsForPrice.minimumFractionDigits,
|
|
54
|
+
maxDecimalPlaces: defaultMetricSettingsForPrice.maximumFractionDigits,
|
|
55
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
56
|
+
},
|
|
57
|
+
isVisible: true,
|
|
58
|
+
type: kpi_config_type_enum_1.KpiConfigType.Scoped,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
referenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Scoped, "_units_own_total"),
|
|
62
|
+
name: 'Units Own Total',
|
|
63
|
+
underlyingKpiReferenceId: "kpi_".concat(kpi_config_type_enum_1.KpiConfigType.Base, "_units"),
|
|
64
|
+
scope: { isCompetitor: false },
|
|
65
|
+
formula: 'units',
|
|
66
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
67
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
68
|
+
displaySettings: {
|
|
69
|
+
minDecimalPlaces: defaultMetricSettingsForUnits.minimumFractionDigits,
|
|
70
|
+
maxDecimalPlaces: defaultMetricSettingsForUnits.maximumFractionDigits,
|
|
71
|
+
displayStyle: kpi_display_style_enum_1.KpiDisplayStyle.Standard,
|
|
72
|
+
},
|
|
73
|
+
isVisible: true,
|
|
74
|
+
type: kpi_config_type_enum_1.KpiConfigType.Scoped,
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
//# sourceMappingURL=system-scoped-kpis.js.map
|
|
@@ -0,0 +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;AAGtD,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;AAmBU,QAAA,gBAAgB,GAAuB;IAClD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,MAAM,0BAAuB;QAC/D,IAAI,EAAE,sBAAsB;QAC5B,wBAAwB,EAAE,cAAO,oCAAa,CAAC,IAAI,aAAU;QAC7D,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,eAAe;QACxB,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,MAAM;KAC3B;IACD;QACE,WAAW,EAAE,cAAO,oCAAa,CAAC,MAAM,wBAAqB;QAC7D,IAAI,EAAE,oBAAoB;QAC1B,wBAAwB,EAAE,cAAO,oCAAa,CAAC,IAAI,WAAQ;QAC3D,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,OAAO;QACjC,eAAe,EAAE;YACf,gBAAgB,EAAE,6BAA6B,CAAC,qBAAqB;YACr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/kpis/kpi-display-style.enum';
|
|
|
61
61
|
import { KpiConfigType } from './enums/kpis/kpi-config-type.enum';
|
|
62
62
|
import { KpiSystemVariables } from './enums/kpis/kpi-system-variables';
|
|
63
63
|
import { SystemKpis } from './enums/kpis/system-kpis';
|
|
64
|
-
|
|
64
|
+
import { SystemScopedKpis, ISystemScopedKpi } from './enums/kpis/system-scoped-kpis';
|
|
65
|
+
import { IScopedKpiScope } from './interfaces/kpis/scoped-kpi-scope.interface';
|
|
66
|
+
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, 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, ISystemScopedKpi, IScopedKpiScope, };
|
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.OptimizationStatus = exports.PromotionOffersCalendarGroupByOptions = exports.PromotionOfferStatus = 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.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 = void 0;
|
|
7
|
+
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 = void 0;
|
|
8
8
|
var fitting_statuses_1 = require("./domains/fitting/enums/fitting-statuses");
|
|
9
9
|
Object.defineProperty(exports, "FittingStatuses", { enumerable: true, get: function () { return fitting_statuses_1.FittingStatuses; } });
|
|
10
10
|
var intermediary_group_range_formats_1 = require("./domains/pricing/intermediaries/enums/intermediary-group-range-formats");
|
|
@@ -138,4 +138,6 @@ var kpi_system_variables_1 = require("./enums/kpis/kpi-system-variables");
|
|
|
138
138
|
Object.defineProperty(exports, "KpiSystemVariables", { enumerable: true, get: function () { return kpi_system_variables_1.KpiSystemVariables; } });
|
|
139
139
|
var system_kpis_1 = require("./enums/kpis/system-kpis");
|
|
140
140
|
Object.defineProperty(exports, "SystemKpis", { enumerable: true, get: function () { return system_kpis_1.SystemKpis; } });
|
|
141
|
+
var system_scoped_kpis_1 = require("./enums/kpis/system-scoped-kpis");
|
|
142
|
+
Object.defineProperty(exports, "SystemScopedKpis", { enumerable: true, get: function () { return system_scoped_kpis_1.SystemScopedKpis; } });
|
|
141
143
|
//# 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,6EAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,6EAA0E;AA2IxE,gGA3IO,kCAAe,OA2IP;AAxIjB,4HAAuH;AAuIrH,8GAvIO,gEAA6B,OAuIP;AAtI/B,4GAAwG;AAqItG,uGArIO,iDAAsB,OAqIP;AApIxB,oFAAoF;AAiMlF,oGAjMO,uCAAmB,OAiMP;AA/LrB,mGAA+F;AA6J7F,wGA7JO,mDAAuB,OA6JP;AA5JzB,6DAAiE;AAoI/D,uGApIO,yCAAsB,OAoIP;AAnIxB,wEAAuE;AAsIrE,oGAtIO,wCAAmB,OAsIP;AArIrB,wEAAoE;AAyHlE,iGAzHO,qCAAgB,OAyHP;AAxHlB,gFAG8C;AAsH5C,oGAxHA,4CAAmB,OAwHA;AACnB,gHAxHA,wDAA+B,OAwHA;AAtHjC,kFAG+C;AAoH7C,sGAtHA,+CAAqB,OAsHA;AACrB,6GAtHA,sDA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AjGO,mCAAe,OAiGP;AAhGjB,yGAA6F;AAiG3F,2CAjGK,+BAAgC,CAiGL;AA7FlC,kFAG8C;AAoG5C,+FAtGA,yCAAc,OAsGA;AADd,kGApGA,4CAAiB,OAoGA;AAlGnB,8EAAqE;AAoGnE,gGApGO,wCAAe,OAoGP;AAnGjB,0EAAiE;AAoG/D,8FApGO,oCAAa,OAoGP;AAnGf,0EAAsE;AAoGpE,mGApGO,yCAAkB,OAoGP;AAnGpB,wDAAqD;AAoGnD,2FApGO,wBAAU,OAoGP;AAnGZ,sEAGwC;AAiGtC,iGAnGA,qCAAgB,OAmGA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scoped-kpi-scope.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./scoped-kpi-scope.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/kpis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface defining the scope of a scoped KPI.
|
|
3
|
+
* A scope determines which subset of data the KPI calculation applies to.
|
|
4
|
+
*/
|
|
5
|
+
export interface IScopedKpiScope {
|
|
6
|
+
/**
|
|
7
|
+
* Filter by product ownership:
|
|
8
|
+
* - false: "Own products" only
|
|
9
|
+
* - true: "Competition" products only
|
|
10
|
+
* - undefined: All products (no filter)
|
|
11
|
+
*/
|
|
12
|
+
isCompetitor?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Filter by specific segment reference IDs.
|
|
15
|
+
* For future custom scopes (CF-109).
|
|
16
|
+
*/
|
|
17
|
+
segmentReferenceIds?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Filter by specific subsegment reference IDs.
|
|
20
|
+
* For future custom scopes (CF-109).
|
|
21
|
+
*/
|
|
22
|
+
subsegmentReferenceIds?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Filter by aggregation group attributes.
|
|
25
|
+
* Key: aggregation group reference ID
|
|
26
|
+
* Value: array of attribute reference IDs within that group
|
|
27
|
+
* For future custom scopes (CF-109).
|
|
28
|
+
*/
|
|
29
|
+
aggregationGroupReferenceIds?: {
|
|
30
|
+
[aggregationGroupReferenceId: string]: string[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoped-kpi-scope.interface.js","sourceRoot":"","sources":["../../../src/interfaces/kpis/scoped-kpi-scope.interface.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED