@buynomics-lib/bn-shared 1.18.27-feature-ace-989-shared.1 → 1.18.28-feature-sim-920.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/discovery/ppa-mode.d.ts +3 -0
- package/build/enums/discovery/ppa-mode.js +8 -0
- package/build/enums/discovery/ppa-mode.js.map +1 -0
- package/build/index.d.ts +4 -4
- package/build/index.js +4 -8
- package/build/index.js.map +1 -1
- package/build/interfaces/discovery/action-discovery.d.ts +70 -0
- package/build/interfaces/{strategy-rules/index.js → discovery/action-discovery.js} +1 -1
- package/build/interfaces/discovery/action-discovery.js.map +1 -0
- package/build/interfaces/discovery/group-metadata.d.ts +13 -0
- package/build/interfaces/scenario-kpis/index.d.ts +0 -1
- package/package.json +1 -1
- package/build/enums/strategy-rules/index.d.ts +0 -5
- package/build/enums/strategy-rules/index.js +0 -14
- package/build/enums/strategy-rules/index.js.map +0 -1
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.d.ts +0 -6
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js +0 -11
- package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js.map +0 -1
- package/build/enums/strategy-rules/rule-condition-value-format.enum.d.ts +0 -4
- package/build/enums/strategy-rules/rule-condition-value-format.enum.js +0 -9
- package/build/enums/strategy-rules/rule-condition-value-format.enum.js.map +0 -1
- package/build/enums/strategy-rules/rule-enforcement.enum.d.ts +0 -4
- package/build/enums/strategy-rules/rule-enforcement.enum.js +0 -9
- package/build/enums/strategy-rules/rule-enforcement.enum.js.map +0 -1
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.d.ts +0 -8
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js +0 -13
- package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js.map +0 -1
- package/build/enums/strategy-rules/rule-type.enum.d.ts +0 -5
- package/build/enums/strategy-rules/rule-type.enum.js +0 -10
- package/build/enums/strategy-rules/rule-type.enum.js.map +0 -1
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.d.ts +0 -26
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js +0 -3
- package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js.map +0 -1
- package/build/interfaces/strategy-rules/index.d.ts +0 -2
- package/build/interfaces/strategy-rules/index.js.map +0 -1
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.d.ts +0 -32
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.js +0 -3
- package/build/interfaces/strategy-rules/scenario-rule-results.interface.js.map +0 -1
- package/build/interfaces/strategy-rules/strategy-rule.interface.d.ts +0 -55
- package/build/interfaces/strategy-rules/strategy-rule.interface.js +0 -3
- package/build/interfaces/strategy-rules/strategy-rule.interface.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpaMode = void 0;
|
|
4
|
+
var PpaMode;
|
|
5
|
+
(function (PpaMode) {
|
|
6
|
+
PpaMode["Replace"] = "replace";
|
|
7
|
+
})(PpaMode = exports.PpaMode || (exports.PpaMode = {}));
|
|
8
|
+
//# sourceMappingURL=ppa-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ppa-mode.js","sourceRoot":"","sources":["../../../src/enums/discovery/ppa-mode.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,8BAAmB,CAAA;AACrB,CAAC,EAFW,OAAO,GAAP,eAAO,KAAP,eAAO,QAElB"}
|
package/build/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { ChangeCostBases } from './enums/cost-change/change-cost-bases';
|
|
|
34
34
|
import { CostChangeTypes } from './enums/cost-change/cost-change-types';
|
|
35
35
|
import { DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes } from './enums/deeperion';
|
|
36
36
|
import { DiscoveryType } from './enums/discovery/discovery-type';
|
|
37
|
+
import { PpaMode } from './enums/discovery/ppa-mode';
|
|
37
38
|
import { SystemKpis, SystemBaseKpisReferenceIds } from './enums/kpis/system-kpis';
|
|
38
39
|
import { SystemDerivedKpis, SystemDerivedKpisReferenceIds } from './enums/kpis/system-derived-kpis';
|
|
39
40
|
import { KpiConstraintType, KpiConstraintMode, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket } from './enums/optimization';
|
|
@@ -69,6 +70,7 @@ import { getPropertyName } from './helpers/get-property-name';
|
|
|
69
70
|
import PriceDecisionNullificationHelper from './helpers/price-decision/price-decision-helper';
|
|
70
71
|
import { getAggregationGroupMembershipMode } from './helpers/get-aggregation-group-membership-mode';
|
|
71
72
|
import { AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, IAggregationGroupNumericConfig, ICategoricalAggregationRule, ICategoricalAttributeAggregationRule, INumericBetweenAggregationRule, INumericGreaterThanOrEqualAggregationRule, INumericLessThanAggregationRule, INumericRangeAggregationRule, NumericAggregationRule } from './interfaces/aggregation-group/aggregation-group.interface';
|
|
73
|
+
import { IActionDiscoveryAvailabilityChange, IActionDiscoveryAvailabilityLever, IActionDiscoveryAvailabilityVariant, IActionDiscoveryGroupChanges, IActionDiscoveryMatrixEntry, IActionDiscoveryPpaChange, IActionDiscoveryPriceChange, IActionDiscoveryPriceLever, IActionDiscoveryPriceVariant } from './interfaces/discovery/action-discovery';
|
|
72
74
|
import { IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange } from './interfaces/discovery/group-metadata';
|
|
73
75
|
import { IClientViewSettings } from './interfaces/client-view-settings';
|
|
74
76
|
import { IFileUpload } from './interfaces/file-upload';
|
|
@@ -90,8 +92,6 @@ import { ProductNamingDelimiter } from './enums/product/product-naming-delimiter
|
|
|
90
92
|
import { WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection } from './enums/widget';
|
|
91
93
|
import { IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage } from './interfaces/widget';
|
|
92
94
|
import { ScenarioKpisGroupByOptions } from './enums/scenario-kpis';
|
|
93
|
-
import { IScenarioKpisGroupBy
|
|
94
|
-
import { RuleType, RuleEnforcement, RuleConditionBoundaryType, RuleConditionValueFormat, RuleEvaluationErrorCode } from './enums/strategy-rules';
|
|
95
|
-
import { IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition, ICreateStrategyRulesResponse, IRuleAchievedValue, IRuleAchievedRange, RuleAchieved, IScenarioRuleResult, IScenarioRuleResults } from './interfaces/strategy-rules';
|
|
95
|
+
import { IScenarioKpisGroupBy } from './interfaces/scenario-kpis';
|
|
96
96
|
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,
|
|
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, };
|
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 =
|
|
7
|
+
exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = exports.ScenarioEventSource = exports.WebsocketEvents = 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.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 = 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; } });
|
|
@@ -91,6 +91,8 @@ Object.defineProperty(exports, "DeeperionRequestTypes", { enumerable: true, get:
|
|
|
91
91
|
Object.defineProperty(exports, "DeeperionModelTypes", { enumerable: true, get: function () { return deeperion_1.DeeperionModelTypes; } });
|
|
92
92
|
var discovery_type_1 = require("./enums/discovery/discovery-type");
|
|
93
93
|
Object.defineProperty(exports, "DiscoveryType", { enumerable: true, get: function () { return discovery_type_1.DiscoveryType; } });
|
|
94
|
+
var ppa_mode_1 = require("./enums/discovery/ppa-mode");
|
|
95
|
+
Object.defineProperty(exports, "PpaMode", { enumerable: true, get: function () { return ppa_mode_1.PpaMode; } });
|
|
94
96
|
var system_kpis_1 = require("./enums/kpis/system-kpis");
|
|
95
97
|
Object.defineProperty(exports, "SystemKpis", { enumerable: true, get: function () { return system_kpis_1.SystemKpis; } });
|
|
96
98
|
Object.defineProperty(exports, "SystemBaseKpisReferenceIds", { enumerable: true, get: function () { return system_kpis_1.SystemBaseKpisReferenceIds; } });
|
|
@@ -203,12 +205,6 @@ Object.defineProperty(exports, "WidgetTableGrandTotalPosition", { enumerable: tr
|
|
|
203
205
|
Object.defineProperty(exports, "WidgetTableSortDirection", { enumerable: true, get: function () { return widget_1.WidgetTableSortDirection; } });
|
|
204
206
|
var scenario_kpis_1 = require("./enums/scenario-kpis");
|
|
205
207
|
Object.defineProperty(exports, "ScenarioKpisGroupByOptions", { enumerable: true, get: function () { return scenario_kpis_1.ScenarioKpisGroupByOptions; } });
|
|
206
|
-
var strategy_rules_1 = require("./enums/strategy-rules");
|
|
207
|
-
Object.defineProperty(exports, "RuleType", { enumerable: true, get: function () { return strategy_rules_1.RuleType; } });
|
|
208
|
-
Object.defineProperty(exports, "RuleEnforcement", { enumerable: true, get: function () { return strategy_rules_1.RuleEnforcement; } });
|
|
209
|
-
Object.defineProperty(exports, "RuleConditionBoundaryType", { enumerable: true, get: function () { return strategy_rules_1.RuleConditionBoundaryType; } });
|
|
210
|
-
Object.defineProperty(exports, "RuleConditionValueFormat", { enumerable: true, get: function () { return strategy_rules_1.RuleConditionValueFormat; } });
|
|
211
|
-
Object.defineProperty(exports, "RuleEvaluationErrorCode", { enumerable: true, get: function () { return strategy_rules_1.RuleEvaluationErrorCode; } });
|
|
212
208
|
var system_specific_kpis_1 = require("./enums/kpis/system-specific-kpis");
|
|
213
209
|
Object.defineProperty(exports, "SystemSpecificKpis", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpis; } });
|
|
214
210
|
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;AAmb3C,mHArbA,6DAAkC,OAqbA;AAClC,+GArbA,yDAA8B,OAqbA;AAnbhC,yDAA2E;AAobzE,iHApbO,+CAAgC,OAobP;AAnblC,+DAGoC;AAiblC,mHAnbA,oDAAkC,OAmbA;AAClC,mHAnbA,oDAAkC,OAmbA;AAjbpC,+EAM4C;AA4a1C,+GAjbA,wDAA8B,OAibA;AAC9B,sHAjbA,+DAAqC,OAibA;AACrC,uHAjbA,gEAAsC,OAibA;AACtC,6HAjbA,sEAA4C,OAibA;AAC5C,qI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paMode } from '../../enums/discovery/ppa-mode';
|
|
3
|
+
import { PriceChangeTypes } from '../../enums/price-change/price-change-types';
|
|
4
|
+
/**
|
|
5
|
+
* Wire shapes of the levers an action-discovery group configures, shared by the
|
|
6
|
+
* UI that builds the create payload and the API DTOs that validate it. The group
|
|
7
|
+
* and payload roots stay in each repo, because their scope and target-KPI shapes
|
|
8
|
+
* differ; everything below the levers is identical on both sides.
|
|
9
|
+
*/
|
|
10
|
+
export interface IActionDiscoveryPpaChange {
|
|
11
|
+
attributeReferenceId: string;
|
|
12
|
+
mode: PpaMode;
|
|
13
|
+
attributeValues: (number | string)[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A type-keyed union: TARGET_PRICE prices each product and carries no scalar,
|
|
17
|
+
* every other type carries one unsigned magnitude and no per-product map. The
|
|
18
|
+
* direction lives in the type, so the value stays unsigned.
|
|
19
|
+
*/
|
|
20
|
+
export interface IActionDiscoveryPriceChange {
|
|
21
|
+
type: PriceChangeTypes;
|
|
22
|
+
value?: number;
|
|
23
|
+
perProductValues?: Record<string, number>;
|
|
24
|
+
}
|
|
25
|
+
export interface IActionDiscoveryPriceVariant {
|
|
26
|
+
attributeValue: number | string;
|
|
27
|
+
values: IActionDiscoveryPriceChange[];
|
|
28
|
+
}
|
|
29
|
+
/** Exactly one container is populated, and which one follows the PPA lever. */
|
|
30
|
+
export interface IActionDiscoveryPriceLever {
|
|
31
|
+
perVariant?: IActionDiscoveryPriceVariant[];
|
|
32
|
+
groupWide?: IActionDiscoveryPriceChange[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The availability counterpart of IActionDiscoveryPriceChange, with the same
|
|
36
|
+
* type-keyed union: TARGET_AVAILABILITY sets an availability per product and
|
|
37
|
+
* carries no scalar, the percent types carry one unsigned magnitude and no
|
|
38
|
+
* per-product map.
|
|
39
|
+
*
|
|
40
|
+
* Values are percent on this wire — percentage points for the two percent types,
|
|
41
|
+
* a percentage for a target — in [0, 100]. The API converts them to the [0, 1]
|
|
42
|
+
* fractions the simulation service carries; see BB-745 for the wider unification
|
|
43
|
+
* of that convention.
|
|
44
|
+
*/
|
|
45
|
+
export interface IActionDiscoveryAvailabilityChange {
|
|
46
|
+
type: AvailabilityChangeTypes;
|
|
47
|
+
value?: number;
|
|
48
|
+
perProductValues?: Record<string, number>;
|
|
49
|
+
}
|
|
50
|
+
export interface IActionDiscoveryAvailabilityVariant {
|
|
51
|
+
attributeValue: number | string;
|
|
52
|
+
values: IActionDiscoveryAvailabilityChange[];
|
|
53
|
+
}
|
|
54
|
+
/** Exactly one container is populated, and which one follows the PPA lever. */
|
|
55
|
+
export interface IActionDiscoveryAvailabilityLever {
|
|
56
|
+
perVariant?: IActionDiscoveryAvailabilityVariant[];
|
|
57
|
+
groupWide?: IActionDiscoveryAvailabilityChange[];
|
|
58
|
+
}
|
|
59
|
+
export interface IActionDiscoveryGroupChanges {
|
|
60
|
+
ppa?: IActionDiscoveryPpaChange;
|
|
61
|
+
price?: IActionDiscoveryPriceLever;
|
|
62
|
+
availability?: IActionDiscoveryAvailabilityLever;
|
|
63
|
+
}
|
|
64
|
+
/** Each lever field is present if and only if the group configures that lever. */
|
|
65
|
+
export interface IActionDiscoveryMatrixEntry {
|
|
66
|
+
groupId: string;
|
|
67
|
+
attributeValue?: number | string;
|
|
68
|
+
priceChange?: IActionDiscoveryPriceChange;
|
|
69
|
+
availabilityChange?: IActionDiscoveryAvailabilityChange;
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-discovery.js","sourceRoot":"","sources":["../../../src/interfaces/discovery/action-discovery.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { IActionDiscoveryAvailabilityChange, IActionDiscoveryPriceChange } from './action-discovery';
|
|
1
2
|
export interface IGroupMetadataAppliedPpaChange {
|
|
2
3
|
attributeReferenceId: string;
|
|
3
4
|
attributeValue: number | string;
|
|
4
5
|
}
|
|
5
6
|
export interface IGroupMetadataAppliedChanges {
|
|
6
7
|
ppa?: IGroupMetadataAppliedPpaChange;
|
|
8
|
+
/**
|
|
9
|
+
* The change as the client offered it, with per-product prices keyed by base
|
|
10
|
+
* product reference id — the group's own products, not the variants swapped in
|
|
11
|
+
* for a PPA lever.
|
|
12
|
+
*/
|
|
13
|
+
price?: IActionDiscoveryPriceChange;
|
|
14
|
+
/**
|
|
15
|
+
* The change as the client offered it, with per-product availabilities keyed by
|
|
16
|
+
* base product reference id and in percent, matching what was submitted rather
|
|
17
|
+
* than the fractions the simulation service ran.
|
|
18
|
+
*/
|
|
19
|
+
availability?: IActionDiscoveryAvailabilityChange;
|
|
7
20
|
}
|
|
8
21
|
/**
|
|
9
22
|
* Per-group record of what an action-discovery scenario applied; stored on
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
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';
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
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';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
/**
|
|
28
|
-
* Keyed by rule id.
|
|
29
|
-
* Only returned when the read is requested with `includeRuleResults: true`
|
|
30
|
-
*/
|
|
31
|
-
rules?: Record<string, IScenarioRuleResult>;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scenario-rule-results.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/scenario-rule-results.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strategy-rule.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/strategy-rule.interface.ts"],"names":[],"mappings":""}
|