taxtank-core 0.33.60 → 0.33.61
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/asset-sale.collection.mjs +4 -1
- package/esm2022/src/lib/collections/collection-dictionary.mjs +10 -1
- package/esm2022/src/lib/collections/collection.mjs +1 -1
- package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +3 -3
- package/esm2022/src/lib/collections/holding/holding-trade.collection.mjs +78 -0
- package/esm2022/src/lib/collections/holding/holding.collection.mjs +19 -54
- package/esm2022/src/lib/collections/holding/index.mjs +3 -2
- package/esm2022/src/lib/db/Enums/holding/holding-trade-type.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/holding/holding-type-category.enum.mjs +1 -1
- package/esm2022/src/lib/db/Enums/holding/index.mjs +2 -1
- package/esm2022/src/lib/db/Models/holding/holding-sale.mjs +1 -1
- package/esm2022/src/lib/db/Models/holding/holding-trade-import.mjs +3 -0
- package/esm2022/src/lib/db/Models/holding/holding-trade.mjs +3 -0
- package/esm2022/src/lib/db/Models/holding/index.mjs +2 -2
- package/esm2022/src/lib/forms/abstract.form.mjs +6 -1
- package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +14 -14
- package/esm2022/src/lib/forms/holding/holding-sale.form.mjs +3 -2
- package/esm2022/src/lib/forms/holding/holding-trade/holding-trade-filter.form.mjs +25 -0
- package/esm2022/src/lib/forms/holding/holding-trade/holding-trade.form.mjs +30 -0
- package/esm2022/src/lib/forms/holding/holding-trade/index.mjs +3 -0
- package/esm2022/src/lib/forms/holding/holding-trade-import.form.mjs +25 -0
- package/esm2022/src/lib/forms/holding/index.mjs +3 -3
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +9 -9
- package/esm2022/src/lib/models/holding/holding-reinvest.mjs +4 -4
- package/esm2022/src/lib/models/holding/holding-sale.mjs +10 -1
- package/esm2022/src/lib/models/holding/holding-trade-import.mjs +16 -0
- package/esm2022/src/lib/models/holding/holding-trade.mjs +77 -0
- package/esm2022/src/lib/models/holding/holding-type-exchange.mjs +4 -1
- package/esm2022/src/lib/models/holding/holding-type.mjs +4 -1
- package/esm2022/src/lib/models/holding/holding.mjs +44 -71
- package/esm2022/src/lib/models/holding/index.mjs +4 -3
- package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +3 -3
- package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import-messages.enum.mjs +9 -0
- package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.mjs +37 -0
- package/esm2022/src/lib/services/http/holding/holding-trade-messages.enum.mjs +10 -0
- package/esm2022/src/lib/services/http/holding/holding-trade.service.mjs +44 -0
- package/esm2022/src/lib/services/http/holding/index.mjs +5 -6
- package/fesm2022/taxtank-core.mjs +330 -185
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/asset-sale.collection.d.ts +3 -0
- package/src/lib/collections/collection-dictionary.d.ts +1 -0
- package/src/lib/collections/holding/holding-sale.collection.d.ts +4 -4
- package/src/lib/collections/holding/holding-trade.collection.d.ts +21 -0
- package/src/lib/collections/holding/holding.collection.d.ts +7 -10
- package/src/lib/collections/holding/index.d.ts +2 -1
- package/src/lib/db/Enums/holding/holding-trade-type.enum.d.ts +4 -0
- package/src/lib/db/Enums/holding/index.d.ts +1 -0
- package/src/lib/db/Models/holding/holding-sale.d.ts +2 -2
- package/src/lib/db/Models/holding/holding-trade-import.d.ts +8 -0
- package/src/lib/db/Models/holding/{holding.d.ts → holding-trade.d.ts} +1 -1
- package/src/lib/db/Models/holding/index.d.ts +1 -1
- package/src/lib/forms/abstract.form.d.ts +2 -0
- package/src/lib/forms/holding/holding-reinvest.form.d.ts +5 -5
- package/src/lib/forms/holding/holding-sale.form.d.ts +2 -2
- package/src/lib/forms/holding/holding-trade/holding-trade-filter.form.d.ts +9 -0
- package/src/lib/forms/holding/holding-trade/holding-trade.form.d.ts +9 -0
- package/src/lib/forms/holding/holding-trade/index.d.ts +2 -0
- package/src/lib/forms/holding/holding-trade-import.form.d.ts +8 -0
- package/src/lib/forms/holding/index.d.ts +2 -2
- package/src/lib/models/holding/holding-reinvest.d.ts +2 -2
- package/src/lib/models/holding/holding-sale.d.ts +16 -4
- package/src/lib/models/holding/holding-trade-import.d.ts +8 -0
- package/src/lib/models/holding/holding-trade.d.ts +41 -0
- package/src/lib/models/holding/holding-type-exchange.d.ts +3 -0
- package/src/lib/models/holding/holding-type.d.ts +3 -0
- package/src/lib/models/holding/holding.d.ts +18 -34
- package/src/lib/models/holding/index.d.ts +3 -2
- package/src/lib/services/account-setup/account-setup.service.d.ts +2 -2
- package/src/lib/services/http/holding/{holding-import/holding-import-messages.enum.d.ts → holding-trade-import/holding-trade-import-messages.enum.d.ts} +1 -1
- package/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.d.ts +17 -0
- package/src/lib/services/http/holding/{holding-messages.enum.d.ts → holding-trade-messages.enum.d.ts} +1 -1
- package/src/lib/services/http/holding/holding-trade.service.d.ts +20 -0
- package/src/lib/services/http/holding/index.d.ts +4 -5
- package/esm2022/src/lib/db/Models/holding/holding-import.mjs +0 -3
- package/esm2022/src/lib/db/Models/holding/holding.mjs +0 -3
- package/esm2022/src/lib/forms/holding/holding-import.form.mjs +0 -25
- package/esm2022/src/lib/forms/holding/holding.form.mjs +0 -28
- package/esm2022/src/lib/models/holding/holding-import.mjs +0 -16
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import-messages.enum.mjs +0 -9
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +0 -37
- package/esm2022/src/lib/services/http/holding/holding-messages.enum.mjs +0 -10
- package/esm2022/src/lib/services/http/holding/holding-sale-messages.enum.mjs +0 -8
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +0 -44
- package/src/lib/db/Models/holding/holding-import.d.ts +0 -8
- package/src/lib/forms/holding/holding-import.form.d.ts +0 -8
- package/src/lib/forms/holding/holding.form.d.ts +0 -8
- package/src/lib/models/holding/holding-import.d.ts +0 -8
- package/src/lib/services/http/holding/holding-import/holding-import.service.d.ts +0 -17
- package/src/lib/services/http/holding/holding-sale-messages.enum.d.ts +0 -6
- package/src/lib/services/http/holding/holding.service.d.ts +0 -20
@@ -1,82 +1,55 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { Expose, Transform, Type, plainToClass } from 'class-transformer';
|
3
|
-
import { User } from '../user';
|
4
|
-
import { HoldingType } from './holding-type';
|
5
|
-
import { AppFile } from '../file';
|
6
|
-
import { HoldingSale } from './holding-sale';
|
7
|
-
import { Collection } from '../../collections';
|
8
1
|
import { AbstractModel } from '../../db/Models';
|
9
|
-
import { FinancialYear } from '../financial-year';
|
10
|
-
import { HoldingTypeCategoryEnum } from '../../db/Enums';
|
11
2
|
export class Holding extends AbstractModel {
|
12
|
-
constructor() {
|
13
|
-
super(
|
14
|
-
this.
|
3
|
+
constructor(trades, type) {
|
4
|
+
super();
|
5
|
+
this.trades = trades;
|
6
|
+
this.type = type;
|
7
|
+
this.quantity = this.getQuantity();
|
8
|
+
this.purchaseValue = this.getPurchaseValue();
|
9
|
+
this.marketValue = this.getMarketValue();
|
10
|
+
this.avgPrice = this.getAvgPrice();
|
11
|
+
this.pnl = this.getPnl();
|
15
12
|
}
|
16
|
-
|
17
|
-
|
18
|
-
*/
|
19
|
-
get purchaseValue() {
|
20
|
-
const quantity = this.currentQuantity ?? this.quantity;
|
21
|
-
// Price and entity may be empty when we use HoldingForm.currentValue
|
22
|
-
if (!this.price || !this.quantity) {
|
23
|
-
return 0;
|
24
|
-
}
|
25
|
-
return this.price * quantity;
|
13
|
+
getQuantity() {
|
14
|
+
return this.trades.getPurchases().sumBy('quantity') - this.trades.getSales().sumBy('quantity');
|
26
15
|
}
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
16
|
+
getPurchaseValue() {
|
17
|
+
let remainingQuantity = this.quantity;
|
18
|
+
let totalCost = 0;
|
19
|
+
this.trades.getPurchases().items.forEach(trade => {
|
20
|
+
if (remainingQuantity <= 0) {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
const applicableQuantity = Math.min(trade.quantity, remainingQuantity);
|
24
|
+
totalCost += applicableQuantity * trade.price + trade.fee;
|
25
|
+
remainingQuantity -= applicableQuantity;
|
26
|
+
});
|
27
|
+
return totalCost;
|
28
|
+
}
|
29
|
+
getMarketValue() {
|
30
|
+
return this.quantity * this.type.price;
|
31
|
+
}
|
32
|
+
getAvgPrice() {
|
33
|
+
return this.purchaseValue / this.quantity;
|
32
34
|
}
|
33
35
|
/**
|
34
|
-
*
|
35
|
-
* @TODO vik/alex no need to pass holdingType, should come from backend
|
36
|
+
* profit and loss
|
36
37
|
*/
|
37
|
-
|
38
|
-
return this.
|
38
|
+
getPnl() {
|
39
|
+
return this.marketValue - this.purchaseValue;
|
40
|
+
}
|
41
|
+
getSharedMarketValue() {
|
42
|
+
let sharedMarketValue = 0;
|
43
|
+
this.trades.items.forEach(holding => {
|
44
|
+
sharedMarketValue += holding.ownershipPercent / 100 * holding.marketValue;
|
45
|
+
});
|
46
|
+
return sharedMarketValue;
|
39
47
|
}
|
40
|
-
|
41
|
-
|
42
|
-
return (new FinancialYear().startDate.getTime() - this.date.getTime()) > yearTime;
|
48
|
+
getGrowthCoefficient() {
|
49
|
+
return this.marketValue / this.purchaseValue - 1;
|
43
50
|
}
|
44
|
-
|
45
|
-
return this.
|
51
|
+
getUnrealisedProfit() {
|
52
|
+
return this.marketValue - this.purchaseValue;
|
46
53
|
}
|
47
54
|
}
|
48
|
-
|
49
|
-
Type(() => Date)
|
50
|
-
], Holding.prototype, "date", void 0);
|
51
|
-
__decorate([
|
52
|
-
Type(() => User)
|
53
|
-
], Holding.prototype, "user", void 0);
|
54
|
-
__decorate([
|
55
|
-
Type(() => HoldingType)
|
56
|
-
], Holding.prototype, "type", void 0);
|
57
|
-
__decorate([
|
58
|
-
Type(() => AppFile)
|
59
|
-
], Holding.prototype, "file", void 0);
|
60
|
-
__decorate([
|
61
|
-
Type(() => HoldingSale),
|
62
|
-
Transform(({ value }) => new Collection(value))
|
63
|
-
], Holding.prototype, "sales", void 0);
|
64
|
-
__decorate([
|
65
|
-
Transform(({ obj }) => {
|
66
|
-
const type = plainToClass(HoldingType, obj.type);
|
67
|
-
if (type) {
|
68
|
-
return type.isOther() ? null : type.category;
|
69
|
-
}
|
70
|
-
if (obj.category) {
|
71
|
-
return [
|
72
|
-
HoldingTypeCategoryEnum.COLLECTIBLE,
|
73
|
-
HoldingTypeCategoryEnum.UNLISTED_STOCK,
|
74
|
-
HoldingTypeCategoryEnum.UNLISTED_UNIT,
|
75
|
-
HoldingTypeCategoryEnum.OTHER
|
76
|
-
].includes(obj.category) ? null : obj.category;
|
77
|
-
}
|
78
|
-
return HoldingTypeCategoryEnum.STOCK;
|
79
|
-
}, { toClassOnly: true }),
|
80
|
-
Expose({ toClassOnly: true })
|
81
|
-
], Holding.prototype, "category", void 0);
|
82
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvaG9sZGluZy9ob2xkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDMUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUMvQixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNsQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0F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aGFzZVZhbHVlO1xuICB9XG5cbiAgZ2V0U2hhcmVkTWFya2V0VmFsdWUoKTogbnVtYmVyIHtcbiAgICBsZXQgc2hhcmVkTWFya2V0VmFsdWUgPSAwO1xuICAgIHRoaXMudHJhZGVzLml0ZW1zLmZvckVhY2goaG9sZGluZyA9PiB7XG4gICAgICBzaGFyZWRNYXJrZXRWYWx1ZSArPSBob2xkaW5nLm93bmVyc2hpcFBlcmNlbnQgLyAxMDAgKiBob2xkaW5nLm1hcmtldFZhbHVlXG4gICAgfSk7XG5cbiAgICByZXR1cm4gc2hhcmVkTWFya2V0VmFsdWU7XG4gIH1cblxuICBnZXRHcm93dGhDb2VmZmljaWVudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLm1hcmtldFZhbHVlIC8gdGhpcy5wdXJjaGFzZVZhbHVlIC0gMTtcbiAgfVxuXG4gIGdldFVucmVhbGlzZWRQcm9maXQoKSB7XG4gICAgcmV0dXJuIHRoaXMubWFya2V0VmFsdWUgLSB0aGlzLnB1cmNoYXNlVmFsdWU7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,8 @@
|
|
1
|
-
export * from './holding';
|
1
|
+
export * from './holding-trade';
|
2
2
|
export * from './holding-type';
|
3
3
|
export * from './holding-sale';
|
4
4
|
export * from './holding-type-exchange';
|
5
5
|
export * from './holding-reinvest';
|
6
|
-
export * from './holding-import';
|
7
|
-
|
6
|
+
export * from './holding-trade-import';
|
7
|
+
export * from './holding';
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2hvbGRpbmcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxXQUFXLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hvbGRpbmctdHJhZGUnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLXR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLXNhbGUnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLXR5cGUtZXhjaGFuZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLXJlaW52ZXN0JztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy10cmFkZS1pbXBvcnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbiJdfQ==
|
@@ -156,7 +156,7 @@ export class AccountSetupService {
|
|
156
156
|
}
|
157
157
|
return this.setItemStatus(this.items.findBy('isBankFeeds', true), this.bankAccountsService.getArray());
|
158
158
|
}
|
159
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccountSetupService, deps: [{ token: i1.SetupItemService }, { token: i2.PropertyService }, { token: i2.IncomeSourceService }, { token: i2.BankAccountService }, { token: i2.TransactionAllocationService }, { token: i2.VehicleClaimService }, { token: i2.TransactionService }, { token: i2.SoleBusinessService }, { token: i2.
|
159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccountSetupService, deps: [{ token: i1.SetupItemService }, { token: i2.PropertyService }, { token: i2.IncomeSourceService }, { token: i2.BankAccountService }, { token: i2.TransactionAllocationService }, { token: i2.VehicleClaimService }, { token: i2.TransactionService }, { token: i2.SoleBusinessService }, { token: i2.HoldingTradeService }, { token: i2.UserService }, { token: i2.ClientMovementService }, { token: i2.ClientInviteService }, { token: i2.EmployeeService }, { token: i2.EmployeeInviteService }, { token: i2.FirmService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
160
160
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccountSetupService, providedIn: 'root' }); }
|
161
161
|
}
|
162
162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AccountSetupService, decorators: [{
|
@@ -164,5 +164,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
164
164
|
args: [{
|
165
165
|
providedIn: 'root'
|
166
166
|
}]
|
167
|
-
}], ctorParameters: () => [{ type: i1.SetupItemService }, { type: i2.PropertyService }, { type: i2.IncomeSourceService }, { type: i2.BankAccountService }, { type: i2.TransactionAllocationService }, { type: i2.VehicleClaimService }, { type: i2.TransactionService }, { type: i2.SoleBusinessService }, { type: i2.
|
168
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2FjY291bnQtc2V0dXAvYWNjb3VudC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQjNDLE9BQU8sRUFDTCwwQkFBMEIsRUFHMUIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUN0QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBYyxhQUFhLEVBQUUsRUFBR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PTEVfVEFOS107XG5cbiAgICBpZiAoIWludGVyc2VjdGlvbihiYW5rRmVlZHNSb2xlcywgdGhpcy51c2VyLnJvbGVzKS5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBvZihudWxsKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5zZXRJdGVtU3RhdHVzKFxuICAgICAgdGhpcy5pdGVtcy5maW5kQnkoJ2lzQmFua0ZlZWRzJywgdHJ1ZSksXG4gICAgICB0aGlzLmJhbmtBY2NvdW50c1NlcnZpY2UuZ2V0QXJyYXkoKVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
167
|
+
}], ctorParameters: () => [{ type: i1.SetupItemService }, { type: i2.PropertyService }, { type: i2.IncomeSourceService }, { type: i2.BankAccountService }, { type: i2.TransactionAllocationService }, { type: i2.VehicleClaimService }, { type: i2.TransactionService }, { type: i2.SoleBusinessService }, { type: i2.HoldingTradeService }, { type: i2.UserService }, { type: i2.ClientMovementService }, { type: i2.ClientInviteService }, { type: i2.EmployeeService }, { type: i2.EmployeeInviteService }, { type: i2.FirmService }] });
|
168
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2FjY291bnQtc2V0dXAvYWNjb3VudC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQjNDLE9BQU8sRUFDTCwwQkFBMEIsRUFHMUIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUN0QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBYyxhQUFhLEVBQUUsRU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ZXNFbnVtLldPUktfVEFOSywgVXNlclJvbGVzRW51bS5TT0xFX1RBTktdO1xuXG4gICAgaWYgKCFpbnRlcnNlY3Rpb24oYmFua0ZlZWRzUm9sZXMsIHRoaXMudXNlci5yb2xlcykubGVuZ3RoKSB7XG4gICAgICByZXR1cm4gb2YobnVsbCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuc2V0SXRlbVN0YXR1cyhcbiAgICAgIHRoaXMuaXRlbXMuZmluZEJ5KCdpc0JhbmtGZWVkcycsIHRydWUpLFxuICAgICAgdGhpcy5iYW5rQWNjb3VudHNTZXJ2aWNlLmdldEFycmF5KClcbiAgICApO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export var HoldingTradeImportMessagesEnum;
|
2
|
+
(function (HoldingTradeImportMessagesEnum) {
|
3
|
+
HoldingTradeImportMessagesEnum["CREATED"] = "Import created successfully";
|
4
|
+
HoldingTradeImportMessagesEnum["UPDATED"] = "Import updated successfully";
|
5
|
+
HoldingTradeImportMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this import?";
|
6
|
+
HoldingTradeImportMessagesEnum["DELETED"] = "Import deleted successfully";
|
7
|
+
HoldingTradeImportMessagesEnum["DELETE_ERROR"] = "Import including sold assets can not be deleted";
|
8
|
+
})(HoldingTradeImportMessagesEnum || (HoldingTradeImportMessagesEnum = {}));
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS1pbXBvcnQtbWVzc2FnZXMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL2hvbGRpbmcvaG9sZGluZy10cmFkZS1pbXBvcnQvaG9sZGluZy10cmFkZS1pbXBvcnQtbWVzc2FnZXMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSw4QkFNWDtBQU5ELFdBQVksOEJBQThCO0lBQ3hDLHlFQUF1QyxDQUFBO0lBQ3ZDLHlFQUF1QyxDQUFBO0lBQ3ZDLGlHQUErRCxDQUFBO0lBQy9ELHlFQUF1QyxDQUFBO0lBQ3ZDLGtHQUFnRSxDQUFBO0FBQ2xFLENBQUMsRUFOVyw4QkFBOEIsS0FBOUIsOEJBQThCLFFBTXpDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gSG9sZGluZ1RyYWRlSW1wb3J0TWVzc2FnZXNFbnVtIHtcbiAgQ1JFQVRFRCA9ICdJbXBvcnQgY3JlYXRlZCBzdWNjZXNzZnVsbHknLFxuICBVUERBVEVEID0gJ0ltcG9ydCB1cGRhdGVkIHN1Y2Nlc3NmdWxseScsXG4gIENPTkZJUk1fREVMRVRFID0gJ0FyZSB5b3Ugc3VyZSB5b3Ugd2FudCB0byBkZWxldGUgdGhpcyBpbXBvcnQ/JyxcbiAgREVMRVRFRCA9ICdJbXBvcnQgZGVsZXRlZCBzdWNjZXNzZnVsbHknLFxuICBERUxFVEVfRVJST1IgPSAnSW1wb3J0IGluY2x1ZGluZyBzb2xkIGFzc2V0cyBjYW4gbm90IGJlIGRlbGV0ZWQnXG59XG4iXX0=
|
package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.mjs
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { RestService } from '../../rest';
|
3
|
+
import { Collection } from '../../../../collections';
|
4
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
5
|
+
import { HoldingTradeImport } from '../../../../models';
|
6
|
+
import { map } from 'rxjs/operators';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export class HoldingTradeImportService extends RestService {
|
9
|
+
constructor() {
|
10
|
+
super(...arguments);
|
11
|
+
this.modelClass = HoldingTradeImport;
|
12
|
+
this.collectionClass = (Collection);
|
13
|
+
this.endpointUri = 'holding-trade-imports';
|
14
|
+
this.disabledMethods = ['post', 'postBatch', 'putBatch', 'deleteBatch'];
|
15
|
+
this.roles = [UserRolesEnum.HOLDING_TANK];
|
16
|
+
}
|
17
|
+
import(file, exchangeId, isTaxFree) {
|
18
|
+
const formData = new FormData();
|
19
|
+
formData.append('file', file);
|
20
|
+
formData.append('exchangeId', exchangeId.toString());
|
21
|
+
formData.append('isTaxFree', (isTaxFree ? 1 : 0).toString());
|
22
|
+
return this.http.post(this.apiUrl, formData).pipe(map((response) => {
|
23
|
+
const holdingTradeImport = this.createModelInstance(response);
|
24
|
+
this.handleResponse([holdingTradeImport], 'post');
|
25
|
+
return holdingTradeImport;
|
26
|
+
}));
|
27
|
+
}
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeImportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
29
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeImportService, providedIn: 'root' }); }
|
30
|
+
}
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeImportService, decorators: [{
|
32
|
+
type: Injectable,
|
33
|
+
args: [{
|
34
|
+
providedIn: 'root'
|
35
|
+
}]
|
36
|
+
}] });
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS1pbXBvcnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL2hvbGRpbmcvaG9sZG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kZUltcG9ydD4ge1xuICAgIGNvbnN0IGZvcm1EYXRhOiBGb3JtRGF0YSA9IG5ldyBGb3JtRGF0YSgpO1xuICAgIGZvcm1EYXRhLmFwcGVuZCgnZmlsZScsIGZpbGUpO1xuICAgIGZvcm1EYXRhLmFwcGVuZCgnZXhjaGFuZ2VJZCcsIGV4Y2hhbmdlSWQudG9TdHJpbmcoKSk7XG4gICAgZm9ybURhdGEuYXBwZW5kKCdpc1RheEZyZWUnLCAoaXNUYXhGcmVlID8gMSA6IDApLnRvU3RyaW5nKCkpO1xuXG4gICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0KHRoaXMuYXBpVXJsLCBmb3JtRGF0YSkucGlwZShcbiAgICAgIG1hcCgocmVzcG9uc2U6IG9iamVjdCkgPT4ge1xuICAgICAgICBjb25zdCBob2xkaW5nVHJhZGVJbXBvcnQ6IEhvbGRpbmdUcmFkZUltcG9ydCA9IHRoaXMuY3JlYXRlTW9kZWxJbnN0YW5jZShyZXNwb25zZSk7XG4gICAgICAgIHRoaXMuaGFuZGxlUmVzcG9uc2UoW2hvbGRpbmdUcmFkZUltcG9ydF0sICdwb3N0Jyk7XG5cbiAgICAgICAgcmV0dXJuIGhvbGRpbmdUcmFkZUltcG9ydDtcbiAgICAgIH0pXG4gICAgKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export var HoldingTradeMessagesEnum;
|
2
|
+
(function (HoldingTradeMessagesEnum) {
|
3
|
+
HoldingTradeMessagesEnum["CREATED"] = "Holding created successfully";
|
4
|
+
HoldingTradeMessagesEnum["UPDATED"] = "Holding updated successfully";
|
5
|
+
HoldingTradeMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this holding?";
|
6
|
+
HoldingTradeMessagesEnum["DELETED"] = "Holding deleted successfully";
|
7
|
+
HoldingTradeMessagesEnum["DELETE_ASSET_ERROR"] = "In the \"SOLD\" section click on the \"REDO\" button for the current asset";
|
8
|
+
HoldingTradeMessagesEnum["REINVESTED"] = "Reinvested successfully";
|
9
|
+
})(HoldingTradeMessagesEnum || (HoldingTradeMessagesEnum = {}));
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS1tZXNzYWdlcy5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvaG9sZGluZy9ob2xkaW5nLXRyYWRlLW1lc3NhZ2VzLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksd0JBT1g7QUFQRCxXQUFZLHdCQUF3QjtJQUNsQyxvRUFBd0MsQ0FBQTtJQUN4QyxvRUFBd0MsQ0FBQTtJQUN4Qyw0RkFBZ0UsQ0FBQTtJQUNoRSxvRUFBd0MsQ0FBQTtJQUN4Qyw2SEFBNkYsQ0FBQTtJQUM3RixrRUFBc0MsQ0FBQTtBQUN4QyxDQUFDLEVBUFcsd0JBQXdCLEtBQXhCLHdCQUF3QixRQU9uQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEhvbGRpbmdUcmFkZU1lc3NhZ2VzRW51bSB7XG4gIENSRUFURUQgPSAnSG9sZGluZyBjcmVhdGVkIHN1Y2Nlc3NmdWxseScsXG4gIFVQREFURUQgPSAnSG9sZGluZyB1cGRhdGVkIHN1Y2Nlc3NmdWxseScsXG4gIENPTkZJUk1fREVMRVRFID0gJ0FyZSB5b3Ugc3VyZSB5b3Ugd2FudCB0byBkZWxldGUgdGhpcyBob2xkaW5nPycsXG4gIERFTEVURUQgPSAnSG9sZGluZyBkZWxldGVkIHN1Y2Nlc3NmdWxseScsXG4gIERFTEVURV9BU1NFVF9FUlJPUiA9ICdJbiB0aGUgXCJTT0xEXCIgc2VjdGlvbiBjbGljayBvbiB0aGUgXCJSRURPXCIgYnV0dG9uIGZvciB0aGUgY3VycmVudCBhc3NldCcsXG4gIFJFSU5WRVNURUQgPSAnUmVpbnZlc3RlZCBzdWNjZXNzZnVsbHknXG59XG4iXX0=
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
2
|
+
import { AppEventTypeEnum, HoldingSale, HoldingTrade } from '../../../models';
|
3
|
+
import { RestService } from '../rest';
|
4
|
+
import { HoldingTradeCollection } from '../../../collections';
|
5
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
6
|
+
import { HoldingTradeImport } from '../../../models';
|
7
|
+
import { UserEventTypeTypeEnum } from '../../../db/Enums/user-event-type-type.enum';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export class HoldingTradeService extends RestService {
|
10
|
+
constructor(environment) {
|
11
|
+
super(environment);
|
12
|
+
this.environment = environment;
|
13
|
+
this.modelClass = HoldingTrade;
|
14
|
+
this.collectionClass = HoldingTradeCollection;
|
15
|
+
this.endpointUri = 'holding-trades';
|
16
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
17
|
+
this.roles = [UserRolesEnum.HOLDING_TANK];
|
18
|
+
this.listenEvents();
|
19
|
+
this.listenNotifications();
|
20
|
+
}
|
21
|
+
listenEvents() {
|
22
|
+
this.listenCSE(HoldingSale, this.refreshCache, ['post', 'put', 'delete']);
|
23
|
+
this.listenCSE(HoldingTradeImport, this.refreshCache, ['post', 'put', 'delete']);
|
24
|
+
}
|
25
|
+
listenNotifications() {
|
26
|
+
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
27
|
+
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.SHARESIGHT_IMPORT) {
|
28
|
+
this.refreshCache();
|
29
|
+
}
|
30
|
+
});
|
31
|
+
}
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
33
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeService, providedIn: 'root' }); }
|
34
|
+
}
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HoldingTradeService, decorators: [{
|
36
|
+
type: Injectable,
|
37
|
+
args: [{
|
38
|
+
providedIn: 'root'
|
39
|
+
}]
|
40
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
41
|
+
type: Inject,
|
42
|
+
args: ['environment']
|
43
|
+
}] }] });
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvaG9sZGluZy9ob2xkaW5nLXRyYWRlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFbkQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLFdBQVcsRUFBRSxZQUFZLEVBQWdCLE1BQU0saUJBQWlCLENBQUM7QUFDNUYsT0FBTyxFQUFjLFdBQVcsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNsRCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUU5RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0saUJBQWlCLENB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kaW5nVHJhZGVJbXBvcnQsIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnLCAncHV0JywgJ2RlbGV0ZSddKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdGVuTm90aWZpY2F0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50RGlzcGF0Y2hlclNlcnZpY2Uub24oQXBwRXZlbnRUeXBlRW51bS5OT1RJRklDQVRJT05fQURERUQpLnN1YnNjcmliZSgobm90aWZpY2F0aW9uOiBOb3RpZmljYXRpb24pOiB2b2lkID0+IHtcbiAgICAgIGlmICghbm90aWZpY2F0aW9uLmlzUmVhZCAmJiBub3RpZmljYXRpb24uZXZlbnRUeXBlID09PSBVc2VyRXZlbnRUeXBlVHlwZUVudW0uU0hBUkVTSUdIVF9JTVBPUlQpIHtcbiAgICAgICAgdGhpcy5yZWZyZXNoQ2FjaGUoKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -1,10 +1,9 @@
|
|
1
|
-
export * from './holding.service';
|
1
|
+
export * from './holding-trade.service';
|
2
2
|
export * from './holding-type.service';
|
3
3
|
export * from './holding-sale.service';
|
4
|
-
export * from './holding-import/holding-import.service';
|
5
|
-
export * from './holding-import/holding-import-messages.enum';
|
4
|
+
export * from './holding-trade-import/holding-trade-import.service';
|
5
|
+
export * from './holding-trade-import/holding-trade-import-messages.enum';
|
6
6
|
export * from '../../json/holding/holding-type-exchange.service';
|
7
|
-
export * from './holding-messages.enum';
|
8
|
-
export * from './holding-sale-messages.enum';
|
7
|
+
export * from './holding-trade-messages.enum';
|
9
8
|
export * from './holding-type-messages.enum';
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90d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