@buynomics-lib/bn-shared 1.18.28 → 1.18.29
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/strategy-rules/index.d.ts +5 -0
- package/build/enums/strategy-rules/index.js +14 -0
- package/build/enums/strategy-rules/index.js.map +1 -0
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.d.ts +6 -0
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js +11 -0
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js.map +1 -0
- package/build/enums/strategy-rules/rule-condition-value-format.enum.d.ts +4 -0
- package/build/enums/strategy-rules/rule-condition-value-format.enum.js +9 -0
- package/build/enums/strategy-rules/rule-condition-value-format.enum.js.map +1 -0
- package/build/enums/strategy-rules/rule-enforcement.enum.d.ts +4 -0
- package/build/enums/strategy-rules/rule-enforcement.enum.js +9 -0
- package/build/enums/strategy-rules/rule-enforcement.enum.js.map +1 -0
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.d.ts +8 -0
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js +13 -0
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js.map +1 -0
- package/build/enums/strategy-rules/rule-type.enum.d.ts +5 -0
- package/build/enums/strategy-rules/rule-type.enum.js +10 -0
- package/build/enums/strategy-rules/rule-type.enum.js.map +1 -0
- package/build/index.d.ts +4 -2
- package/build/index.js +8 -2
- package/build/index.js.map +1 -1
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.d.ts +26 -0
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js +3 -0
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js.map +1 -0
- package/build/interfaces/scenario-kpis/index.d.ts +1 -0
- package/build/interfaces/strategy-rules/index.d.ts +2 -0
- package/build/interfaces/strategy-rules/index.js +3 -0
- package/build/interfaces/strategy-rules/index.js.map +1 -0
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.d.ts +28 -0
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.js +3 -0
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.js.map +1 -0
- package/build/interfaces/strategy-rules/strategy-rule.interface.d.ts +55 -0
- package/build/interfaces/strategy-rules/strategy-rule.interface.js +3 -0
- package/build/interfaces/strategy-rules/strategy-rule.interface.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { RuleType } from './rule-type.enum';
|
|
2
|
+
export { RuleEnforcement } from './rule-enforcement.enum';
|
|
3
|
+
export { RuleConditionBoundaryType } from './rule-condition-boundary-type.enum';
|
|
4
|
+
export { RuleConditionValueFormat } from './rule-condition-value-format.enum';
|
|
5
|
+
export { RuleEvaluationErrorCode } from './rule-evaluation-error-code.enum';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleEvaluationErrorCode = exports.RuleConditionValueFormat = exports.RuleConditionBoundaryType = exports.RuleEnforcement = exports.RuleType = void 0;
|
|
4
|
+
var rule_type_enum_1 = require("./rule-type.enum");
|
|
5
|
+
Object.defineProperty(exports, "RuleType", { enumerable: true, get: function () { return rule_type_enum_1.RuleType; } });
|
|
6
|
+
var rule_enforcement_enum_1 = require("./rule-enforcement.enum");
|
|
7
|
+
Object.defineProperty(exports, "RuleEnforcement", { enumerable: true, get: function () { return rule_enforcement_enum_1.RuleEnforcement; } });
|
|
8
|
+
var rule_condition_boundary_type_enum_1 = require("./rule-condition-boundary-type.enum");
|
|
9
|
+
Object.defineProperty(exports, "RuleConditionBoundaryType", { enumerable: true, get: function () { return rule_condition_boundary_type_enum_1.RuleConditionBoundaryType; } });
|
|
10
|
+
var rule_condition_value_format_enum_1 = require("./rule-condition-value-format.enum");
|
|
11
|
+
Object.defineProperty(exports, "RuleConditionValueFormat", { enumerable: true, get: function () { return rule_condition_value_format_enum_1.RuleConditionValueFormat; } });
|
|
12
|
+
var rule_evaluation_error_code_enum_1 = require("./rule-evaluation-error-code.enum");
|
|
13
|
+
Object.defineProperty(exports, "RuleEvaluationErrorCode", { enumerable: true, get: function () { return rule_evaluation_error_code_enum_1.RuleEvaluationErrorCode; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/index.ts"],"names":[],"mappings":";;;AAAA,mDAA2C;AAAlC,0GAAA,QAAQ,OAAA;AACjB,iEAAyD;AAAhD,wHAAA,eAAe,OAAA;AACxB,yFAA+E;AAAtE,8IAAA,yBAAyB,OAAA;AAClC,uFAA6E;AAApE,4IAAA,wBAAwB,OAAA;AACjC,qFAA2E;AAAlE,0IAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleConditionBoundaryType = void 0;
|
|
4
|
+
var RuleConditionBoundaryType;
|
|
5
|
+
(function (RuleConditionBoundaryType) {
|
|
6
|
+
RuleConditionBoundaryType["Floor"] = "floor";
|
|
7
|
+
RuleConditionBoundaryType["Ceiling"] = "ceiling";
|
|
8
|
+
RuleConditionBoundaryType["MaxDecrease"] = "maxDecrease";
|
|
9
|
+
RuleConditionBoundaryType["MaxIncrease"] = "maxIncrease";
|
|
10
|
+
})(RuleConditionBoundaryType = exports.RuleConditionBoundaryType || (exports.RuleConditionBoundaryType = {}));
|
|
11
|
+
//# sourceMappingURL=rule-condition-boundary-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-condition-boundary-type.enum.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/rule-condition-boundary-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,4CAAe,CAAA;IACf,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;IAC3B,wDAA2B,CAAA;AAC7B,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleConditionValueFormat = void 0;
|
|
4
|
+
var RuleConditionValueFormat;
|
|
5
|
+
(function (RuleConditionValueFormat) {
|
|
6
|
+
RuleConditionValueFormat["Percentage"] = "percentage";
|
|
7
|
+
RuleConditionValueFormat["Absolute"] = "absolute";
|
|
8
|
+
})(RuleConditionValueFormat = exports.RuleConditionValueFormat || (exports.RuleConditionValueFormat = {}));
|
|
9
|
+
//# sourceMappingURL=rule-condition-value-format.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-condition-value-format.enum.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/rule-condition-value-format.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACvB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleEnforcement = void 0;
|
|
4
|
+
var RuleEnforcement;
|
|
5
|
+
(function (RuleEnforcement) {
|
|
6
|
+
RuleEnforcement["Soft"] = "soft";
|
|
7
|
+
RuleEnforcement["Hard"] = "hard";
|
|
8
|
+
})(RuleEnforcement = exports.RuleEnforcement || (exports.RuleEnforcement = {}));
|
|
9
|
+
//# sourceMappingURL=rule-enforcement.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-enforcement.enum.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/rule-enforcement.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleEvaluationErrorCode = void 0;
|
|
4
|
+
var RuleEvaluationErrorCode;
|
|
5
|
+
(function (RuleEvaluationErrorCode) {
|
|
6
|
+
RuleEvaluationErrorCode["UnknownKpi"] = "unknownKpi";
|
|
7
|
+
RuleEvaluationErrorCode["MissingMeasuringUnit"] = "missingMeasuringUnit";
|
|
8
|
+
RuleEvaluationErrorCode["FormulaError"] = "formulaError";
|
|
9
|
+
RuleEvaluationErrorCode["QueryFailed"] = "queryFailed";
|
|
10
|
+
RuleEvaluationErrorCode["EmptyScope"] = "emptyScope";
|
|
11
|
+
RuleEvaluationErrorCode["MissingReference"] = "missingReference";
|
|
12
|
+
})(RuleEvaluationErrorCode = exports.RuleEvaluationErrorCode || (exports.RuleEvaluationErrorCode = {}));
|
|
13
|
+
//# sourceMappingURL=rule-evaluation-error-code.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-evaluation-error-code.enum.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/rule-evaluation-error-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,oDAAyB,CAAA;IACzB,wEAA6C,CAAA;IAC7C,wDAA6B,CAAA;IAC7B,sDAA2B,CAAA;IAC3B,oDAAyB,CAAA;IACzB,gEAAqC,CAAA;AACvC,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleType = void 0;
|
|
4
|
+
var RuleType;
|
|
5
|
+
(function (RuleType) {
|
|
6
|
+
RuleType["KpiConstraint"] = "kpiConstraint";
|
|
7
|
+
RuleType["PriceConstraint"] = "priceConstraint";
|
|
8
|
+
RuleType["MinimumPriceChange"] = "minimumPriceChange";
|
|
9
|
+
})(RuleType = exports.RuleType || (exports.RuleType = {}));
|
|
10
|
+
//# sourceMappingURL=rule-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-type.enum.js","sourceRoot":"","sources":["../../../src/enums/strategy-rules/rule-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2CAA+B,CAAA;IAC/B,+CAAmC,CAAA;IACnC,qDAAyC,CAAA;AAC3C,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB"}
|
package/build/index.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ import { ProductNamingDelimiter } from './enums/product/product-naming-delimiter
|
|
|
92
92
|
import { WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection } from './enums/widget';
|
|
93
93
|
import { IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage } from './interfaces/widget';
|
|
94
94
|
import { ScenarioKpisGroupByOptions } from './enums/scenario-kpis';
|
|
95
|
-
import { IScenarioKpisGroupBy } from './interfaces/scenario-kpis';
|
|
95
|
+
import { IScenarioKpisGroupBy, IGetScenarioKpisFiltersParams } from './interfaces/scenario-kpis';
|
|
96
|
+
import { RuleType, RuleEnforcement, RuleConditionBoundaryType, RuleConditionValueFormat, RuleEvaluationErrorCode } from './enums/strategy-rules';
|
|
97
|
+
import { IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition, ICreateStrategyRulesResponse, IRuleAchievedValue, IRuleAchievedRange, RuleAchieved, IScenarioRuleResult, IScenarioRuleResults } from './interfaces/strategy-rules';
|
|
96
98
|
import { SystemSpecificKpis, SystemSpecificKpisReferenceIds } from './enums/kpis/system-specific-kpis';
|
|
97
|
-
export { AggregationGroupMembershipMode, AggregationGroupType, NumericAggregationRuleOperator, BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, DiscoveryType, 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, PluginType, ProductType, ProductNamingDelimiter, PromotionOfferStatus, PromotionOffersCalendarGroupByOptions, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ScenarioStatus, DateGranularity, DateWeekStart, ClientDateSettings, DefaultClientDateSettings, WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection, ScenarioKpisGroupByOptions, TimeDimensionType, AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, IAggregationGroupNumericConfig, ICategoricalAggregationRule, ICategoricalAttributeAggregationRule, INumericBetweenAggregationRule, INumericGreaterThanOrEqualAggregationRule, INumericLessThanAggregationRule, INumericRangeAggregationRule, NumericAggregationRule, IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage, IScenarioKpisGroupBy, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, PluginConfigFieldType, IPluginConfigField, IPluginNavigation, IPluginManifest, PluginConfigValue, PluginVersionPin, IClientPluginMenuSetting, IClientPluginSetting, ClientPlugins, IPluginCatalogEntry, IPluginContextV1, IPluginModule, calculateRange, getAggregationGroupMembershipMode, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange, IActionDiscoveryAvailabilityChange, IActionDiscoveryAvailabilityLever, IActionDiscoveryAvailabilityVariant, IActionDiscoveryGroupChanges, IActionDiscoveryMatrixEntry, IActionDiscoveryPpaChange, IActionDiscoveryPriceChange, IActionDiscoveryPriceLever, IActionDiscoveryPriceVariant, PpaMode, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, ScenarioEventSource, IWebSocketPromoBaselineStatusChangedPayload, KpiVariableFormat, KpiAggregation, KpiDisplayStyle, KpiConfigType, SystemVariableType, KpiSystemVariables, SystemKpis, SystemBaseKpisReferenceIds, SystemScopedKpis, SystemScopedKpisReferenceIds, SystemDerivedKpis, SystemDerivedKpisReferenceIds, SystemSpecificKpisReferenceIds, SystemSpecificKpis, SystemVariablesReferenceIds, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, ISystemVariable, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, MeasurementConverter, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, SCENARIO_KPIS_GROUP_BY_MAX_LEVEL, FORMULA_PREFIX_FOR_MEASURING_UNITS, FORMULA_PREFIX_FOR_INPUT_VARIABLES, INPUT_VARIABLE_NAME_MAX_LENGTH, INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH, INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH, WIDGET_PRESET_NAME_MAX_LENGTH, WIDGET_PRESET_DESCRIPTION_MAX_LENGTH, };
|
|
99
|
+
export { AggregationGroupMembershipMode, AggregationGroupType, NumericAggregationRuleOperator, BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, DiscoveryType, 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, PluginType, ProductType, ProductNamingDelimiter, PromotionOfferStatus, PromotionOffersCalendarGroupByOptions, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ScenarioStatus, DateGranularity, DateWeekStart, ClientDateSettings, DefaultClientDateSettings, WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection, ScenarioKpisGroupByOptions, TimeDimensionType, RuleType, RuleEnforcement, RuleConditionBoundaryType, RuleConditionValueFormat, RuleEvaluationErrorCode, AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, IAggregationGroupNumericConfig, ICategoricalAggregationRule, ICategoricalAttributeAggregationRule, INumericBetweenAggregationRule, INumericGreaterThanOrEqualAggregationRule, INumericLessThanAggregationRule, INumericRangeAggregationRule, NumericAggregationRule, IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage, IScenarioKpisGroupBy, IGetScenarioKpisFiltersParams, IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition, ICreateStrategyRulesResponse, IRuleAchievedValue, IRuleAchievedRange, RuleAchieved, IScenarioRuleResult, IScenarioRuleResults, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, PluginConfigFieldType, IPluginConfigField, IPluginNavigation, IPluginManifest, PluginConfigValue, PluginVersionPin, IClientPluginMenuSetting, IClientPluginSetting, ClientPlugins, IPluginCatalogEntry, IPluginContextV1, IPluginModule, calculateRange, getAggregationGroupMembershipMode, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange, IActionDiscoveryAvailabilityChange, IActionDiscoveryAvailabilityLever, IActionDiscoveryAvailabilityVariant, IActionDiscoveryGroupChanges, IActionDiscoveryMatrixEntry, IActionDiscoveryPpaChange, IActionDiscoveryPriceChange, IActionDiscoveryPriceLever, IActionDiscoveryPriceVariant, PpaMode, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, ScenarioEventSource, IWebSocketPromoBaselineStatusChangedPayload, KpiVariableFormat, KpiAggregation, KpiDisplayStyle, KpiConfigType, SystemVariableType, KpiSystemVariables, SystemKpis, SystemBaseKpisReferenceIds, SystemScopedKpis, SystemScopedKpisReferenceIds, SystemDerivedKpis, SystemDerivedKpisReferenceIds, SystemSpecificKpisReferenceIds, SystemSpecificKpis, SystemVariablesReferenceIds, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, ISystemVariable, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, MeasurementConverter, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, SCENARIO_KPIS_GROUP_BY_MAX_LEVEL, FORMULA_PREFIX_FOR_MEASURING_UNITS, FORMULA_PREFIX_FOR_INPUT_VARIABLES, INPUT_VARIABLE_NAME_MAX_LENGTH, INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH, INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH, WIDGET_PRESET_NAME_MAX_LENGTH, WIDGET_PRESET_DESCRIPTION_MAX_LENGTH, };
|
package/build/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
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.DiscoveryType = 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 = exports.NumericAggregationRuleOperator = exports.AggregationGroupType = exports.AggregationGroupMembershipMode = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.WIDGET_PRESET_DESCRIPTION_MAX_LENGTH = exports.WIDGET_PRESET_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH = exports.INPUT_VARIABLE_NAME_MAX_LENGTH = 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.MeasurementConverter = exports.SystemVariablesReferenceIds = exports.SystemSpecificKpis = exports.SystemSpecificKpisReferenceIds = exports.SystemDerivedKpisReferenceIds = exports.SystemDerivedKpis = exports.SystemScopedKpisReferenceIds = exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = exports.SystemVariableType = exports.KpiConfigType = void 0;
|
|
7
|
+
exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.PpaMode = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.getAggregationGroupMembershipMode = exports.calculateRange = exports.RuleEvaluationErrorCode = exports.RuleConditionValueFormat = exports.RuleConditionBoundaryType = exports.RuleEnforcement = exports.RuleType = exports.TimeDimensionType = exports.ScenarioKpisGroupByOptions = exports.WidgetTableSortDirection = exports.WidgetTableGrandTotalPosition = exports.WidgetTableGroupingFormat = exports.WidgetTableRowDensity = exports.WidgetChartSortDirection = exports.WidgetChartRankingRule = exports.WidgetChartDisplayMode = exports.WidgetChartBarLayout = exports.WidgetChartSeriesType = exports.WidgetChartAxisValueType = exports.WidgetChartScenarioMode = exports.WidgetChartSubtype = exports.WidgetChartCategory = exports.WidgetPresetAvailability = exports.WidgetType = exports.DefaultClientDateSettings = exports.DateWeekStart = exports.DateGranularity = exports.ScenarioStatus = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = exports.PromotionOffersCalendarGroupByOptions = exports.PromotionOfferStatus = exports.ProductNamingDelimiter = exports.ProductType = exports.PluginType = exports.MechanicTypeRelations = void 0;
|
|
8
|
+
exports.WIDGET_PRESET_DESCRIPTION_MAX_LENGTH = exports.WIDGET_PRESET_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH = exports.INPUT_VARIABLE_NAME_MAX_LENGTH = 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.MeasurementConverter = 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 = void 0;
|
|
9
9
|
var activeOptimizationsLimit_1 = require("./constants/activeOptimizationsLimit");
|
|
10
10
|
Object.defineProperty(exports, "DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
11
11
|
Object.defineProperty(exports, "MAX_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.MAX_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
@@ -205,6 +205,12 @@ Object.defineProperty(exports, "WidgetTableGrandTotalPosition", { enumerable: tr
|
|
|
205
205
|
Object.defineProperty(exports, "WidgetTableSortDirection", { enumerable: true, get: function () { return widget_1.WidgetTableSortDirection; } });
|
|
206
206
|
var scenario_kpis_1 = require("./enums/scenario-kpis");
|
|
207
207
|
Object.defineProperty(exports, "ScenarioKpisGroupByOptions", { enumerable: true, get: function () { return scenario_kpis_1.ScenarioKpisGroupByOptions; } });
|
|
208
|
+
var strategy_rules_1 = require("./enums/strategy-rules");
|
|
209
|
+
Object.defineProperty(exports, "RuleType", { enumerable: true, get: function () { return strategy_rules_1.RuleType; } });
|
|
210
|
+
Object.defineProperty(exports, "RuleEnforcement", { enumerable: true, get: function () { return strategy_rules_1.RuleEnforcement; } });
|
|
211
|
+
Object.defineProperty(exports, "RuleConditionBoundaryType", { enumerable: true, get: function () { return strategy_rules_1.RuleConditionBoundaryType; } });
|
|
212
|
+
Object.defineProperty(exports, "RuleConditionValueFormat", { enumerable: true, get: function () { return strategy_rules_1.RuleConditionValueFormat; } });
|
|
213
|
+
Object.defineProperty(exports, "RuleEvaluationErrorCode", { enumerable: true, get: function () { return strategy_rules_1.RuleEvaluationErrorCode; } });
|
|
208
214
|
var system_specific_kpis_1 = require("./enums/kpis/system-specific-kpis");
|
|
209
215
|
Object.defineProperty(exports, "SystemSpecificKpis", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpis; } });
|
|
210
216
|
Object.defineProperty(exports, "SystemSpecificKpisReferenceIds", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpisReferenceIds; } });
|
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;AAue3C,mHAzeA,6DAAkC,OAyeA;AAClC,+GAzeA,yDAA8B,OAyeA;AAvehC,yDAA2E;AAwezE,iHAxeO,+CAAgC,OAweP;AAvelC,+DAGoC;AAqelC,mHAveA,oDAAkC,OAueA;AAClC,mHAveA,oDAAkC,OAueA;AArepC,+EAM4C;AAge1C,+GAreA,wDAA8B,OAqeA;AAC9B,sHAreA,+DAAqC,OAqeA;AACrC,uHAreA,gEAAsC,OAqeA;AACtC,6HAreA,sEAA4C,OAqeA;AAC5C,qIAreA,8EAAoD,OA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B,OA0MA;AADlB,+GAxMA,qDAA8B,OAwMA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ProductType } from '../../enums/product/product-type.enum';
|
|
2
|
+
/**
|
|
3
|
+
* The platform's shared data-filter vocabulary. Used by widgets, the promo
|
|
4
|
+
* calendar, discovery and strategy rules — check every one of them before
|
|
5
|
+
* widening this shape for a single surface.
|
|
6
|
+
*/
|
|
7
|
+
export interface IGetScenarioKpisFiltersParams {
|
|
8
|
+
segments?: string[];
|
|
9
|
+
subsegments?: string[];
|
|
10
|
+
salesChannels?: string[];
|
|
11
|
+
aggregationGroups?: {
|
|
12
|
+
[aggregationGroupReferenceId: string]: string[];
|
|
13
|
+
};
|
|
14
|
+
productTypes?: ProductType[];
|
|
15
|
+
dimensions?: {
|
|
16
|
+
time?: {
|
|
17
|
+
startDate: string;
|
|
18
|
+
endDate: string;
|
|
19
|
+
}[];
|
|
20
|
+
year?: string[];
|
|
21
|
+
quarter?: string[];
|
|
22
|
+
month?: string[];
|
|
23
|
+
};
|
|
24
|
+
promoOffer?: string | string[];
|
|
25
|
+
hasPromoOffer?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-scenario-kpis-filters-params.interface.js","sourceRoot":"","sources":["../../../src/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition, ICreateStrategyRulesResponse, } from './strategy-rule.interface';
|
|
2
|
+
export { IRuleAchievedValue, IRuleAchievedRange, RuleAchieved, IScenarioRuleResult, IScenarioRuleResults, } from './scenario-rule-results.interface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RuleEvaluationErrorCode } from '../../enums/strategy-rules';
|
|
2
|
+
export interface IRuleAchievedValue {
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface IRuleAchievedRange {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
}
|
|
9
|
+
export type RuleAchieved = IRuleAchievedValue | IRuleAchievedRange;
|
|
10
|
+
/**
|
|
11
|
+
* Exactly one of `score`, `passed` or `error` is set: `score` for a soft rule,
|
|
12
|
+
* `passed` for a hard rule, and `error` if it failed to calculate the result
|
|
13
|
+
*/
|
|
14
|
+
export interface IScenarioRuleResult {
|
|
15
|
+
evaluatedAt: string;
|
|
16
|
+
achieved?: RuleAchieved;
|
|
17
|
+
worstDeviation?: number;
|
|
18
|
+
score?: number;
|
|
19
|
+
passed?: boolean;
|
|
20
|
+
error?: RuleEvaluationErrorCode;
|
|
21
|
+
}
|
|
22
|
+
export interface IScenarioRuleResults {
|
|
23
|
+
scenarioId: string;
|
|
24
|
+
eligible: boolean;
|
|
25
|
+
incomplete?: boolean;
|
|
26
|
+
complianceScore?: number;
|
|
27
|
+
rules?: Record<string, IScenarioRuleResult>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-rule-results.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/scenario-rule-results.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RuleConditionBoundaryType, RuleConditionValueFormat, RuleEnforcement, RuleType } from '../../enums/strategy-rules';
|
|
2
|
+
import { IGetScenarioKpisFiltersParams } from '../scenario-kpis/get-scenario-kpis-filters-params.interface';
|
|
3
|
+
import { IScenarioKpisGroupBy } from '../scenario-kpis/scenario-kpis-group-by.interface';
|
|
4
|
+
/**
|
|
5
|
+
* IStrategyRuleScopeFilters and IGetScenarioKpisFiltersParams are the same today;
|
|
6
|
+
* this alias names the contract so IStrategyRuleScopeFilters can diverge without moving every caller.
|
|
7
|
+
*/
|
|
8
|
+
export type IStrategyRuleScopeFilters = IGetScenarioKpisFiltersParams;
|
|
9
|
+
export interface IStrategyRuleScope {
|
|
10
|
+
filters?: IStrategyRuleScopeFilters;
|
|
11
|
+
includedProducts?: string[];
|
|
12
|
+
excludedProducts?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface IRuleConditionBoundary {
|
|
15
|
+
value: number;
|
|
16
|
+
valueFormat: RuleConditionValueFormat;
|
|
17
|
+
}
|
|
18
|
+
export interface IRuleConditionBoundaryWithType extends IRuleConditionBoundary {
|
|
19
|
+
type: RuleConditionBoundaryType;
|
|
20
|
+
}
|
|
21
|
+
export interface IKpiConstraintCondition {
|
|
22
|
+
kpiReferenceId: string;
|
|
23
|
+
groupBy?: IScenarioKpisGroupBy;
|
|
24
|
+
boundary: IRuleConditionBoundaryWithType;
|
|
25
|
+
}
|
|
26
|
+
export interface IPriceConstraintCondition {
|
|
27
|
+
measuringUnit?: {
|
|
28
|
+
referenceId: string;
|
|
29
|
+
};
|
|
30
|
+
boundary: IRuleConditionBoundaryWithType;
|
|
31
|
+
}
|
|
32
|
+
export interface IMinimumPriceChangeCondition {
|
|
33
|
+
boundary: IRuleConditionBoundary;
|
|
34
|
+
}
|
|
35
|
+
export type StrategyRuleCondition = IKpiConstraintCondition | IPriceConstraintCondition | IMinimumPriceChangeCondition;
|
|
36
|
+
export interface IStrategyRuleEnforcement {
|
|
37
|
+
type: RuleEnforcement;
|
|
38
|
+
}
|
|
39
|
+
export interface IStrategyRuleInput {
|
|
40
|
+
name: string;
|
|
41
|
+
ruleType: RuleType;
|
|
42
|
+
scope?: IStrategyRuleScope;
|
|
43
|
+
condition: StrategyRuleCondition;
|
|
44
|
+
enforcement: IStrategyRuleEnforcement;
|
|
45
|
+
}
|
|
46
|
+
export interface IStrategyRule extends IStrategyRuleInput {
|
|
47
|
+
id: string;
|
|
48
|
+
createdBy: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedBy?: string;
|
|
51
|
+
updatedAt?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ICreateStrategyRulesResponse {
|
|
54
|
+
results: IStrategyRule[];
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strategy-rule.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/strategy-rule.interface.ts"],"names":[],"mappings":""}
|