@buynomics-lib/bn-shared 1.18.27-feature-ace-989-shared.0 → 1.18.27

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.
Files changed (35) hide show
  1. package/build/enums/discovery/ppa-mode.d.ts +3 -0
  2. package/build/enums/discovery/ppa-mode.js +8 -0
  3. package/build/enums/discovery/ppa-mode.js.map +1 -0
  4. package/build/index.d.ts +4 -4
  5. package/build/index.js +4 -7
  6. package/build/index.js.map +1 -1
  7. package/build/interfaces/discovery/action-discovery.d.ts +42 -0
  8. package/build/interfaces/{strategy-rules/index.js → discovery/action-discovery.js} +1 -1
  9. package/build/interfaces/discovery/action-discovery.js.map +1 -0
  10. package/build/interfaces/discovery/group-metadata.d.ts +7 -0
  11. package/build/interfaces/scenario-kpis/index.d.ts +0 -1
  12. package/package.json +1 -1
  13. package/build/enums/strategy-rules/index.d.ts +0 -4
  14. package/build/enums/strategy-rules/index.js +0 -12
  15. package/build/enums/strategy-rules/index.js.map +0 -1
  16. package/build/enums/strategy-rules/rule-condition-boundary-type.enum.d.ts +0 -6
  17. package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js +0 -11
  18. package/build/enums/strategy-rules/rule-condition-boundary-type.enum.js.map +0 -1
  19. package/build/enums/strategy-rules/rule-condition-value-format.enum.d.ts +0 -4
  20. package/build/enums/strategy-rules/rule-condition-value-format.enum.js +0 -9
  21. package/build/enums/strategy-rules/rule-condition-value-format.enum.js.map +0 -1
  22. package/build/enums/strategy-rules/rule-enforcement.enum.d.ts +0 -4
  23. package/build/enums/strategy-rules/rule-enforcement.enum.js +0 -9
  24. package/build/enums/strategy-rules/rule-enforcement.enum.js.map +0 -1
  25. package/build/enums/strategy-rules/rule-type.enum.d.ts +0 -5
  26. package/build/enums/strategy-rules/rule-type.enum.js +0 -10
  27. package/build/enums/strategy-rules/rule-type.enum.js.map +0 -1
  28. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.d.ts +0 -26
  29. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js +0 -3
  30. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js.map +0 -1
  31. package/build/interfaces/strategy-rules/index.d.ts +0 -1
  32. package/build/interfaces/strategy-rules/index.js.map +0 -1
  33. package/build/interfaces/strategy-rules/strategy-rule.interface.d.ts +0 -52
  34. package/build/interfaces/strategy-rules/strategy-rule.interface.js +0 -3
  35. package/build/interfaces/strategy-rules/strategy-rule.interface.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ export declare enum PpaMode {
2
+ Replace = "replace"
3
+ }
@@ -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 { 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, IGetScenarioKpisFiltersParams } from './interfaces/scenario-kpis';
94
- import { RuleType, RuleEnforcement, RuleConditionBoundaryType, RuleConditionValueFormat } from './enums/strategy-rules';
95
- import { IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition } 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, RuleType, RuleEnforcement, RuleConditionBoundaryType, RuleConditionValueFormat, 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, 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, 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, };
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, 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.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.getAggregationGroupMembershipMode = exports.calculateRange = 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 = void 0;
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,11 +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
208
  var system_specific_kpis_1 = require("./enums/kpis/system-specific-kpis");
212
209
  Object.defineProperty(exports, "SystemSpecificKpis", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpis; } });
213
210
  Object.defineProperty(exports, "SystemSpecificKpisReferenceIds", { enumerable: true, get: function () { return system_specific_kpis_1.SystemSpecificKpisReferenceIds; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,iFAG6C;AAmc3C,mHArcA,6DAAkC,OAqcA;AAClC,+GArcA,yDAA8B,OAqcA;AAnchC,yDAA2E;AAoczE,iHApcO,+CAAgC,OAocP;AAnclC,+DAGoC;AAiclC,mHAncA,oDAAkC,OAmcA;AAClC,mHAncA,oDAAkC,OAmcA;AAjcpC,+EAM4C;AA4b1C,+GAjcA,wDAA8B,OAicA;AAC9B,sHAjcA,+DAAqC,OAicA;AACrC,uHAjcA,gEAAsC,OAicA;AACtC,6HAjcA,sEAA4C,OAicA;AAC5C,qIAjcA,8EAAoD,OAicA;AA/btD,6EAG2C;AA6bzC,8GA/bA,sDAA6B,OA+bA;AAC7B,qHA/bA,6DAAoC,OA+bA;AA7btC,6EAA0E;AA0QxE,gGA1QO,kCAAe,OA0QP;AAvQjB,4HAAuH;AAsQrH,8GAtQO,gEAA6B,OAsQP;AArQ/B,4GAAwG;AAoQtG,uGApQO,iDAAsB,OAoQP;AAnQxB,oFAAoF;AAyYlF,oGAzYO,uCAAmB,OAyYP;AAvYrB,2HAAiH;AA4O/G,+GA5OO,uEAA8B,OA4OP;AA3OhC,qGAA4F;AA4O1F,qGA5OO,kDAAoB,OA4OP;AA3OtB,2HAAiH;AA4O/G,+GA5OO,uEAA8B,OA4OP;AA3OhC,mGAA+F;AA0R7F,wGA1RO,mDAAuB,OA0RP;AAzRzB,6DAAiE;AAgQ/D,uGAhQO,yCAAsB,OAgQP;AA/PxB,wEAAuE;AAmQrE,oGAnQO,wCAAmB,OAmQP;AAlQrB,wEAAoE;AAqPlE,iGArPO,qCAAgB,OAqPP;AApPlB,gFAG8C;AAkP5C,oGApPA,4CAAmB,OAoP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NA;AASlB,4GApOA,kDAA2B,OAoOA;AAlO7B,sEAGwC;AAyNtC,iGA3NA,qCAAgB,OA2NA;AAChB,6GA3NA,iDAA4B,OA2NA;AAhN9B,wEAAoE;AAgIlE,kGAhIO,uCAAiB,OAgIP;AA/HnB,uEAA+D;AAmG7D,4FAnGO,+BAAW,OAmGP;AAlGb,+FAAsF;AAmGpF,uGAnGO,sDAAsB,OAmGP;AAlGxB,yCAgBuB;AA6FrB,2FA5GA,mBAAU,OA4GA;AACV,yGA5GA,iCAAwB,OA4GA;AACxB,oGA5GA,4BAAmB,OA4GA;AACnB,mGA5GA,2BAAkB,OA4GA;AAClB,wGA5GA,gCAAuB,OA4GA;AACvB,yGA5GA,iCAAwB,OA4GA;AACxB,sGA5GA,8BAAqB,OA4GA;AACrB,qGA5GA,6BAAoB,OA4GA;AACpB,uGA5GA,+BAAsB,OA4GA;AACtB,uGA5GA,+BAAsB,OA4GA;AACtB,yGA5GA,iCAAwB,OA4GA;AACxB,sGA5GA,8BAAqB,OA4GA;AACrB,0GA5GA,kCAAyB,OA4GA;AACzB,8GA5GA,sCAA6B,OA4GA;AAC7B,yGA5GA,iCAAwB,OA4GA;AA7F1B,uDAAkE;AA8FhE,2GA9FO,0CAA0B,OA8FP;AA5F5B,0EAG0C;AA8KxC,mGAhLA,yCAAkB,OAgLA;AADlB,+GA9KA,qDAA8B,OA8KA"}
@@ -0,0 +1,42 @@
1
+ import { PpaMode } from '../../enums/discovery/ppa-mode';
2
+ import { PriceChangeTypes } from '../../enums/price-change/price-change-types';
3
+ /**
4
+ * Wire shapes of the levers an action-discovery group configures, shared by the
5
+ * UI that builds the create payload and the API DTOs that validate it. The group
6
+ * and payload roots stay in each repo, because their scope and target-KPI shapes
7
+ * differ; everything below the levers is identical on both sides.
8
+ */
9
+ export interface IActionDiscoveryPpaChange {
10
+ attributeReferenceId: string;
11
+ mode: PpaMode;
12
+ attributeValues: (number | string)[];
13
+ }
14
+ /**
15
+ * A type-keyed union: TARGET_PRICE prices each product and carries no scalar,
16
+ * every other type carries one unsigned magnitude and no per-product map. The
17
+ * direction lives in the type, so the value stays unsigned.
18
+ */
19
+ export interface IActionDiscoveryPriceChange {
20
+ type: PriceChangeTypes;
21
+ value?: number;
22
+ perProductValues?: Record<string, number>;
23
+ }
24
+ export interface IActionDiscoveryPriceVariant {
25
+ attributeValue: number | string;
26
+ values: IActionDiscoveryPriceChange[];
27
+ }
28
+ /** Exactly one container is populated, and which one follows the PPA lever. */
29
+ export interface IActionDiscoveryPriceLever {
30
+ perVariant?: IActionDiscoveryPriceVariant[];
31
+ groupWide?: IActionDiscoveryPriceChange[];
32
+ }
33
+ export interface IActionDiscoveryGroupChanges {
34
+ ppa?: IActionDiscoveryPpaChange;
35
+ price?: IActionDiscoveryPriceLever;
36
+ }
37
+ /** Each lever field is present if and only if the group configures that lever. */
38
+ export interface IActionDiscoveryMatrixEntry {
39
+ groupId: string;
40
+ attributeValue?: number | string;
41
+ priceChange?: IActionDiscoveryPriceChange;
42
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=action-discovery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-discovery.js","sourceRoot":"","sources":["../../../src/interfaces/discovery/action-discovery.ts"],"names":[],"mappings":""}
@@ -1,9 +1,16 @@
1
+ import { 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;
7
14
  }
8
15
  /**
9
16
  * Per-group record of what an action-discovery scenario applied; stored on
@@ -1,2 +1 @@
1
1
  export { IScenarioKpisGroupBy } from './scenario-kpis-group-by.interface';
2
- export { IGetScenarioKpisFiltersParams } from './get-scenario-kpis-filters-params.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buynomics-lib/bn-shared",
3
- "version": "1.18.27-feature-ace-989-shared.0",
3
+ "version": "1.18.27",
4
4
  "description": "Shared functionality between API and UI",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,4 +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';
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- 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
- //# 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"}
@@ -1,6 +0,0 @@
1
- export declare enum RuleConditionBoundaryType {
2
- Floor = "floor",
3
- Ceiling = "ceiling",
4
- MaxDecrease = "maxDecrease",
5
- MaxIncrease = "maxIncrease"
6
- }
@@ -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,4 +0,0 @@
1
- export declare enum RuleConditionValueFormat {
2
- Percentage = "percentage",
3
- Absolute = "absolute"
4
- }
@@ -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,4 +0,0 @@
1
- export declare enum RuleEnforcement {
2
- Soft = "soft",
3
- Hard = "hard"
4
- }
@@ -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,5 +0,0 @@
1
- export declare enum RuleType {
2
- KpiConstraint = "kpiConstraint",
3
- PriceConstraint = "priceConstraint",
4
- MinimumPriceChange = "minimumPriceChange"
5
- }
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=get-scenario-kpis-filters-params.interface.js.map
@@ -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 +0,0 @@
1
- export { IStrategyRule, IStrategyRuleInput, IStrategyRuleScope, IStrategyRuleScopeFilters, IStrategyRuleEnforcement, IRuleConditionBoundary, IRuleConditionBoundaryWithType, IKpiConstraintCondition, IPriceConstraintCondition, IMinimumPriceChangeCondition, StrategyRuleCondition, } from './strategy-rule.interface';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/index.ts"],"names":[],"mappings":""}
@@ -1,52 +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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=strategy-rule.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strategy-rule.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/strategy-rule.interface.ts"],"names":[],"mappings":""}