@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.
Files changed (41) 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 -8
  6. package/build/index.js.map +1 -1
  7. package/build/interfaces/discovery/action-discovery.d.ts +70 -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 +13 -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 -5
  14. package/build/enums/strategy-rules/index.js +0 -14
  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-evaluation-error-code.enum.d.ts +0 -8
  26. package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js +0 -13
  27. package/build/enums/strategy-rules/rule-evaluation-error-code.enum.js.map +0 -1
  28. package/build/enums/strategy-rules/rule-type.enum.d.ts +0 -5
  29. package/build/enums/strategy-rules/rule-type.enum.js +0 -10
  30. package/build/enums/strategy-rules/rule-type.enum.js.map +0 -1
  31. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.d.ts +0 -26
  32. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js +0 -3
  33. package/build/interfaces/scenario-kpis/get-scenario-kpis-filters-params.interface.js.map +0 -1
  34. package/build/interfaces/strategy-rules/index.d.ts +0 -2
  35. package/build/interfaces/strategy-rules/index.js.map +0 -1
  36. package/build/interfaces/strategy-rules/scenario-rule-results.interface.d.ts +0 -32
  37. package/build/interfaces/strategy-rules/scenario-rule-results.interface.js +0 -3
  38. package/build/interfaces/strategy-rules/scenario-rule-results.interface.js.map +0 -1
  39. package/build/interfaces/strategy-rules/strategy-rule.interface.d.ts +0 -55
  40. package/build/interfaces/strategy-rules/strategy-rule.interface.js +0 -3
  41. 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 { 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, IGetScenarioKpisFiltersParams } from './interfaces/scenario-kpis';
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, 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, 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, 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.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.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 = 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,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; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,iFAG6C;AAid3C,mHAndA,6DAAkC,OAmdA;AAClC,+GAndA,yDAA8B,OAmdA;AAjdhC,yDAA2E;AAkdzE,iHAldO,+CAAgC,OAkdP;AAjdlC,+DAGoC;AA+clC,mHAjdA,oDAAkC,OAidA;AAClC,mHAjdA,oDAAkC,OAidA;AA/cpC,+EAM4C;AA0c1C,+GA/cA,wDAA8B,OA+cA;AAC9B,sHA/cA,+DAAqC,OA+cA;AACrC,uHA/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4GA;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;AAiLxC,mGAnLA,yCAAkB,OAmLA;AADlB,+GAjLA,qDAA8B,OAiLA"}
@@ -0,0 +1,70 @@
1
+ import { AvailabilityChangeTypes } from '../../enums/availability-change/availability-change-types';
2
+ import { PpaMode } 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
+ }
@@ -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,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
@@ -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.1",
3
+ "version": "1.18.28-feature-sim-920.0",
4
4
  "description": "Shared functionality between API and UI",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -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,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,8 +0,0 @@
1
- export declare enum RuleEvaluationErrorCode {
2
- UnknownKpi = "unknownKpi",
3
- MissingMeasuringUnit = "missingMeasuringUnit",
4
- FormulaError = "formulaError",
5
- QueryFailed = "queryFailed",
6
- EmptyScope = "emptyScope",
7
- MissingReference = "missingReference"
8
- }
@@ -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,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,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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=scenario-rule-results.interface.js.map
@@ -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,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":""}