b2m-utils 0.0.155 → 0.0.157
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/enums/DomainConfigurationEnum.d.ts +4 -1
- package/build/functions/getCtesFeesResult/index.d.ts +1 -1
- package/build/index.esm.js +7 -4
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +7 -4
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,8 @@ export declare enum DomainConfigurationEnum {
|
|
|
3
3
|
CARGO_REMOVAL_DAYS = "CARGO_REMOVAL_DAYS",
|
|
4
4
|
DELIVERY_DAYS = "DELIVERY_DAYS",
|
|
5
5
|
DEMURRAGE_EXPIRY_NOTIFICATION_DAYS = "DEMURRAGE_EXPIRY_NOTIFICATION_DAYS",
|
|
6
|
-
INVOICE_EXPIRY_NOTIFICATION_DAYS = "INVOICE_EXPIRY_NOTIFICATION_DAYS"
|
|
6
|
+
INVOICE_EXPIRY_NOTIFICATION_DAYS = "INVOICE_EXPIRY_NOTIFICATION_DAYS",
|
|
7
|
+
IMAP_HOST = "IMAP_HOST",
|
|
8
|
+
IMAP_USER = "IMAP_USER",
|
|
9
|
+
IMAP_PASSWORD = "IMAP_PASSWORD"
|
|
7
10
|
}
|
package/build/index.esm.js
CHANGED
|
@@ -53,6 +53,9 @@ var DomainConfigurationEnum;
|
|
|
53
53
|
DomainConfigurationEnum["DELIVERY_DAYS"] = "DELIVERY_DAYS";
|
|
54
54
|
DomainConfigurationEnum["DEMURRAGE_EXPIRY_NOTIFICATION_DAYS"] = "DEMURRAGE_EXPIRY_NOTIFICATION_DAYS";
|
|
55
55
|
DomainConfigurationEnum["INVOICE_EXPIRY_NOTIFICATION_DAYS"] = "INVOICE_EXPIRY_NOTIFICATION_DAYS";
|
|
56
|
+
DomainConfigurationEnum["IMAP_HOST"] = "IMAP_HOST";
|
|
57
|
+
DomainConfigurationEnum["IMAP_USER"] = "IMAP_USER";
|
|
58
|
+
DomainConfigurationEnum["IMAP_PASSWORD"] = "IMAP_PASSWORD";
|
|
56
59
|
})(DomainConfigurationEnum || (DomainConfigurationEnum = {}));
|
|
57
60
|
|
|
58
61
|
var DomainTypeEnum;
|
|
@@ -615,7 +618,7 @@ var getLaneFeesToCalc = function (cte) {
|
|
|
615
618
|
};
|
|
616
619
|
|
|
617
620
|
var getCtesFeesResult = function (feesToCalc, cte) {
|
|
618
|
-
var _a, _b, _c;
|
|
621
|
+
var _a, _b, _c, _d;
|
|
619
622
|
var results = [];
|
|
620
623
|
var _loop_1 = function (item) {
|
|
621
624
|
var feeTotal = calculateFee(item, cte, feesToCalc);
|
|
@@ -627,8 +630,8 @@ var getCtesFeesResult = function (feesToCalc, cte) {
|
|
|
627
630
|
var siblingFees = feesToCalc === null || feesToCalc === void 0 ? void 0 : feesToCalc.filter(function (i) { var _a, _b; return ((_a = i.fee) === null || _a === void 0 ? void 0 : _a.parentId) === fee_1.parentId && ((_b = i.fee) === null || _b === void 0 ? void 0 : _b.id) !== fee_1.id; });
|
|
628
631
|
if (siblingFees && (siblingFees === null || siblingFees === void 0 ? void 0 : siblingFees.length) > 0) {
|
|
629
632
|
var siblingFeesResults = [];
|
|
630
|
-
for (var
|
|
631
|
-
var item_1 = siblingFees_1[
|
|
633
|
+
for (var _e = 0, siblingFees_1 = siblingFees; _e < siblingFees_1.length; _e++) {
|
|
634
|
+
var item_1 = siblingFees_1[_e];
|
|
632
635
|
var result = calculateFee(item_1, cte);
|
|
633
636
|
siblingFeesResults.push(result);
|
|
634
637
|
}
|
|
@@ -650,7 +653,7 @@ var getCtesFeesResult = function (feesToCalc, cte) {
|
|
|
650
653
|
total: totalToPush,
|
|
651
654
|
resultFee: resultFee,
|
|
652
655
|
feeValue: feeValue,
|
|
653
|
-
feeId: item.
|
|
656
|
+
feeId: (_d = item.fee) === null || _d === void 0 ? void 0 : _d.id,
|
|
654
657
|
});
|
|
655
658
|
}
|
|
656
659
|
}
|
package/build/index.esm.js.gz
CHANGED
|
Binary file
|