@abyss-project/banking 1.7.0 → 2.0.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.
- package/dist/types/enum/index.d.ts +0 -1
- package/dist/types/enum/index.js +0 -1
- package/dist/types/enum/index.js.map +1 -1
- package/dist/utils/currency-symbol.util.d.ts +3 -0
- package/dist/utils/currency-symbol.util.js +16 -0
- package/dist/utils/currency-symbol.util.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/types/enum/currency.enum.d.ts +0 -12
- package/dist/types/enum/currency.enum.js +0 -26
- package/dist/types/enum/currency.enum.js.map +0 -1
|
@@ -2,7 +2,6 @@ export * from './api-error.enum';
|
|
|
2
2
|
export * from './aggregator-type.enum';
|
|
3
3
|
export * from './bank-connection-status.enum';
|
|
4
4
|
export * from './cash-account-type.enum';
|
|
5
|
-
export * from './currency.enum';
|
|
6
5
|
export * from './period-configuration.enum';
|
|
7
6
|
export * from './panel-component-type.enum';
|
|
8
7
|
export * from './transaction-label.enum';
|
package/dist/types/enum/index.js
CHANGED
|
@@ -18,7 +18,6 @@ __exportStar(require("./api-error.enum"), exports);
|
|
|
18
18
|
__exportStar(require("./aggregator-type.enum"), exports);
|
|
19
19
|
__exportStar(require("./bank-connection-status.enum"), exports);
|
|
20
20
|
__exportStar(require("./cash-account-type.enum"), exports);
|
|
21
|
-
__exportStar(require("./currency.enum"), exports);
|
|
22
21
|
__exportStar(require("./period-configuration.enum"), exports);
|
|
23
22
|
__exportStar(require("./panel-component-type.enum"), exports);
|
|
24
23
|
__exportStar(require("./transaction-label.enum"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,yDAAuC;AACvC,gEAA8C;AAC9C,2DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,yDAAuC;AACvC,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,sDAAoC;AACpC,0DAAwC;AACxC,4DAA0C;AAC1C,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,oDAAkC;AAClC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,gEAA8C;AAC9C,gEAA8C;AAC9C,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,gEAA8C;AAC9C,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,mEAAiD;AACjD,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC;AACvC,6DAA2C;AAC3C,gEAA8C;AAC9C,iDAA+B;AAC/B,uDAAqC;AACrC,iEAA+C;AAC/C,6DAA2C;AAC3C,+DAA6C;AAC7C,2DAAyC;AACzC,yDAAuC;AACvC,kDAAgC;AAChC,yEAAuD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.currencySymbol = exports.CURRENCY_SYMBOLS = void 0;
|
|
4
|
+
exports.CURRENCY_SYMBOLS = {
|
|
5
|
+
EUR: '€',
|
|
6
|
+
USD: '$',
|
|
7
|
+
GBP: '£',
|
|
8
|
+
CHF: 'CHF',
|
|
9
|
+
JPY: '¥',
|
|
10
|
+
CNY: 'CN¥',
|
|
11
|
+
CAD: 'CA$',
|
|
12
|
+
AUD: 'A$',
|
|
13
|
+
};
|
|
14
|
+
const currencySymbol = (currency) => exports.CURRENCY_SYMBOLS[currency] ?? currency;
|
|
15
|
+
exports.currencySymbol = currencySymbol;
|
|
16
|
+
//# sourceMappingURL=currency-symbol.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-symbol.util.js","sourceRoot":"","sources":["../../src/utils/currency-symbol.util.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAiC;IAC5D,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,IAAI;CACV,CAAC;AAMK,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAU,EAAE,CACzD,wBAAgB,CAAC,QAAwB,CAAC,IAAI,QAAQ,CAAC;AAD5C,QAAA,cAAc,kBAC8B"}
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./error.utils"), exports);
|
|
18
18
|
__exportStar(require("./is-manual-bank-account.util"), exports);
|
|
19
19
|
__exportStar(require("./payslip-tax-projection.util"), exports);
|
|
20
|
+
__exportStar(require("./currency-symbol.util"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gEAA8C;AAC9C,gEAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gEAA8C;AAC9C,gEAA8C;AAC9C,yDAAuC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/banking",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Core package to interact with Abyss-Banking",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://gitlab.com/abyss-group/abyss-banking",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@abyss-project/main": "
|
|
15
|
+
"@abyss-project/main": "7.0.0",
|
|
16
16
|
"axios": "^1.6.0",
|
|
17
17
|
"axios-retry": "^4.5.0",
|
|
18
18
|
"core-js": "^3.37.1",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum Currency {
|
|
2
|
-
EUR = "EUR",
|
|
3
|
-
USD = "USD",
|
|
4
|
-
GBP = "GBP",
|
|
5
|
-
CHF = "CHF",
|
|
6
|
-
JPY = "JPY",
|
|
7
|
-
CAD = "CAD",
|
|
8
|
-
AUD = "AUD"
|
|
9
|
-
}
|
|
10
|
-
export declare const SUPPORTED_CURRENCIES: Currency[];
|
|
11
|
-
export declare const CURRENCY_SYMBOLS: Record<Currency, string>;
|
|
12
|
-
export declare const currencySymbol: (currency: string) => string;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.currencySymbol = exports.CURRENCY_SYMBOLS = exports.SUPPORTED_CURRENCIES = exports.Currency = void 0;
|
|
4
|
-
var Currency;
|
|
5
|
-
(function (Currency) {
|
|
6
|
-
Currency["EUR"] = "EUR";
|
|
7
|
-
Currency["USD"] = "USD";
|
|
8
|
-
Currency["GBP"] = "GBP";
|
|
9
|
-
Currency["CHF"] = "CHF";
|
|
10
|
-
Currency["JPY"] = "JPY";
|
|
11
|
-
Currency["CAD"] = "CAD";
|
|
12
|
-
Currency["AUD"] = "AUD";
|
|
13
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
14
|
-
exports.SUPPORTED_CURRENCIES = Object.values(Currency);
|
|
15
|
-
exports.CURRENCY_SYMBOLS = {
|
|
16
|
-
[Currency.EUR]: '€',
|
|
17
|
-
[Currency.USD]: '$',
|
|
18
|
-
[Currency.GBP]: '£',
|
|
19
|
-
[Currency.CHF]: 'CHF',
|
|
20
|
-
[Currency.JPY]: '¥',
|
|
21
|
-
[Currency.CAD]: 'CA$',
|
|
22
|
-
[Currency.AUD]: 'A$',
|
|
23
|
-
};
|
|
24
|
-
const currencySymbol = (currency) => exports.CURRENCY_SYMBOLS[currency] ?? currency;
|
|
25
|
-
exports.currencySymbol = currencySymbol;
|
|
26
|
-
//# sourceMappingURL=currency.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"currency.enum.js","sourceRoot":"","sources":["../../../src/types/enum/currency.enum.ts"],"names":[],"mappings":";;;AAMA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB;AAGY,QAAA,oBAAoB,GAAe,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAG3D,QAAA,gBAAgB,GAA6B;IACxD,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;IACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;IACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;IACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK;IACrB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG;IACnB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK;IACrB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI;CACrB,CAAC;AAGK,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAU,EAAE,CACzD,wBAAgB,CAAC,QAAoB,CAAC,IAAI,QAAQ,CAAC;AADxC,QAAA,cAAc,kBAC0B"}
|