@buynomics-lib/bn-shared 1.16.21-feature-nx64-1561.0 → 1.16.21-feature-nx64-1561.2

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.
@@ -27,7 +27,7 @@ type ClientFeaturesScopeLimits = {
27
27
  };
28
28
  };
29
29
  type ClientFeaturesPriceLimits = {
30
- [ClientFeature.Optimization]: {
30
+ [ClientFeature.Optimization]?: {
31
31
  priceChange: {
32
32
  min: number;
33
33
  max: number;
@@ -1,9 +1,2 @@
1
- export declare const DefaultClientFeaturesSettings: {
2
- changeProducts: {
3
- segment: number;
4
- };
5
- changePromotions: {
6
- salesChannel: number;
7
- timeDimension: number;
8
- };
9
- };
1
+ import { ClientFeaturesSettings } from '../enums/client/client-features';
2
+ export declare const DefaultClientFeaturesSettings: ClientFeaturesSettings;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _a, _b, _c;
2
+ var _a, _b, _c, _d;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.DefaultClientFeaturesSettings = void 0;
5
5
  var client_features_1 = require("../enums/client/client-features");
@@ -9,5 +9,12 @@ exports.DefaultClientFeaturesSettings = (_a = {},
9
9
  _c[client_features_1.ClientFeatureScope.SalesChannel] = 1,
10
10
  _c[client_features_1.ClientFeatureScope.TimeDimension] = 52,
11
11
  _c),
12
+ _a[client_features_1.ClientFeature.Optimization] = (_d = {},
13
+ _d[client_features_1.ClientFeatureScope.Segment] = 1,
14
+ _d.priceChange = {
15
+ min: -30,
16
+ max: 30,
17
+ },
18
+ _d),
12
19
  _a);
13
20
  //# sourceMappingURL=default-client-feature-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-client-feature-settings.js","sourceRoot":"","sources":["../../src/helpers/default-client-feature-settings.ts"],"names":[],"mappings":";;;;AAAA,mEAGwC;AAE3B,QAAA,6BAA6B;IACxC,GAAC,+BAAa,CAAC,cAAc,cAAK,GAAC,oCAAkB,CAAC,OAAO,IAAG,CAAC,KAAE;IACnE,GAAC,+BAAa,CAAC,gBAAgB;QAC7B,GAAC,oCAAkB,CAAC,YAAY,IAAG,CAAC;QACpC,GAAC,oCAAkB,CAAC,aAAa,IAAG,EAAE;WACvC;QACF"}
1
+ {"version":3,"file":"default-client-feature-settings.js","sourceRoot":"","sources":["../../src/helpers/default-client-feature-settings.ts"],"names":[],"mappings":";;;;AAAA,mEAIwC;AAE3B,QAAA,6BAA6B;IACxC,GAAC,+BAAa,CAAC,cAAc,cAAK,GAAC,oCAAkB,CAAC,OAAO,IAAG,CAAC,KAAE;IACnE,GAAC,+BAAa,CAAC,gBAAgB;QAC7B,GAAC,oCAAkB,CAAC,YAAY,IAAG,CAAC;QACpC,GAAC,oCAAkB,CAAC,aAAa,IAAG,EAAE;WACvC;IACD,GAAC,+BAAa,CAAC,YAAY;QACzB,GAAC,oCAAkB,CAAC,OAAO,IAAG,CAAC;QAC/B,cAAW,GAAE;YACX,GAAG,EAAE,CAAC,EAAE;YACR,GAAG,EAAE,EAAE;SACR;WACF;QACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buynomics-lib/bn-shared",
3
- "version": "1.16.21-feature-nx64-1561.0",
3
+ "version": "1.16.21-feature-nx64-1561.2",
4
4
  "description": "Shared functionality between API and UI",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",