@zorionapp/gg-toolkit 4.21.0 → 4.71.1
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/dto/index.d.ts +1 -0
- package/dto/index.js +1 -0
- package/dto/index.js.map +1 -1
- package/dto/lock.dto.d.ts +12 -0
- package/dto/lock.dto.js +19 -0
- package/dto/lock.dto.js.map +1 -0
- package/dto/pagination.dto.js +1 -1
- package/enum/antifraud.enums.d.ts +2 -1
- package/enum/antifraud.enums.js +1 -0
- package/enum/antifraud.enums.js.map +1 -1
- package/enum/currency.enum.d.ts +328 -5
- package/enum/currency.enum.js +324 -1
- package/enum/currency.enum.js.map +1 -1
- package/enum/index.d.ts +1 -0
- package/enum/index.js +1 -0
- package/enum/index.js.map +1 -1
- package/enum/notification.enum.d.ts +2 -0
- package/enum/notification.enum.js +2 -0
- package/enum/notification.enum.js.map +1 -1
- package/enum/operation.enums.d.ts +2 -1
- package/enum/operation.enums.js +1 -0
- package/enum/operation.enums.js.map +1 -1
- package/enum/transfer-order.enums.d.ts +10 -0
- package/enum/transfer-order.enums.js +16 -0
- package/enum/transfer-order.enums.js.map +1 -0
- package/enum/transfer.enums.d.ts +8 -2
- package/enum/transfer.enums.js +6 -0
- package/enum/transfer.enums.js.map +1 -1
- package/nominal-type/currency/currency-type.validator.js +9 -3
- package/nominal-type/currency/currency-type.validator.js.map +1 -1
- package/nominal-type/money/money-type.validator.js +3 -9
- package/nominal-type/money/money-type.validator.js.map +1 -1
- package/nominal-type/money/money.ntype.d.ts +22 -37
- package/nominal-type/money/money.ntype.js +77 -98
- package/nominal-type/money/money.ntype.js.map +1 -1
- package/nominal-type/mop/mop-type.map.js +2 -0
- package/nominal-type/mop/mop-type.map.js.map +1 -1
- package/package.json +1 -1
- package/util/index.d.ts +0 -1
- package/util/index.js +0 -1
- package/util/index.js.map +1 -1
- package/util/money-math-formulas.d.ts +0 -13
- package/util/money-math-formulas.js +0 -18
- package/util/money-math-formulas.js.map +0 -1
package/package.json
CHANGED
package/util/index.d.ts
CHANGED
package/util/index.js
CHANGED
|
@@ -2,6 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./compact-object"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./money-math-formulas"), exports);
|
|
6
5
|
tslib_1.__exportStar(require("./response-wrapper"), exports);
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/gg-toolkit/util/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/gg-toolkit/util/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,6DAAmC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as baseMathjs from 'mathjs';
|
|
2
|
-
export declare const mathjs: baseMathjs.MathJsInstance;
|
|
3
|
-
export declare const calculationFormula: baseMathjs.EvalFunction;
|
|
4
|
-
export declare const humanFormula: baseMathjs.EvalFunction;
|
|
5
|
-
export declare const addFormula: baseMathjs.EvalFunction;
|
|
6
|
-
export declare const minusFormula: baseMathjs.EvalFunction;
|
|
7
|
-
export declare const multiplyFormula: baseMathjs.EvalFunction;
|
|
8
|
-
export declare const divideFormula: baseMathjs.EvalFunction;
|
|
9
|
-
export declare const equalToFormula: baseMathjs.EvalFunction;
|
|
10
|
-
export declare const greaterThanFormula: baseMathjs.EvalFunction;
|
|
11
|
-
export declare const greaterThanOrEqualToFormula: baseMathjs.EvalFunction;
|
|
12
|
-
export declare const lessThanFormula: baseMathjs.EvalFunction;
|
|
13
|
-
export declare const lessThanOrEqualToFormula: baseMathjs.EvalFunction;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lessThanOrEqualToFormula = exports.lessThanFormula = exports.greaterThanOrEqualToFormula = exports.greaterThanFormula = exports.equalToFormula = exports.divideFormula = exports.multiplyFormula = exports.minusFormula = exports.addFormula = exports.humanFormula = exports.calculationFormula = exports.mathjs = void 0;
|
|
4
|
-
const baseMathjs = require("mathjs");
|
|
5
|
-
exports.mathjs = baseMathjs.create(baseMathjs.all); // mathjs should be configured before class definition
|
|
6
|
-
exports.mathjs.config({ number: 'BigNumber', precision: 18 }); // BigNumber used to return big string values
|
|
7
|
-
exports.calculationFormula = exports.mathjs.parse(`amount * (10^precision)`).compile();
|
|
8
|
-
exports.humanFormula = exports.mathjs.parse(`amount * (10^-precision)`).compile();
|
|
9
|
-
exports.addFormula = exports.mathjs.parse(`x + y`).compile();
|
|
10
|
-
exports.minusFormula = exports.mathjs.parse(`x - y`).compile();
|
|
11
|
-
exports.multiplyFormula = exports.mathjs.parse(`x * y`).compile();
|
|
12
|
-
exports.divideFormula = exports.mathjs.parse(`x / y`).compile();
|
|
13
|
-
exports.equalToFormula = exports.mathjs.parse('x == y').compile();
|
|
14
|
-
exports.greaterThanFormula = exports.mathjs.parse('x > y').compile();
|
|
15
|
-
exports.greaterThanOrEqualToFormula = exports.mathjs.parse('x >= y').compile();
|
|
16
|
-
exports.lessThanFormula = exports.mathjs.parse('x < y').compile();
|
|
17
|
-
exports.lessThanOrEqualToFormula = exports.mathjs.parse('x <= y').compile();
|
|
18
|
-
//# sourceMappingURL=money-math-formulas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-math-formulas.js","sourceRoot":"","sources":["../../../../libs/gg-toolkit/util/money-math-formulas.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAExB,QAAA,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,sDAAsD;AAC/G,cAAM,CAAC,M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