@buynomics-lib/bn-shared 1.17.7 → 1.17.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.17.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.7...v1.17.8) (2024-06-11)
6
+
5
7
  ### [1.17.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.6...v1.17.7) (2024-05-31)
6
8
 
7
9
  ### [1.17.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.5...v1.17.6) (2024-05-29)
@@ -0,0 +1,2 @@
1
+ import { ClientFeatures } from '../enums/client/client-features';
2
+ export declare const DefaultClientFeatures: ClientFeatures;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DefaultClientFeatures = void 0;
5
+ var client_features_1 = require("../enums/client/client-features");
6
+ exports.DefaultClientFeatures = (_a = {},
7
+ _a[client_features_1.ClientFeature.PriceLevels] = client_features_1.ClientFeatureState.Hidden,
8
+ _a[client_features_1.ClientFeature.ChangeProducts] = client_features_1.ClientFeatureState.Hidden,
9
+ _a[client_features_1.ClientFeature.ChangeCosts] = client_features_1.ClientFeatureState.Hidden,
10
+ _a[client_features_1.ClientFeature.ChangePromotions] = client_features_1.ClientFeatureState.Hidden,
11
+ _a[client_features_1.ClientFeature.Optimization] = client_features_1.ClientFeatureState.Hidden,
12
+ _a);
13
+ //# sourceMappingURL=default-client-features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-client-features.js","sourceRoot":"","sources":["../../src/helpers/default-client-features.ts"],"names":[],"mappings":";;;;AAAA,mEAIwC;AAE3B,QAAA,qBAAqB;IAChC,GAAC,+BAAa,CAAC,WAAW,IAAG,oCAAkB,CAAC,MAAM;IACtD,GAAC,+BAAa,CAAC,cAAc,IAAG,oCAAkB,CAAC,MAAM;IACzD,GAAC,+BAAa,CAAC,WAAW,IAAG,oCAAkB,CAAC,MAAM;IACtD,GAAC,+BAAa,CAAC,gBAAgB,IAAG,oCAAkB,CAAC,MAAM;IAC3D,GAAC,+BAAa,CAAC,YAAY,IAAG,oCAAkB,CAAC,MAAM;QACxD"}
package/build/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import { ValueDriverType } from './enums/segment/value-driver/value-driver-type'
36
36
  import { calculateRange } from './helpers/calculate-range';
37
37
  import { getLatestDeeperionVersionValue } from './helpers/deeperion/get-latest-deeperion-version';
38
38
  import { DefaultClientFeaturesSettings } from './helpers/default-client-feature-settings';
39
+ import { DefaultClientFeatures } from './helpers/default-client-features';
39
40
  import EnumHelper from './helpers/enum-helper';
40
41
  import FormulaConverter from './helpers/formula/formula-converter';
41
42
  import FormulaValidator from './helpers/formula/formula-validator/formula-validator';
@@ -45,4 +46,4 @@ import PriceDecisionNullificationHelper from './helpers/price-decision/price-dec
45
46
  import { IClientViewSettings } from './interfaces/client-view-settings';
46
47
  import { IFileUpload } from './interfaces/file-upload';
47
48
  import { ISimulationInputChangeEvents } from './interfaces/simulation/simulation-input-change-events';
48
- export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, };
49
+ export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, DefaultClientFeatures, };
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormulaConverter = exports.FormulaValidator = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.expressionToJSONFormula = exports.JSONFormulaToExpression = exports.calculateRange = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = 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.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 = void 0;
7
- exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = void 0;
7
+ exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = void 0;
8
8
  var fitting_statuses_1 = require("./domains/fitting/enums/fitting-statuses");
9
9
  Object.defineProperty(exports, "FittingStatuses", { enumerable: true, get: function () { return fitting_statuses_1.FittingStatuses; } });
10
10
  var intermediary_group_range_formats_1 = require("./domains/pricing/intermediaries/enums/intermediary-group-range-formats");
@@ -85,6 +85,8 @@ var get_latest_deeperion_version_1 = require("./helpers/deeperion/get-latest-dee
85
85
  Object.defineProperty(exports, "getLatestDeeperionVersionValue", { enumerable: true, get: function () { return get_latest_deeperion_version_1.getLatestDeeperionVersionValue; } });
86
86
  var default_client_feature_settings_1 = require("./helpers/default-client-feature-settings");
87
87
  Object.defineProperty(exports, "DefaultClientFeaturesSettings", { enumerable: true, get: function () { return default_client_feature_settings_1.DefaultClientFeaturesSettings; } });
88
+ var default_client_features_1 = require("./helpers/default-client-features");
89
+ Object.defineProperty(exports, "DefaultClientFeatures", { enumerable: true, get: function () { return default_client_features_1.DefaultClientFeatures; } });
88
90
  var enum_helper_1 = __importDefault(require("./helpers/enum-helper"));
89
91
  exports.EnumHelper = enum_helper_1.default;
90
92
  var formula_converter_1 = __importDefault(require("./helpers/formula/formula-converter"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,6EAA0E;AAoGxE,gGApGO,kCAAe,OAoGP;AAjGjB,4HAAuH;AAgGrH,8GAhGO,gEAA6B,OAgGP;AA/F/B,4GAAwG;AA8FtG,uGA9FO,iDAAsB,OA8FP;AA7FxB,oFAAoF;AAwIlF,oGAxIO,uCAAmB,OAwIP;AAtIrB,mGAA+F;AA6G7F,wGA7GO,mDAAuB,OA6GP;AA5GzB,6DAAiE;AA6F/D,uGA7FO,yCAAsB,OA6FP;AA5FxB,wEAAuE;AA+FrE,oGA/FO,wCAAmB,OA+FP;AA9FrB,wEAAoE;AAkFlE,iGAlFO,qCAAgB,OAkFP;AAjFlB,gFAG8C;AA+E5C,oGAjFA,4CAAmB,OAiFA;AACnB,gHAjFA,wDAA+B,OAiFA;AA/EjC,kFAG+C;AA6E7C,sGA/EA,+CAAqB,OA+EA;AACrB,6GA/EA,sDAA4B,OA+EA;AA5E9B,oFAAgF;AAqF9E,uGArFO,iDAAsB,OAqFP;AApFxB,kEAMuC;AAkFrC,8FAvFA,+BAAa,OAuFA;AACb,mGAvFA,oCAA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AAtEhC,6FAAyF;AAgFvF,8GAhFO,+DAA6B,OAgFP;AA/E/B,6EAAyE;AAgFvE,sGAhFO,+CAAqB,OAgFP;AA/EvB,sEAA8C;AAsE5C,qBAtEK,qBAAU,CAsEL;AArEZ,0FAAkE;AAyEhE,2BAzEK,2BAAgB,CAyEL;AAxElB,4GAAoF;AAuElF,2BAvEK,2BAAgB,CAuEL;AAtElB,2FAGqD;AA6DnD,wGA/DA,oDAAuB,OA+DA;AADvB,wGA7DA,oDAAuB,OA6DA;AA3DzB,iEAA6D;AAgE3D,gGAhEO,mCAAe,OAgEP;AA/DjB,yGAA6F;AAgE3F,2CAhEK,+BAAgC,CAgEL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buynomics-lib/bn-shared",
3
- "version": "1.17.7",
3
+ "version": "1.17.8",
4
4
  "description": "Shared functionality between API and UI",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",