@buynomics-lib/bn-shared 1.17.37-feature-brz-707.3 → 1.17.37-feature-brz-707.4
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/index.d.ts +1 -4
- package/build/index.js +2 -9
- package/build/index.js.map +1 -1
- package/package.json +2 -6
- package/CHANGELOG.md +0 -340
- package/build/helpers/formula/formula-converter.d.ts +0 -4
- package/build/helpers/formula/formula-converter.js +0 -6
- package/build/helpers/formula/formula-converter.js.map +0 -1
- package/build/helpers/formula/formula-validator/formula-validator.d.ts +0 -9
- package/build/helpers/formula/formula-validator/formula-validator.js +0 -62
- package/build/helpers/formula/formula-validator/formula-validator.js.map +0 -1
- package/build/helpers/formula/formula-validator/formula-validator.test.d.ts +0 -1
- package/build/helpers/formula/formula-validator/formula-validator.test.js +0 -63
- package/build/helpers/formula/formula-validator/formula-validator.test.js.map +0 -1
- package/build/helpers/formula/json-formula-to-expression.d.ts +0 -14
- package/build/helpers/formula/json-formula-to-expression.js +0 -45
- package/build/helpers/formula/json-formula-to-expression.js.map +0 -1
- package/build/helpers/generate-random.d.ts +0 -5
- package/build/helpers/generate-random.js +0 -15
- package/build/helpers/generate-random.js.map +0 -1
- package/build/helpers/generate-random.test.d.ts +0 -1
- package/build/helpers/generate-random.test.js +0 -32
- package/build/helpers/generate-random.test.js.map +0 -1
package/build/index.d.ts
CHANGED
|
@@ -39,9 +39,6 @@ import { getLatestDeeperionVersionValue } from './helpers/deeperion/get-latest-d
|
|
|
39
39
|
import { DefaultClientFeaturesSettings } from './helpers/default-client-feature-settings';
|
|
40
40
|
import { DefaultClientFeatures } from './helpers/default-client-features';
|
|
41
41
|
import EnumHelper from './helpers/enum-helper';
|
|
42
|
-
import FormulaConverter from './helpers/formula/formula-converter';
|
|
43
|
-
import FormulaValidator from './helpers/formula/formula-validator/formula-validator';
|
|
44
|
-
import { expressionToJSONFormula, JSONFormulaToExpression } from './helpers/formula/json-formula-to-expression';
|
|
45
42
|
import { getPropertyName } from './helpers/get-property-name';
|
|
46
43
|
import PriceDecisionNullificationHelper from './helpers/price-decision/price-decision-helper';
|
|
47
44
|
import { IClientViewSettings } from './interfaces/client-view-settings';
|
|
@@ -53,4 +50,4 @@ import { formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals }
|
|
|
53
50
|
import { MechanicParamTypes } from './enums/promotion-offer/mechanic-param-types';
|
|
54
51
|
import { MechanicTypeRelations } from './enums/promotion-offer/mechanic-type-relations';
|
|
55
52
|
import { WebsocketEvents } from './enums/websocket/websocket-events';
|
|
56
|
-
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, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, MechanicParamTypes, MechanicTypeRelations, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange,
|
|
53
|
+
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, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, MechanicParamTypes, MechanicTypeRelations, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, };
|
package/build/index.js
CHANGED
|
@@ -3,8 +3,8 @@ 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.
|
|
7
|
-
exports.WebsocketEvents = exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.
|
|
6
|
+
exports.getLatestDeeperionVersionValue = exports.calculateRange = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = exports.MechanicTypeRelations = exports.MechanicParamTypes = 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 = void 0;
|
|
7
|
+
exports.WebsocketEvents = exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = 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");
|
|
@@ -91,13 +91,6 @@ var default_client_features_1 = require("./helpers/default-client-features");
|
|
|
91
91
|
Object.defineProperty(exports, "DefaultClientFeatures", { enumerable: true, get: function () { return default_client_features_1.DefaultClientFeatures; } });
|
|
92
92
|
var enum_helper_1 = __importDefault(require("./helpers/enum-helper"));
|
|
93
93
|
exports.EnumHelper = enum_helper_1.default;
|
|
94
|
-
var formula_converter_1 = __importDefault(require("./helpers/formula/formula-converter"));
|
|
95
|
-
exports.FormulaConverter = formula_converter_1.default;
|
|
96
|
-
var formula_validator_1 = __importDefault(require("./helpers/formula/formula-validator/formula-validator"));
|
|
97
|
-
exports.FormulaValidator = formula_validator_1.default;
|
|
98
|
-
var json_formula_to_expression_1 = require("./helpers/formula/json-formula-to-expression");
|
|
99
|
-
Object.defineProperty(exports, "expressionToJSONFormula", { enumerable: true, get: function () { return json_formula_to_expression_1.expressionToJSONFormula; } });
|
|
100
|
-
Object.defineProperty(exports, "JSONFormulaToExpression", { enumerable: true, get: function () { return json_formula_to_expression_1.JSONFormulaToExpression; } });
|
|
101
94
|
var get_property_name_1 = require("./helpers/get-property-name");
|
|
102
95
|
Object.defineProperty(exports, "getPropertyName", { enumerable: true, get: function () { return get_property_name_1.getPropertyName; } });
|
|
103
96
|
var price_decision_helper_1 = __importDefault(require("./helpers/price-decision/price-decision-helper"));
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,6EAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,6EAA0E;AAkHxE,gGAlHO,kCAAe,OAk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EAAmC,OAyEA;AACnC,gHAzEA,2EAA+B,OAyEA;AAvEjC,qFAAiF;AAuD/E,mGAvDO,yCAAkB,OAuDP;AAtDpB,2FAAuF;AAuDrF,sGAvDO,+CAAqB,OAuDP;AAtDvB,uEAAoE;AA+ElE,gGA/EO,kCAAe,OA+EP"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buynomics-lib/bn-shared",
|
|
3
|
-
"version": "1.17.37-feature-brz-707.
|
|
3
|
+
"version": "1.17.37-feature-brz-707.4",
|
|
4
4
|
"description": "Shared functionality between API and UI",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"lint": "tslint -p tsconfig.json",
|
|
10
10
|
"test": "jest --config jestconfig.json",
|
|
11
|
-
"prepare": "npm run build"
|
|
12
|
-
"prepublishOnly": "npm test && npm run lint",
|
|
13
|
-
"preversion": "npm run lint",
|
|
14
|
-
"version": "npm run format && git add -A src",
|
|
15
|
-
"postversion": "git push && git push --tags"
|
|
11
|
+
"prepare": "npm run build"
|
|
16
12
|
},
|
|
17
13
|
"author": "@buynomics",
|
|
18
14
|
"license": "UNLICENSED",
|
package/CHANGELOG.md
DELETED
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
### [1.17.37](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.36...v1.17.37) (2025-07-17)
|
|
6
|
-
|
|
7
|
-
### [1.17.36](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.36-feature-brz-420.2...v1.17.36) (2025-06-27)
|
|
8
|
-
|
|
9
|
-
### [1.17.35](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.35-feature-hc-2453.0...v1.17.35) (2025-06-11)
|
|
10
|
-
|
|
11
|
-
### [1.17.34](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.34-feature-hc-2589.3...v1.17.34) (2025-06-03)
|
|
12
|
-
|
|
13
|
-
### [1.17.33](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.33-feature-brz-425.1...v1.17.33) (2025-05-22)
|
|
14
|
-
|
|
15
|
-
### [1.17.32](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.32-feature-hc-2483.2...v1.17.32) (2025-04-23)
|
|
16
|
-
|
|
17
|
-
### [1.17.31](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.30...v1.17.31) (2025-04-16)
|
|
18
|
-
|
|
19
|
-
### [1.17.30](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.29...v1.17.30) (2025-04-03)
|
|
20
|
-
|
|
21
|
-
### [1.17.29](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.28...v1.17.29) (2025-03-17)
|
|
22
|
-
|
|
23
|
-
### [1.17.28](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.27...v1.17.28) (2025-02-24)
|
|
24
|
-
|
|
25
|
-
### [1.17.27](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.27-feature-hc-2372.1...v1.17.27) (2025-02-21)
|
|
26
|
-
|
|
27
|
-
### [1.17.26](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.25...v1.17.26) (2025-01-20)
|
|
28
|
-
|
|
29
|
-
### [1.17.25](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.24...v1.17.25) (2025-01-20)
|
|
30
|
-
|
|
31
|
-
### [1.17.24](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.23...v1.17.24) (2025-01-07)
|
|
32
|
-
|
|
33
|
-
### [1.17.23](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.22...v1.17.23) (2025-01-07)
|
|
34
|
-
|
|
35
|
-
### [1.17.22](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.20...v1.17.22) (2025-01-02)
|
|
36
|
-
|
|
37
|
-
### [1.17.20](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.19...v1.17.20) (2024-12-20)
|
|
38
|
-
|
|
39
|
-
### [1.17.19](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.18...v1.17.19) (2024-12-19)
|
|
40
|
-
|
|
41
|
-
### [1.17.18](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.17...v1.17.18) (2024-11-21)
|
|
42
|
-
|
|
43
|
-
### [1.17.17](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.16...v1.17.17) (2024-10-08)
|
|
44
|
-
|
|
45
|
-
### [1.17.16](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.15...v1.17.16) (2024-09-16)
|
|
46
|
-
|
|
47
|
-
### [1.17.15](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.14...v1.17.15) (2024-08-30)
|
|
48
|
-
|
|
49
|
-
### [1.17.14](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.13...v1.17.14) (2024-08-14)
|
|
50
|
-
|
|
51
|
-
### [1.17.13](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.12...v1.17.13) (2024-08-01)
|
|
52
|
-
|
|
53
|
-
### [1.17.12](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.11...v1.17.12) (2024-07-30)
|
|
54
|
-
|
|
55
|
-
### [1.17.11](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.10...v1.17.11) (2024-07-29)
|
|
56
|
-
|
|
57
|
-
### [1.17.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.9...v1.17.10) (2024-07-29)
|
|
58
|
-
|
|
59
|
-
### [1.17.9](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.8...v1.17.9) (2024-07-11)
|
|
60
|
-
|
|
61
|
-
### [1.17.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.7...v1.17.8) (2024-06-11)
|
|
62
|
-
|
|
63
|
-
### [1.17.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.6...v1.17.7) (2024-05-31)
|
|
64
|
-
|
|
65
|
-
### [1.17.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.5...v1.17.6) (2024-05-29)
|
|
66
|
-
|
|
67
|
-
### [1.17.5](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.4...v1.17.5) (2024-05-24)
|
|
68
|
-
|
|
69
|
-
### [1.17.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.3...v1.17.4) (2024-05-07)
|
|
70
|
-
|
|
71
|
-
### [1.17.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.2...v1.17.3) (2024-04-10)
|
|
72
|
-
|
|
73
|
-
### [1.17.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.17.1...v1.17.2) (2024-04-04)
|
|
74
|
-
|
|
75
|
-
### [1.17.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.20...v1.17.1) (2024-03-25)
|
|
76
|
-
|
|
77
|
-
### [1.16.20](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.18...v1.16.20) (2024-02-29)
|
|
78
|
-
|
|
79
|
-
### [1.16.18](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.17...v1.16.18) (2024-02-27)
|
|
80
|
-
|
|
81
|
-
### [1.16.17](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.16...v1.16.17) (2024-02-20)
|
|
82
|
-
|
|
83
|
-
### [1.16.16](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.15...v1.16.16) (2024-01-30)
|
|
84
|
-
|
|
85
|
-
### [1.16.15](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.14...v1.16.15) (2024-01-30)
|
|
86
|
-
|
|
87
|
-
### [1.16.14](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.14-feature-nx64-1344.1...v1.16.14) (2024-01-05)
|
|
88
|
-
|
|
89
|
-
### [1.16.13](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.12...v1.16.13) (2023-11-22)
|
|
90
|
-
|
|
91
|
-
### [1.16.12](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.12-nx64-624-remove-v2-only.0...v1.16.12) (2023-10-20)
|
|
92
|
-
|
|
93
|
-
### [1.16.11](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.10...v1.16.11) (2023-10-19)
|
|
94
|
-
|
|
95
|
-
### [1.16.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.9...v1.16.10) (2023-10-12)
|
|
96
|
-
|
|
97
|
-
### [1.16.9](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.8...v1.16.9) (2023-10-12)
|
|
98
|
-
|
|
99
|
-
### [1.16.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.7...v1.16.8) (2023-09-28)
|
|
100
|
-
|
|
101
|
-
### [1.16.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.6...v1.16.7) (2023-09-08)
|
|
102
|
-
|
|
103
|
-
### [1.16.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.5...v1.16.6) (2023-08-31)
|
|
104
|
-
|
|
105
|
-
### [1.16.5](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.4...v1.16.5) (2023-08-24)
|
|
106
|
-
|
|
107
|
-
### [1.16.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.3...v1.16.4) (2023-08-16)
|
|
108
|
-
|
|
109
|
-
### [1.16.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.2...v1.16.3) (2023-08-03)
|
|
110
|
-
|
|
111
|
-
### [1.16.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.16.1...v1.16.2) (2023-07-17)
|
|
112
|
-
|
|
113
|
-
### [1.16.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.16...v1.16.1) (2023-06-05)
|
|
114
|
-
|
|
115
|
-
### [1.15.16](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.15...v1.15.16) (2023-06-01)
|
|
116
|
-
|
|
117
|
-
### [1.15.15](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.14...v1.15.15) (2023-04-17)
|
|
118
|
-
|
|
119
|
-
### [1.15.14](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.13...v1.15.14) (2023-04-13)
|
|
120
|
-
|
|
121
|
-
### [1.15.13](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.12-feature-nx32-1463.0...v1.15.13) (2023-03-31)
|
|
122
|
-
|
|
123
|
-
### [1.15.11](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.10...v1.15.11) (2023-02-21)
|
|
124
|
-
|
|
125
|
-
### [1.15.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.9...v1.15.10) (2023-01-11)
|
|
126
|
-
|
|
127
|
-
### [1.15.9](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.8...v1.15.9) (2023-01-06)
|
|
128
|
-
|
|
129
|
-
### [1.15.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.7...v1.15.8) (2022-12-30)
|
|
130
|
-
|
|
131
|
-
### [1.15.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.6...v1.15.7) (2022-12-02)
|
|
132
|
-
|
|
133
|
-
### [1.15.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.4...v1.15.6) (2022-11-16)
|
|
134
|
-
|
|
135
|
-
### [1.15.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.3...v1.15.4) (2022-11-08)
|
|
136
|
-
|
|
137
|
-
### [1.15.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.2...v1.15.3) (2022-10-28)
|
|
138
|
-
|
|
139
|
-
### [1.15.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.1...v1.15.2) (2022-10-24)
|
|
140
|
-
|
|
141
|
-
### [1.15.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.15.0...v1.15.1) (2022-08-30)
|
|
142
|
-
|
|
143
|
-
## [1.15.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.14.0...v1.15.0) (2022-07-05)
|
|
144
|
-
|
|
145
|
-
## [1.14.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.13.1...v1.14.0) (2022-07-01)
|
|
146
|
-
|
|
147
|
-
### [1.13.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.11...v1.13.1) (2022-06-23)
|
|
148
|
-
|
|
149
|
-
### [1.12.11](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.10...v1.12.11) (2022-05-10)
|
|
150
|
-
|
|
151
|
-
### [1.12.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.9...v1.12.10) (2022-04-12)
|
|
152
|
-
|
|
153
|
-
### [1.12.9](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.8...v1.12.9) (2022-02-22)
|
|
154
|
-
|
|
155
|
-
### [1.12.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.7...v1.12.8) (2022-02-15)
|
|
156
|
-
|
|
157
|
-
### [1.12.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.7-hotfix-bd-1066.0...v1.12.7) (2021-11-24)
|
|
158
|
-
|
|
159
|
-
### [1.12.5](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.4...v1.12.5) (2021-11-18)
|
|
160
|
-
|
|
161
|
-
### [1.12.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.3...v1.12.4) (2021-10-12)
|
|
162
|
-
|
|
163
|
-
### [1.12.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.2...v1.12.3) (2021-10-06)
|
|
164
|
-
|
|
165
|
-
### [1.12.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.1...v1.12.2) (2021-07-27)
|
|
166
|
-
|
|
167
|
-
### [1.12.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.1-hotfix-bd-782.0...v1.12.1) (2021-07-07)
|
|
168
|
-
|
|
169
|
-
## [1.12.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.12.0-review.2...v1.12.0) (2021-07-02)
|
|
170
|
-
|
|
171
|
-
### [1.11.11](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.7...v1.11.11) (2021-06-08)
|
|
172
|
-
|
|
173
|
-
### [1.11.7-review.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.7-review.1...v1.11.7-review.2) (2021-06-08)
|
|
174
|
-
|
|
175
|
-
### [1.11.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.7-review.1...v1.11.7) (2021-06-08)
|
|
176
|
-
|
|
177
|
-
### [1.11.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.9...v1.11.10) (2021-06-08)
|
|
178
|
-
|
|
179
|
-
### [1.11.10](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.9...v1.11.10) (2021-06-08)
|
|
180
|
-
|
|
181
|
-
### [1.11.9](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.8...v1.11.9) (2021-05-20)
|
|
182
|
-
|
|
183
|
-
### [1.11.8](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.6-fix-bd-704-excluded-project-simulation.0...v1.11.8) (2021-05-18)
|
|
184
|
-
|
|
185
|
-
### [1.11.5](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.3-review.2...v1.11.5) (2021-05-06)
|
|
186
|
-
|
|
187
|
-
### Bug Fixes
|
|
188
|
-
|
|
189
|
-
- fixed version ([ea5ecab](https://gitlab.com/buynomics/libraries/bn-shared/commit/ea5ecab2744164d5cf1788f1c27aa624582fe955))
|
|
190
|
-
|
|
191
|
-
### [1.11.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.3...v1.11.4) (2021-05-04)
|
|
192
|
-
|
|
193
|
-
### [1.11.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.10.2-feat-bd-578-bulk-delete.3...v1.11.3) (2021-04-26)
|
|
194
|
-
|
|
195
|
-
### [1.11.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.1...v1.11.2) (2021-04-26)
|
|
196
|
-
|
|
197
|
-
### [1.11.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.1-review.0...v1.11.1) (2021-04-26)
|
|
198
|
-
|
|
199
|
-
### [1.11.1-review.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.10.2-feat-bd-498-excel-download-formulas.1...v1.11.1-review.0) (2021-04-26)
|
|
200
|
-
|
|
201
|
-
### [1.11.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.1...v1.11.2) (2021-04-26)
|
|
202
|
-
|
|
203
|
-
### [1.11.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.1-review.0...v1.11.1) (2021-04-26)
|
|
204
|
-
|
|
205
|
-
## [1.11.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.11.0-review.0...v1.11.0) (2021-04-20)
|
|
206
|
-
|
|
207
|
-
### [1.10.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.10.2-review.0...v1.10.2) (2021-04-14)
|
|
208
|
-
|
|
209
|
-
### [1.10.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.10.0...v1.10.1) (2021-03-23)
|
|
210
|
-
|
|
211
|
-
### Bug Fixes
|
|
212
|
-
|
|
213
|
-
- fixed return statement ([9e1c88a](https://gitlab.com/buynomics/libraries/bn-shared/commit/9e1c88a7e857b0dd27b3666a0f5d57a33aa5ca54))
|
|
214
|
-
|
|
215
|
-
### [1.7.6-review.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.6-feat-bd-421-number-of-decimals.4...v1.7.6-review.2) (2021-01-07)
|
|
216
|
-
|
|
217
|
-
## [1.10.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.9.2...v1.10.0) (2021-02-25)
|
|
218
|
-
|
|
219
|
-
### Features
|
|
220
|
-
|
|
221
|
-
- added availability term ([4b01bc5](https://gitlab.com/buynomics/libraries/bn-shared/commit/4b01bc596c695607bada48f0906a1ab2ec858caa))
|
|
222
|
-
|
|
223
|
-
### [1.9.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.9.1...v1.9.2) (2021-02-23)
|
|
224
|
-
|
|
225
|
-
### [1.9.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.9.0...v1.9.1) (2021-02-23)
|
|
226
|
-
|
|
227
|
-
## [1.9.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.8.0...v1.9.0) (2021-02-01)
|
|
228
|
-
|
|
229
|
-
### Features
|
|
230
|
-
|
|
231
|
-
- added is operand to formula validator ([7a09fb4](https://gitlab.com/buynomics/libraries/bn-shared/commit/7a09fb4a3eefb83ba862daa893557cf1cd7d55fe))
|
|
232
|
-
|
|
233
|
-
## [1.8.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.7...v1.8.0) (2021-02-01)
|
|
234
|
-
|
|
235
|
-
### Features
|
|
236
|
-
|
|
237
|
-
- added validation, default labels to formula params ([a8b9b83](https://gitlab.com/buynomics/libraries/bn-shared/commit/a8b9b832191365d0eb78127b8236bbfe56bd79f9))
|
|
238
|
-
|
|
239
|
-
### Bug Fixes
|
|
240
|
-
|
|
241
|
-
- fixed linting ([5d88442](https://gitlab.com/buynomics/libraries/bn-shared/commit/5d88442cf7ce28c3051fa0e96e615e9d89956fbe))
|
|
242
|
-
|
|
243
|
-
### [1.7.7](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.6-feat-bd-421-number-of-decimals.4...v1.7.7) (2021-01-07)
|
|
244
|
-
|
|
245
|
-
### [1.7.6-review.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.6...v1.7.6-review.1) (2020-11-30)
|
|
246
|
-
|
|
247
|
-
### [1.7.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.6-review.0...v1.7.6) (2020-11-18)
|
|
248
|
-
|
|
249
|
-
### [1.7.6](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.2-feat-bd-331-client-custom-terminology.6...v1.7.6) (2020-11-18)
|
|
250
|
-
|
|
251
|
-
### [1.7.4](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.3...v1.7.4) (2020-11-06)
|
|
252
|
-
|
|
253
|
-
### [1.7.3](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.2...v1.7.3) (2020-11-06)
|
|
254
|
-
|
|
255
|
-
### [1.7.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.1...v1.7.2) (2020-11-06)
|
|
256
|
-
|
|
257
|
-
### [1.7.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.7.0...v1.7.1) (2020-10-26)
|
|
258
|
-
|
|
259
|
-
### [1.5.2-review.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.5.2-review.1...v1.5.2-review.2) (2020-10-09)
|
|
260
|
-
|
|
261
|
-
### [1.5.2-review.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.5.2-review.0...v1.5.2-review.1) (2020-10-09)
|
|
262
|
-
|
|
263
|
-
### [1.5.2-review.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.5.1...v1.5.2-review.0) (2020-10-09)
|
|
264
|
-
|
|
265
|
-
## [1.7.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.6.0...v1.7.0) (2020-10-20)
|
|
266
|
-
|
|
267
|
-
### Features
|
|
268
|
-
|
|
269
|
-
- deeperionVersion ([f4cc25c](https://gitlab.com/buynomics/libraries/bn-shared/commit/f4cc25c190d01ca7858fb5cceb0236993a43f409))
|
|
270
|
-
|
|
271
|
-
## [1.6.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.5.2...v1.6.0) (2020-10-20)
|
|
272
|
-
|
|
273
|
-
### Features
|
|
274
|
-
|
|
275
|
-
- ISimulationInputChangeEvents ([80cc662](https://gitlab.com/buynomics/libraries/bn-shared/commit/80cc6629bc98a7d22e5efacfce34d240d91c7e76))
|
|
276
|
-
|
|
277
|
-
### [1.5.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.5.1...v1.5.2) (2020-10-12)
|
|
278
|
-
|
|
279
|
-
### Bug Fixes
|
|
280
|
-
|
|
281
|
-
- bnpermissions now has scenario set permissions ([1933f55](https://gitlab.com/buynomics/libraries/bn-shared/commit/1933f55f79af71918984c9d38a496c566acd9af9))
|
|
282
|
-
|
|
283
|
-
### [1.5.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.4.2...v1.5.1) (2020-10-07)
|
|
284
|
-
|
|
285
|
-
### Bug Fixes
|
|
286
|
-
|
|
287
|
-
- added more lib options ([b721d90](https://gitlab.com/buynomics/libraries/bn-shared/commit/b721d905528155100fdee6bc5428a684b260f4b9))
|
|
288
|
-
- fixed module ([70483e1](https://gitlab.com/buynomics/libraries/bn-shared/commit/70483e119a29454bbb7cc8e64322adc9b6fd8ff7))
|
|
289
|
-
|
|
290
|
-
### [1.4.2](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.4.1...v1.4.2) (2020-10-07)
|
|
291
|
-
|
|
292
|
-
### Bug Fixes
|
|
293
|
-
|
|
294
|
-
- removed module ([5953400](https://gitlab.com/buynomics/libraries/bn-shared/commit/59534002d8940491a1599412fbd5147889bbaec0))
|
|
295
|
-
|
|
296
|
-
### [1.4.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.4.0...v1.4.1) (2020-10-07)
|
|
297
|
-
|
|
298
|
-
### Bug Fixes
|
|
299
|
-
|
|
300
|
-
- added package type ([df3df5a](https://gitlab.com/buynomics/libraries/bn-shared/commit/df3df5acaa15bd2632fe6744878857df1cbdfd6b))
|
|
301
|
-
|
|
302
|
-
## [1.4.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.3.1...v1.4.0) (2020-10-02)
|
|
303
|
-
|
|
304
|
-
### Features
|
|
305
|
-
|
|
306
|
-
- added price level types to export ([f73dc0f](https://gitlab.com/buynomics/libraries/bn-shared/commit/f73dc0fc329d9e8d1cb1f509fe62b1764b072672))
|
|
307
|
-
|
|
308
|
-
### [1.3.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.3.0...v1.3.1) (2020-10-02)
|
|
309
|
-
|
|
310
|
-
### Bug Fixes
|
|
311
|
-
|
|
312
|
-
- fixed naming in permissions ([f10a9f8](https://gitlab.com/buynomics/libraries/bn-shared/commit/f10a9f83a0c36c106053bff1f372f2cd10ca3c7f))
|
|
313
|
-
|
|
314
|
-
## [1.3.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.2.1...v1.3.0) (2020-10-02)
|
|
315
|
-
|
|
316
|
-
### Features
|
|
317
|
-
|
|
318
|
-
- added all permissions ([fcaec76](https://gitlab.com/buynomics/libraries/bn-shared/commit/fcaec76f9e1b71cfc4fd1186184e37bb1cf7ba96))
|
|
319
|
-
|
|
320
|
-
### [1.2.1](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.1.0...v1.2.1) (2020-10-02)
|
|
321
|
-
|
|
322
|
-
### Bug Fixes
|
|
323
|
-
|
|
324
|
-
- new version ([12ae2ef](https://gitlab.com/buynomics/libraries/bn-shared/commit/12ae2ef7f97dc979da372d266ff697930dadd88e))
|
|
325
|
-
|
|
326
|
-
## [1.1.0](https://gitlab.com/buynomics/libraries/bn-shared/compare/v1.0.1...v1.1.0) (2020-10-02)
|
|
327
|
-
|
|
328
|
-
### Features
|
|
329
|
-
|
|
330
|
-
- added bn permissions enum ([ceac159](https://gitlab.com/buynomics/libraries/bn-shared/commit/ceac159769002f3f27506e1d8a041bf19abacffe))
|
|
331
|
-
- changed version ([c0c7b17](https://gitlab.com/buynomics/libraries/bn-shared/commit/c0c7b1788b9af17e79f6a4970a85902827315f95))
|
|
332
|
-
|
|
333
|
-
### Bug Fixes
|
|
334
|
-
|
|
335
|
-
- removed tests ([74d4e69](https://gitlab.com/buynomics/libraries/bn-shared/commit/74d4e691eec608d406c546ffa55b0d9bbce73d56))
|
|
336
|
-
- removed tests stage ([cae1328](https://gitlab.com/buynomics/libraries/bn-shared/commit/cae1328fc67ad70ef29dd48a02aebe7dc5fa0e8c))
|
|
337
|
-
- update package.json ([cab7a34](https://gitlab.com/buynomics/libraries/bn-shared/commit/cab7a345b950df18914234e43266df96e80015cc))
|
|
338
|
-
- updated package.json ([369322c](https://gitlab.com/buynomics/libraries/bn-shared/commit/369322cfbf69fe29dc10b2ea3f14bf9dccbed078))
|
|
339
|
-
|
|
340
|
-
### 1.0.1 (2020-10-02)
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var stringToElement = function (param) { return "$".concat(param); };
|
|
4
|
-
var FormulaConverter = { stringToElement: stringToElement };
|
|
5
|
-
exports.default = FormulaConverter;
|
|
6
|
-
//# sourceMappingURL=formula-converter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-converter.js","sourceRoot":"","sources":["../../../src/helpers/formula/formula-converter.ts"],"names":[],"mappings":";;AAAA,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,WAAI,KAAK,CAAE,EAAX,CAAW,CAAA;AAEtD,IAAM,gBAAgB,GAAG,EAAE,eAAe,iBAAA,EAAE,CAAA;AAE5C,kBAAe,gBAAgB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type FormulaElementType = string | number | undefined | null | typeof NaN;
|
|
2
|
-
declare const FormulaValidator: {
|
|
3
|
-
isValidElement: (element: FormulaElementType) => boolean;
|
|
4
|
-
isVariable: (element: string) => boolean;
|
|
5
|
-
isCustomVariable: (element: string) => boolean;
|
|
6
|
-
canBeComputed: (formulaArray: FormulaElementType[]) => boolean;
|
|
7
|
-
isOperand: (element: string) => boolean;
|
|
8
|
-
};
|
|
9
|
-
export default FormulaValidator;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var mathjs_1 = require("mathjs");
|
|
7
|
-
var custom_formula_params_1 = require("../../../enums/scenario/custom-formula-params");
|
|
8
|
-
var enum_helper_1 = __importDefault(require("../../enum-helper"));
|
|
9
|
-
var generate_random_1 = require("../../generate-random");
|
|
10
|
-
var formula_converter_1 = __importDefault(require("../formula-converter"));
|
|
11
|
-
var mathParser = (0, mathjs_1.parser)();
|
|
12
|
-
var isVariable = function (element) {
|
|
13
|
-
return /\$.{36}$/g.test(element);
|
|
14
|
-
};
|
|
15
|
-
var computeWithRandomNumbers = function (formulaArray) {
|
|
16
|
-
var randomVariablesFormula = formulaArray.map(function (element) {
|
|
17
|
-
if (isVariable(element) || isCustomVariable(element)) {
|
|
18
|
-
return (0, generate_random_1.generateRandom)();
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return element;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return mathParser.evaluate(randomVariablesFormula.join(' '));
|
|
25
|
-
};
|
|
26
|
-
var isCustomVariable = function (element) {
|
|
27
|
-
var customParams = enum_helper_1.default.getEnumValues(custom_formula_params_1.CustomCostFormulaParams).map(function (e) { return formula_converter_1.default.stringToElement(e); });
|
|
28
|
-
return customParams.some(function (cp) { return cp === element; });
|
|
29
|
-
};
|
|
30
|
-
var isOperand = function (element) {
|
|
31
|
-
return ['/', '*', '+', '-', '(', ')'].includes(element);
|
|
32
|
-
};
|
|
33
|
-
var isValidElement = function (element) {
|
|
34
|
-
var elementString = element;
|
|
35
|
-
var elementNumber = element;
|
|
36
|
-
return (isOperand(elementString) ||
|
|
37
|
-
isVariable(elementString) ||
|
|
38
|
-
isCustomVariable(elementString) ||
|
|
39
|
-
!isNaN(elementNumber));
|
|
40
|
-
};
|
|
41
|
-
var canBeComputed = function (formulaArray) {
|
|
42
|
-
var isValid = true;
|
|
43
|
-
try {
|
|
44
|
-
var result = computeWithRandomNumbers(formulaArray);
|
|
45
|
-
if (!isFinite(result) || result === undefined) {
|
|
46
|
-
isValid = false;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (_a) {
|
|
50
|
-
isValid = false;
|
|
51
|
-
}
|
|
52
|
-
return isValid;
|
|
53
|
-
};
|
|
54
|
-
var FormulaValidator = {
|
|
55
|
-
isValidElement: isValidElement,
|
|
56
|
-
isVariable: isVariable,
|
|
57
|
-
isCustomVariable: isCustomVariable,
|
|
58
|
-
canBeComputed: canBeComputed,
|
|
59
|
-
isOperand: isOperand,
|
|
60
|
-
};
|
|
61
|
-
exports.default = FormulaValidator;
|
|
62
|
-
//# sourceMappingURL=formula-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-validator.js","sourceRoot":"","sources":["../../../../src/helpers/formula/formula-validator/formula-validator.ts"],"names":[],"mappings":";;;;;AAAA,iCAA+B;AAC/B,uFAAuF;AACvF,kEAA0C;AAC1C,yDAAsD;AACtD,2EAAmD;AAEnD,IAAM,UAAU,GAAG,IAAA,eAAM,GAAE,CAAA;AAI3B,IAAM,UAAU,GAAG,UAAC,OAAe;IACjC,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AAClC,CAAC,CAAA;AAED,IAAM,wBAAwB,GAAG,UAAC,YAAkC;IAClE,IAAM,sBAAsB,GAAG,YAAY,CAAC,GAAG,CAAC,UAAC,OAAO;QACtD,IAAI,UAAU,CAAC,OAAiB,CAAC,IAAI,gBAAgB,CAAC,OAAiB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,GAAG,KAAK,CAAA;SAChB;KACF;IAAC,WAAM;QACN,OAAO,GAAG,KAAK,CAAA;KAChB;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,IAAM,gBAAgB,GAAG;IACvB,cAAc,gBAAA;IACd,UAAU,YAAA;IACV,gBAAgB,kBAAA;IAChB,aAAa,eAAA;IACb,SAAS,WAAA;CACV,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var formula_validator_1 = __importDefault(require("./formula-validator"));
|
|
7
|
-
describe('FormulaValidator', function () {
|
|
8
|
-
describe('isValidElement', function () {
|
|
9
|
-
it('should return true for operand', function () {
|
|
10
|
-
expect(formula_validator_1.default.isValidElement('+')).toBeTruthy();
|
|
11
|
-
});
|
|
12
|
-
it('should return true for number', function () {
|
|
13
|
-
expect(formula_validator_1.default.isValidElement(2)).toBeTruthy();
|
|
14
|
-
});
|
|
15
|
-
it('should return true for current_price', function () {
|
|
16
|
-
expect(formula_validator_1.default.isValidElement('$current_price')).toBeTruthy();
|
|
17
|
-
});
|
|
18
|
-
it('should return true for GUID', function () {
|
|
19
|
-
expect(formula_validator_1.default.isValidElement('$7b4944ae-4d40-4ae3-aa35-3200cc102341')).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
it('should return true for null', function () {
|
|
22
|
-
expect(formula_validator_1.default.isValidElement(null)).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
it('should return false for NaN', function () {
|
|
25
|
-
expect(formula_validator_1.default.isValidElement(NaN)).toBeFalsy();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
describe('canBeExecuted', function () {
|
|
29
|
-
it('should return true for all numbers', function () {
|
|
30
|
-
var formulaArray = [
|
|
31
|
-
'(',
|
|
32
|
-
'1',
|
|
33
|
-
'+',
|
|
34
|
-
'9',
|
|
35
|
-
')',
|
|
36
|
-
'*',
|
|
37
|
-
'2',
|
|
38
|
-
'/',
|
|
39
|
-
'5',
|
|
40
|
-
'-',
|
|
41
|
-
'1',
|
|
42
|
-
];
|
|
43
|
-
expect(formula_validator_1.default.canBeComputed(formulaArray)).toBeTruthy();
|
|
44
|
-
});
|
|
45
|
-
it('should return true when there are no constants', function () {
|
|
46
|
-
var formulaArray = ['(', "$7b4944ae-4d40-4ae3-aa35-3200cc102341", ')'];
|
|
47
|
-
expect(formula_validator_1.default.canBeComputed(formulaArray)).toBeTruthy();
|
|
48
|
-
});
|
|
49
|
-
it('should return false when empty array', function () {
|
|
50
|
-
var formulaArray = [];
|
|
51
|
-
expect(formula_validator_1.default.canBeComputed(formulaArray)).toBeFalsy();
|
|
52
|
-
});
|
|
53
|
-
it('should return false when there is null element', function () {
|
|
54
|
-
var formulaArray = ['1', '+', 'null', '1'];
|
|
55
|
-
expect(formula_validator_1.default.canBeComputed(formulaArray)).toBeFalsy();
|
|
56
|
-
});
|
|
57
|
-
it('should return false when invalid formula', function () {
|
|
58
|
-
var formulaArray = ['1', '1'];
|
|
59
|
-
expect(formula_validator_1.default.canBeComputed(formulaArray)).toBeFalsy();
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=formula-validator.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formula-validator.test.js","sourceRoot":"","sources":["../../../../src/helpers/formula/formula-validator/formula-validator.test.ts"],"names":[],"mappings":";;;;;AAAA,0EAAkD;AAElD,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,QAAQ,CAAC,gBAAgB,EAAE;QACzB,EAAE,CAAC,gCAAgC,EAAE;YACnC,MAAM,CAAC,2BAAgB,CA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AG,EAAE,uCAAuC,EAAE,GAAG,CAAC,CAAA;YACxE,MAAM,CAAC,2BAAgB,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,CAAA;QACnE,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,sCAAsC,EAAE;YACzC,IAAM,YAAY,GAAG,EAAE,CAAA;YACvB,MAAM,CAAC,2BAAgB,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA;QAClE,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,gDAAgD,EAAE;YACnD,IAAM,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;YAC5C,MAAM,CAAC,2BAAgB,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA;QAClE,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,0CAA0C,EAAE;YAC7C,IAAM,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAC/B,MAAM,CAAC,2BAAgB,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA;QAClE,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const JSONFormulaToExpression: (formula: string[], params: {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
}[]) => {
|
|
5
|
-
expression: any[];
|
|
6
|
-
invalidElements: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare const expressionToJSONFormula: (expression: string[], params: {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}[]) => {
|
|
12
|
-
formula: string[];
|
|
13
|
-
invalidElements: string[];
|
|
14
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.expressionToJSONFormula = exports.JSONFormulaToExpression = void 0;
|
|
7
|
-
var __1 = require("../..");
|
|
8
|
-
var formula_converter_1 = __importDefault(require("./formula-converter"));
|
|
9
|
-
var JSONFormulaToExpression = function (formula, params) {
|
|
10
|
-
var invalidElements = [];
|
|
11
|
-
var newExpression = formula.map(function (element) {
|
|
12
|
-
if (__1.FormulaValidator.isValidElement(element)) {
|
|
13
|
-
return element;
|
|
14
|
-
}
|
|
15
|
-
var param = params.find(function (p) { return p.name === element; });
|
|
16
|
-
if (param) {
|
|
17
|
-
return { id: param.id, name: element };
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
invalidElements.push(element);
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return { expression: newExpression, invalidElements: invalidElements };
|
|
25
|
-
};
|
|
26
|
-
exports.JSONFormulaToExpression = JSONFormulaToExpression;
|
|
27
|
-
var expressionToJSONFormula = function (expression, params) {
|
|
28
|
-
var invalidElements = [];
|
|
29
|
-
var jsonFormula = expression.map(function (element) {
|
|
30
|
-
if (__1.FormulaValidator.isOperand(element) || !isNaN(+element)) {
|
|
31
|
-
return element;
|
|
32
|
-
}
|
|
33
|
-
var param = params.find(function (p) { return formula_converter_1.default.stringToElement(p.id) === element; });
|
|
34
|
-
if (param) {
|
|
35
|
-
return param.name;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
invalidElements.push(element);
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return { formula: jsonFormula, invalidElements: invalidElements };
|
|
43
|
-
};
|
|
44
|
-
exports.expressionToJSONFormula = expressionToJSONFormula;
|
|
45
|
-
//# sourceMappingURL=json-formula-to-expression.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-formula-to-expression.js","sourceRoot":"","sources":["../../../src/helpers/formula/json-formula-to-expression.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAwC;AACxC,0EAAkD;AAE3C,IAAM,uBAAuB,GAAG,UACrC,OAAiB,EACjB,MAAsC;IAEtC,IAAM,eAAe,GAAa,EAAE,CAAA;IACpC,IAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAC,OAAO;QACxC,IAAI,oBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;YAC5C,OAAO,OAAO,CAAA;SACf;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,KAAK,OAAO,EAAlB,CAAkB,CAAC,CAAA;QAEpD,IAAI,KAAK,EAAE;YACT,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;SACvC;aAAM;YACL,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC7B,OAAO,IAAI,CAAA;SACZ;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,iBAAA,EAAE,CAAA;AACvD,CAAC,CAAA;AArBY,QAAA,uBAAuB,2BAqBnC;AAEM,IAAM,uBAAuB,GAAG,UACrC,UAAoB,EACpB,MAAsC;IAEtC,IAAM,eAAe,GAAa,EAAE,CAAA;IACpC,IAAM,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,UAAC,OAAO;QACzC,IAAI,oBAAgB,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE;YAC3D,OAAO,OAAO,CAAA;SACf;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CACvB,UAAC,CAAC,IAAK,OAAA,2BAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,EAAlD,CAAkD,CAC1D,CAAA;QAED,IAAI,KAAK,EAAE;YACT,OAAO,KAAK,CAAC,IAAI,CAAA;SAClB;aAAM;YACL,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC7B,OAAO,IAAI,CAAA;SACZ;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,iBAAA,EAAE,CAAA;AAClD,CAAC,CAAA;AAvBY,QAAA,uBAAuB,2BAuBnC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRandom = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Returns a cryptographically secure pseudorandom number between 0 and 1
|
|
6
|
-
* Can be used as a drop-in replacement for Math.random
|
|
7
|
-
*/
|
|
8
|
-
var generateRandom = function () {
|
|
9
|
-
var array = new Uint32Array(1);
|
|
10
|
-
crypto.getRandomValues(array);
|
|
11
|
-
// Divide by the maximum value for Uint32 + 1 to get range [0, 1)
|
|
12
|
-
return array[0] / (0xffffffff + 1);
|
|
13
|
-
};
|
|
14
|
-
exports.generateRandom = generateRandom;
|
|
15
|
-
//# sourceMappingURL=generate-random.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-random.js","sourceRoot":"","sources":["../../src/helpers/generate-random.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACI,IAAM,cAAc,GAAG;IAC5B,IAAM,KAAK,GAAG,IAAI,WAAW,CAAC,CAAC,CAAC,CAAA;IAChC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAA;IAC7B,iEAAiE;IACjE,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,CAAA;AACpC,CAAC,CAAA;AALY,QAAA,cAAc,kBAK1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var generate_random_1 = require("./generate-random");
|
|
4
|
-
describe('generateRandom', function () {
|
|
5
|
-
it('should return a number between 0 (inclusive) and 1 (exclusive)', function () {
|
|
6
|
-
var value = (0, generate_random_1.generateRandom)();
|
|
7
|
-
expect(value).toBeGreaterThanOrEqual(0);
|
|
8
|
-
expect(value).toBeLessThan(1);
|
|
9
|
-
});
|
|
10
|
-
it('should return a value of type number', function () {
|
|
11
|
-
var value = (0, generate_random_1.generateRandom)();
|
|
12
|
-
expect(typeof value).toBe('number');
|
|
13
|
-
});
|
|
14
|
-
it('should not return NaN or Infinity', function () {
|
|
15
|
-
var value = (0, generate_random_1.generateRandom)();
|
|
16
|
-
expect(Number.isNaN(value)).toBe(false);
|
|
17
|
-
expect(value).not.toBe(Infinity);
|
|
18
|
-
});
|
|
19
|
-
it('should not throw errors when called multiple times', function () {
|
|
20
|
-
expect(function () {
|
|
21
|
-
for (var i = 0; i < 100; i++) {
|
|
22
|
-
(0, generate_random_1.generateRandom)();
|
|
23
|
-
}
|
|
24
|
-
}).not.toThrow();
|
|
25
|
-
});
|
|
26
|
-
it('should produce different values on consecutive calls (high entropy)', function () {
|
|
27
|
-
var values = Array.from({ length: 10 }, generate_random_1.generateRandom);
|
|
28
|
-
var uniqueValues = new Set(values);
|
|
29
|
-
expect(uniqueValues.size).toBeGreaterThan(1);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=generate-random.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-random.test.js","sourceRoot":"","sources":["../../src/helpers/generate-random.test.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAElD,QAAQ,CAAC,gBAAgB,EAAE;IACzB,EAAE,CAAC,gEAAgE,EAAE;QACnE,IAAM,KAAK,GAAG,IAAA,gCAA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