@buynomics-lib/bn-shared 1.17.65 → 1.17.66-feature-cf-105.5
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-variable-format.enum.d.ts +6 -0
- package/build/enums/kpis/kpi-variable-format.enum.js +8 -1
- package/build/enums/kpis/kpi-variable-format.enum.js.map +1 -1
- package/build/enums/kpis/system-kpis.d.ts +9 -0
- package/build/enums/kpis/system-kpis.js +47 -0
- package/build/enums/kpis/system-kpis.js.map +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KpiVariableFormat = void 0;
|
|
3
|
+
exports.KpiAggregation = exports.KpiVariableFormat = void 0;
|
|
4
4
|
var KpiVariableFormat;
|
|
5
5
|
(function (KpiVariableFormat) {
|
|
6
6
|
KpiVariableFormat["Numeric"] = "numeric";
|
|
7
7
|
KpiVariableFormat["Percentage"] = "percentage";
|
|
8
8
|
KpiVariableFormat["Monetary"] = "monetary";
|
|
9
9
|
})(KpiVariableFormat = exports.KpiVariableFormat || (exports.KpiVariableFormat = {}));
|
|
10
|
+
var KpiAggregation;
|
|
11
|
+
(function (KpiAggregation) {
|
|
12
|
+
KpiAggregation["SUM"] = "sum";
|
|
13
|
+
KpiAggregation["AVG"] = "avg";
|
|
14
|
+
KpiAggregation["MIN"] = "min";
|
|
15
|
+
KpiAggregation["MAX"] = "max";
|
|
16
|
+
})(KpiAggregation = exports.KpiAggregation || (exports.KpiAggregation = {}));
|
|
10
17
|
//# sourceMappingURL=kpi-variable-format.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kpi-variable-format.enum.js","sourceRoot":"","sources":["../../../src/enums/kpis/kpi-variable-format.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;AACvB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
1
|
+
{"version":3,"file":"kpi-variable-format.enum.js","sourceRoot":"","sources":["../../../src/enums/kpis/kpi-variable-format.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;AACvB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,6BAAW,CAAA;AACb,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemKpis = void 0;
|
|
4
|
+
var kpi_variable_format_enum_1 = require("./kpi-variable-format.enum");
|
|
5
|
+
exports.SystemKpis = [
|
|
6
|
+
{
|
|
7
|
+
referenceId: 'kpi_units',
|
|
8
|
+
name: 'Units',
|
|
9
|
+
formula: 'units',
|
|
10
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
11
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Numeric,
|
|
12
|
+
isVisible: true,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
referenceId: 'kpi_revenue',
|
|
16
|
+
name: 'Revenue',
|
|
17
|
+
formula: 'units * price',
|
|
18
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
19
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
20
|
+
isVisible: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
referenceId: 'kpi_min_price',
|
|
24
|
+
name: 'Min. Price',
|
|
25
|
+
formula: 'price',
|
|
26
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.MIN,
|
|
27
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
28
|
+
isVisible: false,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
referenceId: 'kpi_min_availability',
|
|
32
|
+
name: 'Min. Availability',
|
|
33
|
+
formula: 'availability',
|
|
34
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.MIN,
|
|
35
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
36
|
+
isVisible: false,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
referenceId: 'kpi_max_availability',
|
|
40
|
+
name: 'Max. Availability',
|
|
41
|
+
formula: 'availability',
|
|
42
|
+
aggregation: kpi_variable_format_enum_1.KpiAggregation.MAX,
|
|
43
|
+
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
44
|
+
isVisible: false,
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=system-kpis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAEjE,QAAA,UAAU,GAAG;IACxB;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,OAAO;QACjC,SAAS,EAAE,IAAI;KAChB;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,QAAQ;QAClC,SAAS,EAAE,IAAI;KAChB;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,QAAQ;QAClC,SAAS,EAAE,KAAK;KACjB;IACD;QACE,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,cAAc;QACvB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,UAAU;QACpC,SAAS,EAAE,KAAK;KACjB;IACD;QACE,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,cAAc;QACvB,WAAW,EAAE,yCAAc,CAAC,GAAG;QAC/B,MAAM,EAAE,4CAAiB,CAAC,UAAU;QACpC,SAAS,EAAE,KAAK;KACjB;CACF,CAAA"}
|
package/build/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import PriceDecisionNullificationHelper from './helpers/price-decision/price-dec
|
|
|
56
56
|
import { IClientViewSettings } from './interfaces/client-view-settings';
|
|
57
57
|
import { IFileUpload } from './interfaces/file-upload';
|
|
58
58
|
import { ISimulationInputChangeEvents } from './interfaces/simulation/simulation-input-change-events';
|
|
59
|
-
import { KpiVariableFormat } from './enums/kpis/kpi-variable-format.enum';
|
|
59
|
+
import { KpiAggregation, KpiVariableFormat } from './enums/kpis/kpi-variable-format.enum';
|
|
60
60
|
import { KpiSystemVariables } from './enums/kpis/kpi-system-variables';
|
|
61
|
-
|
|
61
|
+
import { SystemKpis } from './enums/kpis/system-kpis';
|
|
62
|
+
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, KpiSystemVariables, SystemKpis, };
|
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.KpiSystemVariables = 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.SystemKpis = exports.KpiSystemVariables = 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");
|
|
@@ -128,7 +128,10 @@ Object.defineProperty(exports, "getPropertyName", { enumerable: true, get: funct
|
|
|
128
128
|
var price_decision_helper_1 = __importDefault(require("./helpers/price-decision/price-decision-helper"));
|
|
129
129
|
exports.PriceDecisionNullificationHelper = price_decision_helper_1.default;
|
|
130
130
|
var kpi_variable_format_enum_1 = require("./enums/kpis/kpi-variable-format.enum");
|
|
131
|
+
Object.defineProperty(exports, "KpiAggregation", { enumerable: true, get: function () { return kpi_variable_format_enum_1.KpiAggregation; } });
|
|
131
132
|
Object.defineProperty(exports, "KpiVariableFormat", { enumerable: true, get: function () { return kpi_variable_format_enum_1.KpiVariableFormat; } });
|
|
132
133
|
var kpi_system_variables_1 = require("./enums/kpis/kpi-system-variables");
|
|
133
134
|
Object.defineProperty(exports, "KpiSystemVariables", { enumerable: true, get: function () { return kpi_system_variables_1.KpiSystemVariables; } });
|
|
135
|
+
var system_kpis_1 = require("./enums/kpis/system-kpis");
|
|
136
|
+
Object.defineProperty(exports, "SystemKpis", { enumerable: true, get: function () { return system_kpis_1.SystemKpis; } });
|
|
134
137
|
//# 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;AAoIxE,gGApIO,kCAAe,OAoIP;AAjIjB,4HAAuH;AAgIrH,8GAhIO,gEAA6B,OAgIP;AA/H/B,4GAAwG;AA8HtG,uGA9HO,iDAAsB,OA8HP;AA7HxB,oFAAoF;AA0LlF,oGA1LO,uCAAmB,OA0LP;AAxLrB,mGAA+F;AAsJ7F,wGAtJO,mDAAuB,OAsJP;AArJzB,6DAAiE;AA6H/D,uGA7HO,yCAAsB,OA6HP;AA5HxB,wEAAuE;AA+HrE,oGA/HO,wCAAmB,OA+HP;AA9HrB,wEAAoE;AAkHlE,iGAlHO,qCAAgB,OAkHP;AAjHlB,gFAG8C;AA+G5C,oGAjHA,4CAAmB,OAiHA;AACnB,gHAjHA,wDAA+B,OAiHA;AA/GjC,kFAG+C;AA6G7C,sGA/GA,+CAAqB,OA+GA;AACrB,6GA/GA,sDAA4B,OA+GA;AA5G9B,oFAAgF;AAqH9E,uGArHO,iDAAsB,OAqHP;AApHxB,kEAMuC;AA2HrC,8FAhIA,+BAAa,OAgIA;AACb,mGAhIA,oCAAkB,OAgIA;AAElB,mGAhIA,oCAAkB,OAgIA;AA7HpB,kEAA+D;AAmI7D,+FAnIO,gCAAc,OAmIP;AAlIhB,sGASyD;AAwGvD,uHA/GA,0EAAsC,OA+GA;AAJtC,2HA1GA,8EAA0C,OA0GA;AAG1C,qHA5GA,wEAAoC,OA4GA;AADpC,uHA1GA,0EAAsC,O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