taxtank-core 0.33.6 → 0.33.7
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/bank-account.collection.mjs +5 -41
- package/esm2022/src/lib/collections/depreciation.collection.mjs +6 -18
- package/esm2022/src/lib/collections/property/property.collection.mjs +8 -4
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -15
- package/esm2022/src/lib/db/Enums/bank/bank-account-type.enum.mjs +2 -2
- package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +6 -40
- package/esm2022/src/lib/forms/property/property-share.form.mjs +2 -2
- package/esm2022/src/lib/models/bank/bank-account.mjs +6 -3
- package/esm2022/src/lib/models/bank/type-loan.const.mjs +2 -5
- package/esm2022/src/lib/models/depreciation/depreciation.mjs +8 -22
- package/esm2022/src/lib/models/property/property.mjs +1 -4
- package/esm2022/src/lib/models/report/reports.const.mjs +17 -17
- package/esm2022/src/lib/models/transaction/transaction.mjs +1 -19
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +1 -18
- package/fesm2022/taxtank-core.mjs +53 -195
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/bank-account.collection.d.ts +1 -21
- package/src/lib/collections/depreciation.collection.d.ts +1 -1
- package/src/lib/collections/property/property.collection.d.ts +1 -1
- package/src/lib/db/Enums/bank/bank-account-type.enum.d.ts +1 -0
- package/src/lib/db/Models/bank/bank-account.d.ts +0 -1
- package/src/lib/db/Models/transaction/transaction-base.d.ts +0 -9
- package/src/lib/models/bank/bank-account.d.ts +1 -0
- package/src/lib/models/bank/type-loan.const.d.ts +0 -3
- package/src/lib/models/depreciation/depreciation.d.ts +3 -11
- package/src/lib/models/property/property.d.ts +0 -1
- package/src/lib/models/transaction/transaction.d.ts +1 -6
- package/src/lib/services/http/transaction/transaction.service.d.ts +0 -6
@@ -4,33 +4,12 @@ import { TYPE_LOAN } from '../models';
|
|
4
4
|
import flatten from 'lodash/flatten';
|
5
5
|
import uniqBy from 'lodash/uniqBy';
|
6
6
|
import uniq from 'lodash/uniq';
|
7
|
-
import concat from 'lodash/concat';
|
8
7
|
import { CollectionDictionary } from './collection-dictionary';
|
9
8
|
import { LoanCollection } from './loan';
|
10
9
|
/**
|
11
10
|
* Collection of bank accounts.
|
12
11
|
*/
|
13
12
|
export class BankAccountCollection extends Collection {
|
14
|
-
/**
|
15
|
-
* get list of bank accounts with passed types
|
16
|
-
*/
|
17
|
-
getByType(types, isExclude = false) {
|
18
|
-
// get types always as array (if only one passed)
|
19
|
-
const typesArray = concat(types);
|
20
|
-
return this.items.filter((bankAccount) => {
|
21
|
-
if (isExclude) {
|
22
|
-
return !typesArray.includes(bankAccount.type);
|
23
|
-
}
|
24
|
-
return typesArray.includes(bankAccount.type);
|
25
|
-
});
|
26
|
-
}
|
27
|
-
/**
|
28
|
-
* get amount of current loans
|
29
|
-
*/
|
30
|
-
getCurrentLoanAmount() {
|
31
|
-
return this.getByType(TYPE_LOAN)
|
32
|
-
.reduce((sum, bankAccount) => sum += bankAccount.currentBalance, 0);
|
33
|
-
}
|
34
13
|
/**
|
35
14
|
* get collection filtered by property id
|
36
15
|
*/
|
@@ -59,18 +38,15 @@ export class BankAccountCollection extends Collection {
|
|
59
38
|
getActive() {
|
60
39
|
return this.getOwn().filter((bankAccount) => bankAccount.isActive());
|
61
40
|
}
|
62
|
-
/**
|
63
|
-
* Get collection of loan bank accounts
|
64
|
-
*/
|
65
41
|
getLoanAccounts() {
|
66
|
-
return
|
42
|
+
return this.filterBy('type', TYPE_LOAN);
|
43
|
+
}
|
44
|
+
getDebitAccounts() {
|
45
|
+
return this.filter(bankAccount => ![...TYPE_LOAN, BankAccountTypeEnum.CREDIT_CARD].includes(bankAccount.type));
|
67
46
|
}
|
68
47
|
get loans() {
|
69
48
|
return new LoanCollection(this.filterBy('type', BankAccountTypeEnum.LOAN).map((bankAccount) => bankAccount.loan));
|
70
49
|
}
|
71
|
-
getSavingsAccounts() {
|
72
|
-
return new BankAccountCollection(this.getByType(TYPE_LOAN, true));
|
73
|
-
}
|
74
50
|
getOpeningBalance() {
|
75
51
|
return this.items.reduce((sum, bankAccount) => sum + bankAccount.getOpeningBalance(), 0);
|
76
52
|
}
|
@@ -80,18 +56,6 @@ export class BankAccountCollection extends Collection {
|
|
80
56
|
get bankShortNames() {
|
81
57
|
return uniq(this.map((bankAccount) => bankAccount.bank.shortName)).join(', ');
|
82
58
|
}
|
83
|
-
/**
|
84
|
-
* Get Collection of bank accounts with property tank type
|
85
|
-
*/
|
86
|
-
getPropertyBankAccounts() {
|
87
|
-
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isPropertyTank()));
|
88
|
-
}
|
89
|
-
/**
|
90
|
-
* Get Collection of bank accounts with work tank type
|
91
|
-
*/
|
92
|
-
getWorkBankAccounts() {
|
93
|
-
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isWorkTank()));
|
94
|
-
}
|
95
59
|
/**
|
96
60
|
* Get Collection of bank accounts by tank type
|
97
61
|
*/
|
@@ -150,4 +114,4 @@ export class BankAccountCollection extends Collection {
|
|
150
114
|
return this.getActive().getLoanAccounts().getByPropertiesIds(ids);
|
151
115
|
}
|
152
116
|
}
|
153
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvYmFuay1hY2NvdW50LmNvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUMxQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFbEQsT0FBTyxF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JvcGVydGllcyhpZHM6IG51bWJlcltdKTogQmFua0FjY291bnRDb2xsZWN0aW9uIHtcbiAgICByZXR1cm4gdGhpcy5nZXRBY3RpdmUoKS5nZXRMb2FuQWNjb3VudHMoKS5nZXRCeVByb3BlcnRpZXNJZHMoaWRzKTtcbiAgfVxufVxuIl19
|
@@ -8,8 +8,8 @@ export class DepreciationCollection extends Collection {
|
|
8
8
|
getSoleDepreciations() {
|
9
9
|
return this.filter((depreciation) => depreciation.isSoleTank());
|
10
10
|
}
|
11
|
-
|
12
|
-
return this.filter(
|
11
|
+
getCurrentYearBuy() {
|
12
|
+
return this.filter(depreciation => depreciation.isCurrentYearBuy());
|
13
13
|
}
|
14
14
|
/**
|
15
15
|
* Get total amount of all depreciations in the collection
|
@@ -18,7 +18,7 @@ export class DepreciationCollection extends Collection {
|
|
18
18
|
return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
|
19
19
|
}
|
20
20
|
get claimAmount() {
|
21
|
-
return this.
|
21
|
+
return this.sumBy('currentYearForecast.claimAmount');
|
22
22
|
}
|
23
23
|
getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
|
24
24
|
const closeBalance = this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
|
@@ -31,7 +31,7 @@ export class DepreciationCollection extends Collection {
|
|
31
31
|
return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
|
32
32
|
}
|
33
33
|
getCurrentYearForecastAmount() {
|
34
|
-
return this.
|
34
|
+
return this.sumBy('currentYearForecast.amount');
|
35
35
|
}
|
36
36
|
get closeBalance() {
|
37
37
|
return this.sumBy('currentYearForecast.closeBalance');
|
@@ -82,19 +82,7 @@ export class DepreciationCollection extends Collection {
|
|
82
82
|
return this.filter((depreciation) => depreciation.isVehicleDepreciation());
|
83
83
|
}
|
84
84
|
getByTankType(tankType) {
|
85
|
-
return this.
|
86
|
-
switch (tankType) {
|
87
|
-
case TankTypeEnum.PROPERTY:
|
88
|
-
return depreciation.isPropertyTank();
|
89
|
-
case TankTypeEnum.WORK:
|
90
|
-
return depreciation.isWorkTank();
|
91
|
-
case TankTypeEnum.SOLE:
|
92
|
-
return depreciation.isSoleTank();
|
93
|
-
// case for other tank or some extra
|
94
|
-
default:
|
95
|
-
return false;
|
96
|
-
}
|
97
|
-
}));
|
85
|
+
return this.filterBy('tankType', tankType);
|
98
86
|
}
|
99
87
|
/**
|
100
88
|
* Create TransactionCollection from depreciation items
|
@@ -113,4 +101,4 @@ export class DepreciationCollection extends Collection {
|
|
113
101
|
: this.getVehicleDepreciations().filterBy('tankType', TankTypeEnum.WORK);
|
114
102
|
}
|
115
103
|
}
|
116
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzFELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFMUMsT0FBTyxNQUFNLE1BQU0sZUFBZSxDQUFDO0FBQ25DLE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBRXJDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUd0RCxPQUFPLEtBQUssTUFBTSxjQUFjLENBQUM7QUFFakMsTUFBTSxPQUFPLHNCQUF1QixTQUFRLFVBQXdCO0lBQ2xFLG9CQUFvQjtRQUNsQixPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxZQUEwQixFQUFFL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06IERlcHJlY2lhdGlvbikgPT4gaXRlbS50b1RyYW5zYWN0aW9uKCkpXG4gICAgKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBHZXQgZGVwcmVjaWF0aW9ucyBieSB2ZWhpY2xlIGNsYWltLiBPbmx5IHZlaGljbGUgZGVwcmVjaWF0aW9ucyBtYXkgYmUgcmVsYXRlZCB0byB2ZWhpY2xlIGNsYWltXG4gICAqL1xuICBnZXRCeVZlaGljbGVDbGFpbSh2ZWhpY2xlQ2xhaW06IFZlaGljbGVDbGFpbSk6IHRoaXMge1xuICAgIHJldHVybiB2ZWhpY2xlQ2xhaW0uaXNTb2xlVGFuaygpXG4gICAgICAvLyBzb2xlIHRhbmsgbWF5IGhhdmUgbXVsdGlwbGUgdmVoaWNsZSBjbGFpbXMsIHNvIHdlIG5lZWQgdG8gZmlsdGVyIGJ5IGJ1c2luZXNzLmlkXG4gICAgICA/IHRoaXMuZ2V0VmVoaWNsZURlcHJlY2lhdGlvbnMoKS5maWx0ZXJCeSgnYnVzaW5lc3MuaWQnLCB2ZWhpY2xlQ2xhaW0uYnVzaW5lc3MuaWQpXG4gICAgICAvLyB3b3JrIHRhbmsgbWF5IGhhdmUgb25seSBvbmUgdmVoaWNsZSBjbGFpbSwgc28gd2UgbmVlZCB0byBmaWx0ZXIgYnkgdGFuayB0eXBlXG4gICAgICA6IHRoaXMuZ2V0VmVoaWNsZURlcHJlY2lhdGlvbnMoKS5maWx0ZXJCeSgndGFua1R5cGUnLCBUYW5rVHlwZUVudW0uV09SSyk7XG4gIH1cbn1cbiJdfQ==
|
@@ -29,10 +29,14 @@ export class PropertyCollection extends Collection {
|
|
29
29
|
return this.sumBy('growthPercent');
|
30
30
|
}
|
31
31
|
get marketValue() {
|
32
|
-
return this.sumBy('marketValue');
|
32
|
+
return this.sumBy('valuation.marketValue');
|
33
33
|
}
|
34
|
-
get
|
35
|
-
|
34
|
+
get sharedMarketValue() {
|
35
|
+
let sharedMarketValue = 0;
|
36
|
+
this.items.forEach(property => {
|
37
|
+
sharedMarketValue += property.shareRatio * property.marketValue;
|
38
|
+
});
|
39
|
+
return sharedMarketValue;
|
36
40
|
}
|
37
41
|
/**
|
38
42
|
* Get list of unique property categories from collection
|
@@ -110,4 +114,4 @@ export class PropertyCollection extends Collection {
|
|
110
114
|
return propertiesByCategory;
|
111
115
|
}
|
112
116
|
}
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9wcm9wZXJ0eS9wcm9wZXJ0eS5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxNQUFNLE1BQU0sZUFBZSxDQUFDO0FBTW5DLE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxVQUFvQjtJQUMxRDs7T0FFRztJQUNILG1CQUFtQjtRQUNqQixPQUFPLElBQUksa0JBQWtCLENBQzNCLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsUUFBa0IsRUFBVyxFQUFFLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUN0RSxDQUFDO0lBQ0osQ0FBQztJQUVELG9CQUFvQjtRQUNsQixPQUFPLElBQUksa0JBQWtCLENBQzNCLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsUUFBa0IsRUFBVyxFQUFFLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxDQUFDLENBQ3JFLENBQUM7SUFDSixDQUFDO0lBRUQ7O09BRUc7SUFDSCxtQkFBbUI7UUFDakIsT0FBTyxJQUFJ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gICB9XG5cbiAgICByZXR1cm4gcHJvcGVydGllc0J5Q2F0ZWdvcnk7XG4gIH1cbn1cbiJdfQ==
|
@@ -111,7 +111,7 @@ export class TransactionCollection extends ExportableCollection {
|
|
111
111
|
* Get new collection of property transactions
|
112
112
|
*/
|
113
113
|
getPropertyTransactions() {
|
114
|
-
return
|
114
|
+
return this.filterBy('tankType', TankTypeEnum.PROPERTY);
|
115
115
|
}
|
116
116
|
getDebitTransactions() {
|
117
117
|
return new TransactionCollection(this.items.filter((transaction) => transaction.isDebit()));
|
@@ -144,19 +144,7 @@ export class TransactionCollection extends ExportableCollection {
|
|
144
144
|
* Get new transaction collection filtered by tank type
|
145
145
|
*/
|
146
146
|
getByTankType(tankType) {
|
147
|
-
return this.
|
148
|
-
switch (tankType) {
|
149
|
-
case TankTypeEnum.PROPERTY:
|
150
|
-
return transaction.isPropertyTank();
|
151
|
-
case TankTypeEnum.WORK:
|
152
|
-
return transaction.isWorkTank();
|
153
|
-
case TankTypeEnum.SOLE:
|
154
|
-
return transaction.isSoleTank();
|
155
|
-
// Transaction may be not related to any tank type (personal)
|
156
|
-
default:
|
157
|
-
return false;
|
158
|
-
}
|
159
|
-
}));
|
147
|
+
return this.filterBy('tankType', tankType);
|
160
148
|
}
|
161
149
|
getExportHeader() {
|
162
150
|
return ['Date', 'Description', 'Debit', 'Credit'];
|
@@ -240,4 +228,4 @@ export class TransactionCollection extends ExportableCollection {
|
|
240
228
|
return this.filter(transaction => transaction.claimPercent > 0);
|
241
229
|
}
|
242
230
|
}
|
243
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5j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T0RPIHZpayBidXNpbmVzcyB0cmFuc2FjdGlvbnMgY2FsY3VsYXRlZCBkaWZmZXJlbnRseSwgc2VwYXJhdGVkIGNvbGxlY3Rpb24/XG4gICAqL1xuICBnZXRCdXNpbmVzc0NsYWltQW1vdW50KGJ1c2luZXNzSWQ6IG51bWJlciA9IG51bGwpOiBudW1iZXIge1xuICAgIGNvbnN0IHRyYW5zYWN0aW9ucyA9IGJ1c2luZXNzSWQgPyB0aGlzLmZpbHRlckJ5KCdidXNpbmVzcy5pZCcsIGJ1c2luZXNzSWQpIDogdGhpcztcbiAgICBjb25zdCBleHBlbnNlcyA9IHRyYW5zYWN0aW9ucy5nZXRFeHBlbnNlVHJhbnNhY3Rpb25zKCk7XG4gICAgY29uc3QgaW5jb21lcyA9IHRyYW5zYWN0aW9ucy5nZXRJbmNvbWVUcmFuc2FjdGlvbnMoKTtcblxuICAgIHJldHVybiBpbmNvbWVzLnN1bUJ5KCdjbGFpbUFtb3VudCcpICsgZXhwZW5zZXMuc3VtQnkoJ2NsYWltQW1vdW50Jyk7XG4gIH1cblxuICBnZXRUYXhhYmxlKCk6IHRoaXMge1xuICAgIHJldHVybiB0aGlzLmZpbHRlcih0cmFuc2FjdGlvbiA9PiB0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQgPiAwKTtcbiAgfVxufVxuIl19
|
@@ -4,10 +4,10 @@ export var BankAccountTypeEnum;
|
|
4
4
|
BankAccountTypeEnum[BankAccountTypeEnum["SAVINGS"] = 2] = "SAVINGS";
|
5
5
|
BankAccountTypeEnum[BankAccountTypeEnum["CREDIT_CARD"] = 3] = "CREDIT_CARD";
|
6
6
|
// @TODO Alex: should be removed by backend (TT-2107)
|
7
|
-
|
7
|
+
BankAccountTypeEnum[BankAccountTypeEnum["MORTGAGE"] = 4] = "MORTGAGE";
|
8
8
|
BankAccountTypeEnum[BankAccountTypeEnum["LOAN"] = 5] = "LOAN";
|
9
9
|
BankAccountTypeEnum[BankAccountTypeEnum["INVESTMENT"] = 6] = "INVESTMENT";
|
10
10
|
BankAccountTypeEnum[BankAccountTypeEnum["TERM_DEPOSIT"] = 7] = "TERM_DEPOSIT";
|
11
11
|
BankAccountTypeEnum[BankAccountTypeEnum["OFFSET"] = 10] = "OFFSET";
|
12
12
|
})(BankAccountTypeEnum || (BankAccountTypeEnum = {}));
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9iYW5rL2JhbmstYWNjb3VudC10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksbUJBVVg7QUFWRCxXQUFZLG1CQUFtQjtJQUM3QiwyRUFBZSxDQUFBO0lBQ2YsbUVBQVcsQ0FBQTtJQUNYLDJFQUFlLENBQUE7SUFDZixxREFBcUQ7SUFDckQscUVBQVksQ0FBQTtJQUNaLDZEQUFRLENBQUE7SUFDUix5RUFBYyxDQUFBO0lBQ2QsNkVBQWdCLENBQUE7SUFDaEIsa0VBQVcsQ0FBQTtBQUNiLENBQUMsRUFWVyxtQkFBbUIsS0FBbkIsbUJBQW1CLFFBVTlCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQmFua0FjY291bnRUeXBlRW51bSB7XG4gIFRSQU5TQUNUSU9OID0gMSxcbiAgU0FWSU5HUyA9IDIsXG4gIENSRURJVF9DQVJEID0gMyxcbiAgLy8gQFRPRE8gQWxleDogc2hvdWxkIGJlIHJlbW92ZWQgYnkgYmFja2VuZCAoVFQtMjEwNylcbiAgTU9SVEdBR0UgPSA0LFxuICBMT0FOID0gNSxcbiAgSU5WRVNUTUVOVCA9IDYsXG4gIFRFUk1fREVQT1NJVCA9IDcsXG4gIE9GRlNFVCA9IDEwLFxufVxuIl19
|
@@ -7,4 +7,4 @@ export class BankAccount extends ObservableModel {
|
|
7
7
|
__decorate([
|
8
8
|
Type(() => Number)
|
9
9
|
], BankAccount.prototype, "currentBalance", void 0);
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL01vZGVscy9iYW5rL2JhbmstYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBT0EsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUV6QyxNQUFNLE9BQU8sV0FBWSxTQUFRLGVBQWU7YUFDdkMsY0FBUyxHQUFHLGFBQWEsQ0FBQzs7QUFTakM7SUFEQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsTUFBTSxDQUFDO21EQUNLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFua0FjY291bnRTdGF0dXNFbnVtLCBCYW5rQWNjb3VudFR5cGVFbnVtIH0gZnJvbSAnLi4vLi4vRW51bXMnO1xuaW1wb3J0IHsgQmFua0Nvbm5lY3Rpb24gfSBmcm9tICcuL2JhbmstY29ubmVjdGlvbic7XG5pbXBvcnQgeyBCYW5rQWNjb3VudFByb3BlcnR5IH0gZnJvbSAnLi9iYW5rLWFjY291bnQtcHJvcGVydHknO1xuaW1wb3J0IHsgQmFua1RyYW5zYWN0aW9uIH0gZnJvbSAnLi9iYW5rLXRyYW5zYWN0aW9uJztcbmltcG9ydCB7IEJhbmtB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