@buynomics-lib/bn-shared 1.18.16-feature-ace-890.0 → 1.18.16-feature-sim-911.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/enums/discovery/discovery-type.d.ts +4 -0
- package/build/enums/discovery/discovery-type.js +9 -0
- package/build/enums/discovery/discovery-type.js.map +1 -0
- package/build/index.d.ts +2 -6
- package/build/index.js +5 -11
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/build/enums/aggregation-group/aggregation-group-membership-mode.enum.d.ts +0 -5
- package/build/enums/aggregation-group/aggregation-group-membership-mode.enum.js +0 -10
- package/build/enums/aggregation-group/aggregation-group-membership-mode.enum.js.map +0 -1
- package/build/enums/aggregation-group/aggregation-group-type.enum.d.ts +0 -4
- package/build/enums/aggregation-group/aggregation-group-type.enum.js +0 -9
- package/build/enums/aggregation-group/aggregation-group-type.enum.js.map +0 -1
- package/build/enums/aggregation-group/numeric-aggregation-rule-operator.enum.d.ts +0 -5
- package/build/enums/aggregation-group/numeric-aggregation-rule-operator.enum.js +0 -10
- package/build/enums/aggregation-group/numeric-aggregation-rule-operator.enum.js.map +0 -1
- package/build/helpers/get-aggregation-group-membership-mode.d.ts +0 -3
- package/build/helpers/get-aggregation-group-membership-mode.js +0 -16
- package/build/helpers/get-aggregation-group-membership-mode.js.map +0 -1
- package/build/interfaces/aggregation-group/aggregation-group.interface.d.ts +0 -34
- package/build/interfaces/aggregation-group/aggregation-group.interface.js +0 -3
- package/build/interfaces/aggregation-group/aggregation-group.interface.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscoveryType = void 0;
|
|
4
|
+
var DiscoveryType;
|
|
5
|
+
(function (DiscoveryType) {
|
|
6
|
+
DiscoveryType["Pricing"] = "pricing";
|
|
7
|
+
DiscoveryType["Action"] = "action";
|
|
8
|
+
})(DiscoveryType = exports.DiscoveryType || (exports.DiscoveryType = {}));
|
|
9
|
+
//# sourceMappingURL=discovery-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery-type.js","sourceRoot":"","sources":["../../../src/enums/discovery/discovery-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
|
package/build/index.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ import { IntermediaryGroupRangeFormats } from './domains/pricing/intermediaries/
|
|
|
10
10
|
import { IntermediaryGroupTypes } from './domains/pricing/intermediaries/enums/intermediary-group-types';
|
|
11
11
|
import { getPromotionPeriods } from './domains/promotions/helpers/promotion-periods';
|
|
12
12
|
import { IPromotionPeriod } from './domains/promotions/interfaces/promotion-period';
|
|
13
|
-
import { AggregationGroupMembershipMode } from './enums/aggregation-group/aggregation-group-membership-mode.enum';
|
|
14
|
-
import { AggregationGroupType } from './enums/aggregation-group/aggregation-group-type.enum';
|
|
15
|
-
import { NumericAggregationRuleOperator } from './enums/aggregation-group/numeric-aggregation-rule-operator.enum';
|
|
16
13
|
import { AvailabilityChangeTypes } from './enums/availability-change/availability-change-types';
|
|
17
14
|
import { CentralSteeringVersion } from './enums/central-steering';
|
|
18
15
|
import { BuynomicsAppVersion } from './enums/client/client-app-version';
|
|
@@ -33,6 +30,7 @@ import { ClientViewSettingsPages } from './enums/client/client-view-settings';
|
|
|
33
30
|
import { ChangeCostBases } from './enums/cost-change/change-cost-bases';
|
|
34
31
|
import { CostChangeTypes } from './enums/cost-change/cost-change-types';
|
|
35
32
|
import { DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes } from './enums/deeperion';
|
|
33
|
+
import { DiscoveryType } from './enums/discovery/discovery-type';
|
|
36
34
|
import { SystemKpis, SystemBaseKpisReferenceIds } from './enums/kpis/system-kpis';
|
|
37
35
|
import { SystemDerivedKpis, SystemDerivedKpisReferenceIds } from './enums/kpis/system-derived-kpis';
|
|
38
36
|
import { KpiConstraintType, KpiConstraintMode, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket } from './enums/optimization';
|
|
@@ -65,8 +63,6 @@ import { MeasurementConverter } from './helpers/measurement-converter';
|
|
|
65
63
|
import { formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals } from './helpers/format-number-to-indian-compact-in-crores';
|
|
66
64
|
import { getPropertyName } from './helpers/get-property-name';
|
|
67
65
|
import PriceDecisionNullificationHelper from './helpers/price-decision/price-decision-helper';
|
|
68
|
-
import { getAggregationGroupMembershipMode } from './helpers/get-aggregation-group-membership-mode';
|
|
69
|
-
import { AggregationRule, IAggregationGroup, IAggregationGroupNumericConfig, ICategoricalAggregationRule, INumericAggregationRule } from './interfaces/aggregation-group/aggregation-group.interface';
|
|
70
66
|
import { IClientViewSettings } from './interfaces/client-view-settings';
|
|
71
67
|
import { IFileUpload } from './interfaces/file-upload';
|
|
72
68
|
import { ISimulationInputChangeEvents } from './interfaces/simulation/simulation-input-change-events';
|
|
@@ -85,4 +81,4 @@ import { IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfi
|
|
|
85
81
|
import { ScenarioKpisGroupByOptions } from './enums/scenario-kpis';
|
|
86
82
|
import { IScenarioKpisGroupBy } from './interfaces/scenario-kpis';
|
|
87
83
|
import { SystemSpecificKpis, SystemSpecificKpisReferenceIds } from './enums/kpis/system-specific-kpis';
|
|
88
|
-
export {
|
|
84
|
+
export { 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, 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, IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage, IScenarioKpisGroupBy, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, 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
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MechanicTypeRelations = 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.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 =
|
|
7
|
-
exports.KpiSystemVariables = exports.SystemVariableType = exports.KpiConfigType = exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = 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.
|
|
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 =
|
|
6
|
+
exports.ProductNamingDelimiter = exports.ProductType = exports.MechanicTypeRelations = 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 = void 0;
|
|
7
|
+
exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = exports.SystemVariableType = exports.KpiConfigType = exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = 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.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 = 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 = 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; } });
|
|
@@ -31,12 +31,6 @@ var intermediary_group_types_1 = require("./domains/pricing/intermediaries/enums
|
|
|
31
31
|
Object.defineProperty(exports, "IntermediaryGroupTypes", { enumerable: true, get: function () { return intermediary_group_types_1.IntermediaryGroupTypes; } });
|
|
32
32
|
var promotion_periods_1 = require("./domains/promotions/helpers/promotion-periods");
|
|
33
33
|
Object.defineProperty(exports, "getPromotionPeriods", { enumerable: true, get: function () { return promotion_periods_1.getPromotionPeriods; } });
|
|
34
|
-
var aggregation_group_membership_mode_enum_1 = require("./enums/aggregation-group/aggregation-group-membership-mode.enum");
|
|
35
|
-
Object.defineProperty(exports, "AggregationGroupMembershipMode", { enumerable: true, get: function () { return aggregation_group_membership_mode_enum_1.AggregationGroupMembershipMode; } });
|
|
36
|
-
var aggregation_group_type_enum_1 = require("./enums/aggregation-group/aggregation-group-type.enum");
|
|
37
|
-
Object.defineProperty(exports, "AggregationGroupType", { enumerable: true, get: function () { return aggregation_group_type_enum_1.AggregationGroupType; } });
|
|
38
|
-
var numeric_aggregation_rule_operator_enum_1 = require("./enums/aggregation-group/numeric-aggregation-rule-operator.enum");
|
|
39
|
-
Object.defineProperty(exports, "NumericAggregationRuleOperator", { enumerable: true, get: function () { return numeric_aggregation_rule_operator_enum_1.NumericAggregationRuleOperator; } });
|
|
40
34
|
var availability_change_types_1 = require("./enums/availability-change/availability-change-types");
|
|
41
35
|
Object.defineProperty(exports, "AvailabilityChangeTypes", { enumerable: true, get: function () { return availability_change_types_1.AvailabilityChangeTypes; } });
|
|
42
36
|
var central_steering_1 = require("./enums/central-steering");
|
|
@@ -89,6 +83,8 @@ Object.defineProperty(exports, "DeeperionVersions", { enumerable: true, get: fun
|
|
|
89
83
|
Object.defineProperty(exports, "DeeperionAppSwitchValues", { enumerable: true, get: function () { return deeperion_1.DeeperionAppSwitchValues; } });
|
|
90
84
|
Object.defineProperty(exports, "DeeperionRequestTypes", { enumerable: true, get: function () { return deeperion_1.DeeperionRequestTypes; } });
|
|
91
85
|
Object.defineProperty(exports, "DeeperionModelTypes", { enumerable: true, get: function () { return deeperion_1.DeeperionModelTypes; } });
|
|
86
|
+
var discovery_type_1 = require("./enums/discovery/discovery-type");
|
|
87
|
+
Object.defineProperty(exports, "DiscoveryType", { enumerable: true, get: function () { return discovery_type_1.DiscoveryType; } });
|
|
92
88
|
var system_kpis_1 = require("./enums/kpis/system-kpis");
|
|
93
89
|
Object.defineProperty(exports, "SystemKpis", { enumerable: true, get: function () { return system_kpis_1.SystemKpis; } });
|
|
94
90
|
Object.defineProperty(exports, "SystemBaseKpisReferenceIds", { enumerable: true, get: function () { return system_kpis_1.SystemBaseKpisReferenceIds; } });
|
|
@@ -159,8 +155,6 @@ var get_property_name_1 = require("./helpers/get-property-name");
|
|
|
159
155
|
Object.defineProperty(exports, "getPropertyName", { enumerable: true, get: function () { return get_property_name_1.getPropertyName; } });
|
|
160
156
|
var price_decision_helper_1 = __importDefault(require("./helpers/price-decision/price-decision-helper"));
|
|
161
157
|
exports.PriceDecisionNullificationHelper = price_decision_helper_1.default;
|
|
162
|
-
var get_aggregation_group_membership_mode_1 = require("./helpers/get-aggregation-group-membership-mode");
|
|
163
|
-
Object.defineProperty(exports, "getAggregationGroupMembershipMode", { enumerable: true, get: function () { return get_aggregation_group_membership_mode_1.getAggregationGroupMembershipMode; } });
|
|
164
158
|
var kpi_variable_format_enum_1 = require("./enums/kpis/kpi-variable-format.enum");
|
|
165
159
|
Object.defineProperty(exports, "KpiAggregation", { enumerable: true, get: function () { return kpi_variable_format_enum_1.KpiAggregation; } });
|
|
166
160
|
Object.defineProperty(exports, "KpiVariableFormat", { enumerable: true, get: function () { return kpi_variable_format_enum_1.KpiVariableFormat; } });
|
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;AAqV3C,mHAvVA,6DAAkC,OAuVA;AAClC,+GAvVA,yDAA8B,OAuVA;AArVhC,yDAA2E;AAsVzE,iHAtVO,+CAAgC,OAsVP;AArVlC,+DAGoC;AAmVlC,mHArVA,oDAAkC,OAqVA;AAClC,mHArVA,oDAAkC,OAqVA;AAnVpC,+EAM4C;AA8U1C,+GAnVA,wDAA8B,OAmVA;AAC9B,sHAnVA,+DAAqC,OAmVA;AACrC,uHAnVA,gEAAsC,OAmVA;AACtC,6HAnVA,sEAA4C,OAmVA;AAC5C,qIAnVA,8EAAoD,OAmVA;AAjVtD,6EAG2C;AA+UzC,8GAjVA,sDAA6B,OAiVA;AAC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ArLA,iDAA4B,OAqLA;AA1K9B,wEAAoE;AA4HlE,kGA5HO,uCAAiB,OA4HP;AA3HnB,uEAA+D;AA+F7D,4FA/FO,+BAAW,OA+FP;AA9Fb,+FAAsF;AA+FpF,uGA/FO,sDAAsB,OA+FP;AA9FxB,yCAgBuB;AAyFrB,2FAxGA,mBAAU,OAwGA;AACV,yGAxGA,iCAAwB,OAwGA;AACxB,oGAxGA,4BAAmB,OAwGA;AACnB,mGAxGA,2BAAkB,OAwGA;AAClB,wGAxGA,gCAAuB,OAwGA;AACvB,yGAxGA,iCAAwB,OAwGA;AACxB,sGAxGA,8BAAqB,OAwGA;AACrB,qGAxGA,6BAAoB,OAwGA;AACpB,uGAxGA,+BAAsB,OAwGA;AACtB,uGAxGA,+BAAsB,OAwGA;AACtB,yGAxGA,iCAAwB,OAwGA;AACxB,sGAxGA,8BAAqB,OAwGA;AACrB,0GAxGA,kCAAyB,OAwGA;AACzB,8GAxGA,sCAA6B,OAwGA;AAC7B,yGAxGA,iCAAwB,OAwGA;AAzF1B,uDAAkE;AA0FhE,2GA1FO,0CAA0B,OA0FP;AAxF5B,0EAG0C;AAwIxC,mGA1IA,yCAAkB,OA0IA;AADlB,+GAxIA,qDAA8B,OAwIA"}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggregationGroupMembershipMode = void 0;
|
|
4
|
-
var AggregationGroupMembershipMode;
|
|
5
|
-
(function (AggregationGroupMembershipMode) {
|
|
6
|
-
AggregationGroupMembershipMode["GroupByAttribute"] = "group-by-attribute";
|
|
7
|
-
AggregationGroupMembershipMode["MatchByAttribute"] = "match-by-attribute";
|
|
8
|
-
AggregationGroupMembershipMode["Manual"] = "manual";
|
|
9
|
-
})(AggregationGroupMembershipMode = exports.AggregationGroupMembershipMode || (exports.AggregationGroupMembershipMode = {}));
|
|
10
|
-
//# sourceMappingURL=aggregation-group-membership-mode.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aggregation-group-membership-mode.enum.js","sourceRoot":"","sources":["../../../src/enums/aggregation-group/aggregation-group-membership-mode.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,yEAAuC,CAAA;IACvC,yEAAuC,CAAA;IACvC,mDAAiB,CAAA;AACnB,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggregationGroupType = void 0;
|
|
4
|
-
var AggregationGroupType;
|
|
5
|
-
(function (AggregationGroupType) {
|
|
6
|
-
AggregationGroupType["Categorical"] = "categorical";
|
|
7
|
-
AggregationGroupType["Numeric"] = "numeric";
|
|
8
|
-
})(AggregationGroupType = exports.AggregationGroupType || (exports.AggregationGroupType = {}));
|
|
9
|
-
//# sourceMappingURL=aggregation-group-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aggregation-group-type.enum.js","sourceRoot":"","sources":["../../../src/enums/aggregation-group/aggregation-group-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NumericAggregationRuleOperator = void 0;
|
|
4
|
-
var NumericAggregationRuleOperator;
|
|
5
|
-
(function (NumericAggregationRuleOperator) {
|
|
6
|
-
NumericAggregationRuleOperator["LessThan"] = "<";
|
|
7
|
-
NumericAggregationRuleOperator["Between"] = "between";
|
|
8
|
-
NumericAggregationRuleOperator["GreaterThanOrEqual"] = ">=";
|
|
9
|
-
})(NumericAggregationRuleOperator = exports.NumericAggregationRuleOperator || (exports.NumericAggregationRuleOperator = {}));
|
|
10
|
-
//# sourceMappingURL=numeric-aggregation-rule-operator.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numeric-aggregation-rule-operator.enum.js","sourceRoot":"","sources":["../../../src/enums/aggregation-group/numeric-aggregation-rule-operator.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,gDAAc,CAAA;IACd,qDAAmB,CAAA;IACnB,2DAAyB,CAAA;AAC3B,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { AggregationGroupMembershipMode } from '../enums/aggregation-group/aggregation-group-membership-mode.enum';
|
|
2
|
-
import { IAggregationGroup } from '../interfaces/aggregation-group/aggregation-group.interface';
|
|
3
|
-
export declare const getAggregationGroupMembershipMode: (aggregationGroup: Pick<IAggregationGroup, 'rules' | 'segments'>) => AggregationGroupMembershipMode;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAggregationGroupMembershipMode = void 0;
|
|
4
|
-
var aggregation_group_membership_mode_enum_1 = require("../enums/aggregation-group/aggregation-group-membership-mode.enum");
|
|
5
|
-
var getAggregationGroupMembershipMode = function (aggregationGroup) {
|
|
6
|
-
if (aggregationGroup.rules && aggregationGroup.rules.length > 0) {
|
|
7
|
-
return aggregation_group_membership_mode_enum_1.AggregationGroupMembershipMode.GroupByAttribute;
|
|
8
|
-
}
|
|
9
|
-
if (aggregationGroup.segments &&
|
|
10
|
-
Object.keys(aggregationGroup.segments).length > 0) {
|
|
11
|
-
return aggregation_group_membership_mode_enum_1.AggregationGroupMembershipMode.MatchByAttribute;
|
|
12
|
-
}
|
|
13
|
-
return aggregation_group_membership_mode_enum_1.AggregationGroupMembershipMode.Manual;
|
|
14
|
-
};
|
|
15
|
-
exports.getAggregationGroupMembershipMode = getAggregationGroupMembershipMode;
|
|
16
|
-
//# sourceMappingURL=get-aggregation-group-membership-mode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-aggregation-group-membership-mode.js","sourceRoot":"","sources":["../../src/helpers/get-aggregation-group-membership-mode.ts"],"names":[],"mappings":";;;AAAA,4HAAkH;AAG3G,IAAM,iCAAiC,GAAG,UAC/C,gBAA+D;IAE/D,IAAI,gBAAgB,CAAC,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QAC/D,OAAO,uEAA8B,CAAC,gBAAgB,CAAA;KACvD;IAED,IACE,gBAAgB,CAAC,QAAQ;QACzB,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EACjD;QACA,OAAO,uEAA8B,CAAC,gBAAgB,CAAA;KACvD;IAED,OAAO,uEAA8B,CAAC,MAAM,CAAA;AAC9C,CAAC,CAAA;AAfY,QAAA,iCAAiC,qCAe7C"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AggregationGroupType } from '../../enums/aggregation-group/aggregation-group-type.enum';
|
|
2
|
-
import { NumericAggregationRuleOperator } from '../../enums/aggregation-group/numeric-aggregation-rule-operator.enum';
|
|
3
|
-
export interface ICategoricalAggregationRule {
|
|
4
|
-
label: string;
|
|
5
|
-
in: string[];
|
|
6
|
-
}
|
|
7
|
-
export interface INumericAggregationRule {
|
|
8
|
-
label: string;
|
|
9
|
-
operator: NumericAggregationRuleOperator;
|
|
10
|
-
value?: number;
|
|
11
|
-
min?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
}
|
|
14
|
-
export type AggregationRule = ICategoricalAggregationRule | INumericAggregationRule;
|
|
15
|
-
export interface IAggregationGroupNumericConfig {
|
|
16
|
-
unit: string;
|
|
17
|
-
precision: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IAggregationGroup {
|
|
20
|
-
referenceId: string;
|
|
21
|
-
name: string;
|
|
22
|
-
system: boolean;
|
|
23
|
-
type: AggregationGroupType;
|
|
24
|
-
fallbackValue: string;
|
|
25
|
-
segments?: {
|
|
26
|
-
[segmentReferenceId: string]: string;
|
|
27
|
-
} | null;
|
|
28
|
-
global?: string | null;
|
|
29
|
-
rules?: AggregationRule[] | null;
|
|
30
|
-
numeric?: IAggregationGroupNumericConfig | null;
|
|
31
|
-
assignments?: {
|
|
32
|
-
[productReferenceId: string]: string;
|
|
33
|
-
} | null;
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aggregation-group.interface.js","sourceRoot":"","sources":["../../../src/interfaces/aggregation-group/aggregation-group.interface.ts"],"names":[],"mappings":""}
|