@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.
- 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 -7
- package/build/index.js.map +1 -1
- package/build/interfaces/discovery/action-discovery.d.ts +42 -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 +7 -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 -4
- package/build/enums/strategy-rules/index.js +0 -12
- 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-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 -1
- package/build/interfaces/strategy-rules/index.js.map +0 -1
- package/build/interfaces/strategy-rules/strategy-rule.interface.d.ts +0 -52
- 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 { 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 } 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,
|
|
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.
|
|
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,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; } });
|
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;AA6a3C,mHA/aA,6DAAkC,OA+aA;AAClC,+GA/aA,yDAA8B,OA+aA;AA7ahC,yDAA2E;AA8azE,iHA9aO,+CAAgC,OA8aP;AA7alC,+DAGoC;AA2alC,mHA7aA,oDAAkC,OA6aA;AAClC,mHA7aA,oDAAkC,OA6aA;AA3apC,+EAM4C;AAsa1C,+GA3aA,wDAA8B,OA2aA;AAC9B,sHA3aA,+DAAqC,OA2aA;AACrC,uHA3aA,gEAAsC,OA2aA;AACtC,6HA3aA,sEAA4C,OA2aA;AAC5C,qIA3aA,8EAAoD,OA2aA;AAzatD,6EAG2C;AAuazC,8GAzaA,sDAA6B,OAyaA;AAC7B,qHAzaA,6DAAoC,OAyaA;AAvatC,6EAA0E;AA6PxE,gGA7PO,kCAAe,OA6PP;AA1PjB,4HAAuH;AAyPrH,8GAzPO,gEAA6B,OAyPP;AAxP/B,4GAAwG;AAuPtG,uGAvPO,iDAAsB,OAuPP;AAtPxB,oFAAoF;AA4WlF,oGA5WO,uCAAmB,OA4WP;AA1WrB,2HAAiH;AA+N/G,+GA/NO,uEAA8B,OA+NP;AA9NhC,qGAA4F;AA+N1F,qGA/NO,kDAAoB,OA+NP;AA9NtB,2HAAiH;AA+N/G,+GA/NO,uEAA8B,OA+NP;AA9NhC,mGAA+F;AA6Q7F,wGA7QO,mDAAuB,OA6QP;AA5QzB,6DAAiE;AAmP/D,uGAnPO,yCAAsB,OAmPP;AAlPxB,wEAAuE;AAsPrE,oGAtPO,wCAAmB,OAsPP;AArPrB,wE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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
|
+
}
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -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,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,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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strategy-rule.interface.js","sourceRoot":"","sources":["../../../src/interfaces/strategy-rules/strategy-rule.interface.ts"],"names":[],"mappings":""}
|