@buynomics-lib/bn-shared 1.16.14 → 1.16.15-feature-nx64-1380.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.
@@ -1,5 +1,6 @@
1
1
  export declare enum ClientFeature {
2
2
  PriceLevels = "priceLevels",
3
+ ChangePrices = "changePrices",
3
4
  ChangeProducts = "changeProducts",
4
5
  ChangeCosts = "changeCosts",
5
6
  ChangePromotions = "changePromotions"
@@ -12,3 +13,13 @@ export declare enum ClientFeatureState {
12
13
  export type ClientFeatures = {
13
14
  [key in ClientFeature]?: ClientFeatureState;
14
15
  };
16
+ export declare enum ClientFeatureScope {
17
+ Segment = "segment",
18
+ Subsegment = "subsegment",
19
+ SalesChannel = "salesChannel"
20
+ }
21
+ export type ClientFeaturesScopeLimits = {
22
+ [feature in ClientFeature]?: {
23
+ [scope in ClientFeatureScope]?: number;
24
+ };
25
+ };
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientFeatureState = exports.ClientFeature = void 0;
3
+ exports.ClientFeatureScope = exports.ClientFeatureState = exports.ClientFeature = void 0;
4
4
  var ClientFeature;
5
5
  (function (ClientFeature) {
6
6
  ClientFeature["PriceLevels"] = "priceLevels";
7
+ ClientFeature["ChangePrices"] = "changePrices";
7
8
  ClientFeature["ChangeProducts"] = "changeProducts";
8
9
  ClientFeature["ChangeCosts"] = "changeCosts";
9
10
  ClientFeature["ChangePromotions"] = "changePromotions";
@@ -14,4 +15,10 @@ var ClientFeatureState;
14
15
  ClientFeatureState["Disabled"] = "disabled";
15
16
  ClientFeatureState["Hidden"] = "hidden";
16
17
  })(ClientFeatureState = exports.ClientFeatureState || (exports.ClientFeatureState = {}));
18
+ var ClientFeatureScope;
19
+ (function (ClientFeatureScope) {
20
+ ClientFeatureScope["Segment"] = "segment";
21
+ ClientFeatureScope["Subsegment"] = "subsegment";
22
+ ClientFeatureScope["SalesChannel"] = "salesChannel";
23
+ })(ClientFeatureScope = exports.ClientFeatureScope || (exports.ClientFeatureScope = {}));
17
24
  //# sourceMappingURL=client-features.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-features.js","sourceRoot":"","sources":["../../../src/enums/client/client-features.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,kDAAiC,CAAA;IACjC,4CAA2B,CAAA;IAC3B,sDAAqC,CAAA;AACvC,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;AACnB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
1
+ {"version":3,"file":"client-features.js","sourceRoot":"","sources":["../../../src/enums/client/client-features.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,8CAA6B,CAAA;IAC7B,kDAAiC,CAAA;IACjC,4CAA2B,CAAA;IAC3B,sDAAqC,CAAA;AACvC,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;AACnB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAMD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,+CAAyB,CAAA;IACzB,mDAA6B,CAAA;AAC/B,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
package/build/index.d.ts CHANGED
@@ -37,8 +37,8 @@ import { ClientDuplicationParts } from './enums/client/client-duplication-parts'
37
37
  import { PriceChangeTypes } from './enums/price-change/price-change-types';
38
38
  import { ChangePriceBases } from './enums/price-change/change-price-bases';
39
39
  import { ChangeProductPriceBases } from './enums/product-change/change-product-price-bases';
40
- import { ClientFeature, ClientFeatureState, ClientFeatures } from './enums/client/client-features';
40
+ import { ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesScopeLimits } from './enums/client/client-features';
41
41
  import { ChangeCostBases } from './enums/cost-change/change-cost-bases';
42
42
  import { CostChangeTypes } from './enums/cost-change/cost-change-types';
43
43
  import { AvailabilityChangeTypes } from './enums/availability-change/availability-change-types';
44
- export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, 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, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, };
44
+ export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, 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, ClientFeaturesScopeLimits, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, };
package/build/index.js CHANGED
@@ -3,7 +3,7 @@ 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.ClientViewSettingsPages = exports.getPromotionPeriods = exports.FormulaConverter = exports.FormulaValidator = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.expressionToJSONFormula = exports.JSONFormulaToExpression = exports.calculateRange = exports.ClientIndustry = exports.ClientStatus = exports.AvailabilityChangeTypes = exports.CostChangeTypes = exports.ChangeCostBases = 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.PriceLevelTypes = exports.SortableProductFields = exports.ConfigurableProductFields = exports.BnPermissions = void 0;
6
+ exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.FormulaConverter = exports.FormulaValidator = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.expressionToJSONFormula = exports.JSONFormulaToExpression = exports.calculateRange = 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.PriceLevelTypes = exports.SortableProductFields = exports.ConfigurableProductFields = exports.BnPermissions = void 0;
7
7
  var client_clv_periods_1 = require("./enums/client/client-clv-periods");
8
8
  Object.defineProperty(exports, "ClientCLVPeriods", { enumerable: true, get: function () { return client_clv_periods_1.ClientCLVPeriods; } });
9
9
  var promotion_periods_1 = require("./domains/promotions/helpers/promotion-periods");
@@ -79,6 +79,7 @@ Object.defineProperty(exports, "ChangeProductPriceBases", { enumerable: true, ge
79
79
  var client_features_1 = require("./enums/client/client-features");
80
80
  Object.defineProperty(exports, "ClientFeature", { enumerable: true, get: function () { return client_features_1.ClientFeature; } });
81
81
  Object.defineProperty(exports, "ClientFeatureState", { enumerable: true, get: function () { return client_features_1.ClientFeatureState; } });
82
+ Object.defineProperty(exports, "ClientFeatureScope", { enumerable: true, get: function () { return client_features_1.ClientFeatureScope; } });
82
83
  var change_cost_bases_1 = require("./enums/cost-change/change-cost-bases");
83
84
  Object.defineProperty(exports, "ChangeCostBases", { enumerable: true, get: function () { return change_cost_bases_1.ChangeCostBases; } });
84
85
  var cost_change_types_1 = require("./enums/cost-change/cost-change-types");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAoE;AAgFlE,iGAhFO,qCAAgB,OAgFP;AA/ElB,oFAAoF;AAyHlF,oGAzHO,uCAAmB,OAyHP;AAvHrB,6EAA0E;AAqFxE,gGArFO,kCAAe,OAqFP;AAlFjB,4HAAuH;AAiFrH,8GAjFO,gEAA6B,OAiFP;AAhF/B,4GAAwG;AA+EtG,uGA/EO,iDAAsB,OA+EP;AA9ExB,gFAG8C;AAsE5C,oGAxEA,4CAAmB,OAwEA;AACnB,gHAxEA,wDAA+B,OAwEA;AAtEjC,kFAG+C;AAoE7C,sGAtEA,+CAAqB,OAsEA;AACrB,6GAtEA,sDAA4B,OAsEA;AApE9B,4DAGoC;AA2DlC,4FA7DA,0BAAW,OA6DA;AACX,wGA7DA,sCAAuB,OA6DA;AA3DzB,4DAAyD;AAiEvD,4FAjEO,0BAAW,OAiEP;AAhEb,4EAA6E;AAsG3E,wGAtGO,8CAAuB,OAsGP;AArGzB,+CAK0B;AA8CxB,kGAlDA,6BAAiB,OAkDA;AACjB,yGAlDA,oCAAwB,OAkDA;AACxB,sGAlDA,iCAAqB,OAkDA;AACrB,oGAlDA,+BAAmB,OAkDA;AAhDrB,mDAAmD;AAyCjD,8FAzCO,2BAAa,OAyCP;AAxCf,2EAAuE;AA2CrE,gGA3CO,mCAAe,OA2CP;AA1CjB,yFA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K,2BAAgB,CAqFL;AApFlB,4GAAoF;AAmFlF,2BAnFK,2BAAgB,CAmFL;AAlFlB,2FAGqD;AAyEnD,wGA3EA,oDAAuB,OA2EA;AADvB,wGAzEA,oDAAuB,OAyEA;AAvEzB,iEAA6D;AA4E3D,gGA5EO,mCAAe,OA4EP;AA3EjB,yGAA6F;AA4E3F,2CA5EK,+BAAgC,CA4EL;AAvElC,wEAAuE;AA0CrE,oGA1CO,wCAAmB,OA0CP;AAzCrB,8DAA2D;AAsDzD,6FAtDO,4BAAY,OAsDP;AArDd,kEAA+D;AAsD7D,+FAtDO,gCAAc,OAsDP;AArDhB,oFAAgF;AAwC9E,uGAxCO,iDAAsB,OAwCP;AAvCxB,8EAA0E;AAwCxE,iGAxCO,qCAAgB,OAwCP;AAvClB,8EAA0E;AAwCxE,iGAxCO,qCAAgB,OAwCP;AAvClB,gGAA2F;AAwCzF,wGAxCO,oDAAuB,OAwCP;AAvCzB,kEAMuC;AAkCrC,8FAvCA,+BAAa,OAuCA;AACb,mGAvCA,oCAAkB,OAuCA;AAElB,mGAvCA,oCAAkB,OAuCA;AApCpB,2EAAuE;AAsCrE,gGAtCO,mCAAe,OAsCP;AArCjB,2EAAuE;AAsCrE,gGAtCO,mCAAe,OAsCP;AArCjB,mGAA+F;AAsC7F,wGAtCO,mDAAuB,OAsCP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buynomics-lib/bn-shared",
3
- "version": "1.16.14",
3
+ "version": "1.16.15-feature-nx64-1380.0",
4
4
  "description": "Shared functionality between API and UI",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",