taxtank-core 0.33.59 → 0.33.61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/esm2022/src/lib/collections/asset-sale.collection.mjs +4 -1
  2. package/esm2022/src/lib/collections/collection-dictionary.mjs +10 -1
  3. package/esm2022/src/lib/collections/collection.mjs +1 -1
  4. package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +3 -3
  5. package/esm2022/src/lib/collections/holding/holding-trade.collection.mjs +78 -0
  6. package/esm2022/src/lib/collections/holding/holding.collection.mjs +19 -54
  7. package/esm2022/src/lib/collections/holding/index.mjs +3 -2
  8. package/esm2022/src/lib/db/Enums/holding/holding-trade-type.enum.mjs +6 -0
  9. package/esm2022/src/lib/db/Enums/holding/holding-type-category.enum.mjs +1 -1
  10. package/esm2022/src/lib/db/Enums/holding/index.mjs +2 -1
  11. package/esm2022/src/lib/db/Models/holding/holding-sale.mjs +1 -1
  12. package/esm2022/src/lib/db/Models/holding/holding-trade-import.mjs +3 -0
  13. package/esm2022/src/lib/db/Models/holding/holding-trade.mjs +3 -0
  14. package/esm2022/src/lib/db/Models/holding/index.mjs +2 -2
  15. package/esm2022/src/lib/forms/abstract.form.mjs +12 -2
  16. package/esm2022/src/lib/forms/bank/bank-account/bank-account-properties.form.mjs +3 -4
  17. package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +14 -14
  18. package/esm2022/src/lib/forms/holding/holding-sale.form.mjs +3 -2
  19. package/esm2022/src/lib/forms/holding/holding-trade/holding-trade-filter.form.mjs +25 -0
  20. package/esm2022/src/lib/forms/holding/holding-trade/holding-trade.form.mjs +30 -0
  21. package/esm2022/src/lib/forms/holding/holding-trade/index.mjs +3 -0
  22. package/esm2022/src/lib/forms/holding/holding-trade-import.form.mjs +25 -0
  23. package/esm2022/src/lib/forms/holding/index.mjs +3 -3
  24. package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +9 -9
  25. package/esm2022/src/lib/models/holding/holding-reinvest.mjs +4 -4
  26. package/esm2022/src/lib/models/holding/holding-sale.mjs +10 -1
  27. package/esm2022/src/lib/models/holding/holding-trade-import.mjs +16 -0
  28. package/esm2022/src/lib/models/holding/holding-trade.mjs +77 -0
  29. package/esm2022/src/lib/models/holding/holding-type-exchange.mjs +4 -1
  30. package/esm2022/src/lib/models/holding/holding-type.mjs +4 -1
  31. package/esm2022/src/lib/models/holding/holding.mjs +44 -71
  32. package/esm2022/src/lib/models/holding/index.mjs +4 -3
  33. package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +3 -3
  34. package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import-messages.enum.mjs +9 -0
  35. package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.mjs +37 -0
  36. package/esm2022/src/lib/services/http/holding/holding-trade-messages.enum.mjs +10 -0
  37. package/esm2022/src/lib/services/http/holding/holding-trade.service.mjs +44 -0
  38. package/esm2022/src/lib/services/http/holding/index.mjs +5 -6
  39. package/esm2022/src/lib/services/http/rest/rest.service.mjs +8 -6
  40. package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +5 -3
  41. package/fesm2022/taxtank-core.mjs +347 -193
  42. package/fesm2022/taxtank-core.mjs.map +1 -1
  43. package/package.json +1 -1
  44. package/src/lib/collections/asset-sale.collection.d.ts +3 -0
  45. package/src/lib/collections/collection-dictionary.d.ts +1 -0
  46. package/src/lib/collections/holding/holding-sale.collection.d.ts +4 -4
  47. package/src/lib/collections/holding/holding-trade.collection.d.ts +21 -0
  48. package/src/lib/collections/holding/holding.collection.d.ts +7 -10
  49. package/src/lib/collections/holding/index.d.ts +2 -1
  50. package/src/lib/db/Enums/holding/holding-trade-type.enum.d.ts +4 -0
  51. package/src/lib/db/Enums/holding/index.d.ts +1 -0
  52. package/src/lib/db/Models/holding/holding-sale.d.ts +2 -2
  53. package/src/lib/db/Models/holding/holding-trade-import.d.ts +8 -0
  54. package/src/lib/db/Models/holding/{holding.d.ts → holding-trade.d.ts} +1 -1
  55. package/src/lib/db/Models/holding/index.d.ts +1 -1
  56. package/src/lib/forms/abstract.form.d.ts +3 -1
  57. package/src/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +1 -1
  58. package/src/lib/forms/holding/holding-reinvest.form.d.ts +5 -5
  59. package/src/lib/forms/holding/holding-sale.form.d.ts +2 -2
  60. package/src/lib/forms/holding/holding-trade/holding-trade-filter.form.d.ts +9 -0
  61. package/src/lib/forms/holding/holding-trade/holding-trade.form.d.ts +9 -0
  62. package/src/lib/forms/holding/holding-trade/index.d.ts +2 -0
  63. package/src/lib/forms/holding/holding-trade-import.form.d.ts +8 -0
  64. package/src/lib/forms/holding/index.d.ts +2 -2
  65. package/src/lib/models/holding/holding-reinvest.d.ts +2 -2
  66. package/src/lib/models/holding/holding-sale.d.ts +16 -4
  67. package/src/lib/models/holding/holding-trade-import.d.ts +8 -0
  68. package/src/lib/models/holding/holding-trade.d.ts +41 -0
  69. package/src/lib/models/holding/holding-type-exchange.d.ts +3 -0
  70. package/src/lib/models/holding/holding-type.d.ts +3 -0
  71. package/src/lib/models/holding/holding.d.ts +18 -34
  72. package/src/lib/models/holding/index.d.ts +3 -2
  73. package/src/lib/services/account-setup/account-setup.service.d.ts +2 -2
  74. 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
  75. package/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.d.ts +17 -0
  76. package/src/lib/services/http/holding/{holding-messages.enum.d.ts → holding-trade-messages.enum.d.ts} +1 -1
  77. package/src/lib/services/http/holding/holding-trade.service.d.ts +20 -0
  78. package/src/lib/services/http/holding/index.d.ts +4 -5
  79. package/src/lib/services/http/rest/rest.service.d.ts +4 -4
  80. package/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +1 -3
  81. package/esm2022/src/lib/db/Models/holding/holding-import.mjs +0 -3
  82. package/esm2022/src/lib/db/Models/holding/holding.mjs +0 -3
  83. package/esm2022/src/lib/forms/holding/holding-import.form.mjs +0 -25
  84. package/esm2022/src/lib/forms/holding/holding.form.mjs +0 -28
  85. package/esm2022/src/lib/models/holding/holding-import.mjs +0 -16
  86. package/esm2022/src/lib/services/http/holding/holding-import/holding-import-messages.enum.mjs +0 -9
  87. package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +0 -37
  88. package/esm2022/src/lib/services/http/holding/holding-messages.enum.mjs +0 -10
  89. package/esm2022/src/lib/services/http/holding/holding-sale-messages.enum.mjs +0 -8
  90. package/esm2022/src/lib/services/http/holding/holding.service.mjs +0 -44
  91. package/src/lib/db/Models/holding/holding-import.d.ts +0 -8
  92. package/src/lib/forms/holding/holding-import.form.d.ts +0 -8
  93. package/src/lib/forms/holding/holding.form.d.ts +0 -8
  94. package/src/lib/models/holding/holding-import.d.ts +0 -8
  95. package/src/lib/services/http/holding/holding-import/holding-import.service.d.ts +0 -17
  96. package/src/lib/services/http/holding/holding-sale-messages.enum.d.ts +0 -6
  97. 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(...arguments);
14
- this.isTaxFree = false;
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
- * Get total purchasing price
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
- * Get current market price
29
- */
30
- get marketValue() {
31
- return this.currentQuantity * this.type.price;
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
- * Get percent difference between current and buy price
35
- * @TODO vik/alex no need to pass holdingType, should come from backend
36
+ * profit and loss
36
37
  */
37
- get growthCoefficient() {
38
- return this.type.price / this.price - 1;
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
- heldMoreYear() {
41
- const yearTime = 1000 * 60 * 60 * 24 * 365;
42
- return (new FinancialYear().startDate.getTime() - this.date.getTime()) > yearTime;
48
+ getGrowthCoefficient() {
49
+ return this.marketValue / this.purchaseValue - 1;
43
50
  }
44
- isSold() {
45
- return this.currentQuantity === 0;
51
+ getUnrealisedProfit() {
52
+ return this.marketValue - this.purchaseValue;
46
53
  }
47
54
  }
48
- __decorate([
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvaG9sZGluZy9ob2xkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDMUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUMvQixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNsQyxPQUFP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5cbiAgICByZXR1cm4gdGhpcy5wcmljZSAqIHF1YW50aXR5O1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCBjdXJyZW50IG1hcmtldCBwcmljZVxuICAgKi9cbiAgZ2V0IG1hcmtldFZhbHVlKCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuY3VycmVudFF1YW50aXR5ICogdGhpcy50eXBlLnByaWNlO1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCBwZXJjZW50IGRpZmZlcmVuY2UgYmV0d2VlbiBjdXJyZW50IGFuZCBidXkgcHJpY2VcbiAgICogQFRPRE8gdmlrL2FsZXggbm8gbmVlZCB0byBwYXNzIGhvbGRpbmdUeXBlLCBzaG91bGQgY29tZSBmcm9tIGJhY2tlbmRcbiAgICovXG4gIGdldCBncm93dGhDb2VmZmljaWVudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLnR5cGUucHJpY2UgLyB0aGlzLnByaWNlIC0gMTtcbiAgfVxuXG4gIGhlbGRNb3JlWWVhcigpOiBib29sZWFuIHtcbiAgICBjb25zdCB5ZWFyVGltZTogbnVtYmVyID0gMTAwMCAqIDYwICogNjAgKiAyNCAqIDM2NTtcblxuICAgIHJldHVybiAobmV3IEZpbmFuY2lhbFllYXIoKS5zdGFydERhdGUuZ2V0VGltZSgpIC0gdGhpcy5kYXRlLmdldFRpbWUoKSkgPiB5ZWFyVGltZTtcbiAgfVxuXG4gIGlzU29sZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5jdXJyZW50UXVhbnRpdHkgPT09IDA7XG4gIH1cbn1cbiJdfQ==
55
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvaG9sZGluZy9ob2xkaW5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1xuICAgIHJldHVybiB0aGlzLm1hcmtldFZhbHVlIC0gdGhpcy5wdXJjaGFzZVZhbHVlO1xuICB9XG5cbiAgZ2V0U2hhcmVkTWFya2V0VmFsdWUoKTogbnVtYmVyIHtcbiAgICBsZXQgc2hhcmVkTWFya2V0VmFsdWUgPSAwO1xuICAgIHRoaXMudHJhZGVzLml0ZW1zLmZvckVhY2goaG9sZGluZyA9PiB7XG4gICAgICBzaGFyZWRNYXJrZXRWYWx1ZSArPSBob2xkaW5nLm93bmVyc2hpcFBlcmNlbnQgLyAxMDAgKiBob2xkaW5nLm1hcmtldFZhbHVlXG4gICAgfSk7XG5cbiAgICByZXR1cm4gc2hhcmVkTWFya2V0VmFsdWU7XG4gIH1cblxuICBnZXRHcm93dGhDb2VmZmljaWVudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLm1hcmtldFZhbHVlIC8gdGhpcy5wdXJjaGFzZVZhbHVlIC0gMTtcbiAgfVxuXG4gIGdldFVucmVhbGlzZWRQcm9maXQoKSB7XG4gICAgcmV0dXJuIHRoaXMubWFya2V0VmFsdWUgLSB0aGlzLnB1cmNoYXNlVmFsdWU7XG4gIH1cbn1cbiJdfQ==
@@ -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
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2hvbGRpbmcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy10eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy1zYWxlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy10eXBlLWV4Y2hhbmdlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy1yZWludmVzdCc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmctaW1wb3J0JztcbiJdfQ==
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.HoldingService }, { token: i2.UserService }, { token: i2.ClientMovementService }, { token: i2.ClientInviteService }, { token: i2.EmployeeService }, { token: i2.EmployeeInviteService }, { token: i2.FirmService }], target: i0.ɵɵFactoryTarget.Injectable }); }
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.HoldingService }, { type: i2.UserService }, { type: i2.ClientMovementService }, { type: i2.ClientInviteService }, { type: i2.EmployeeService }, { type: i2.EmployeeInviteService }, { type: i2.FirmService }] });
168
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2FjY291bnQtc2V0dXAvYWNjb3VudC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQjNDLE9BQU8sRUFDTCwwQkFBMEIsRUFHMUIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUN0QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBYyxhQUFhLEVBQUUsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0MsT0FBTyxZQUFZLE1BQU0scUJBQXFCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFCQUF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y5pdGVtcy5maW5kQnkoJ2lzQmFua0ZlZWRzJywgdHJ1ZSksXG4gICAgICB0aGlzLmJhbmtBY2NvdW50c1NlcnZpY2UuZ2V0QXJyYXkoKVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2FjY291bnQtc2V0dXAvYWNjb3VudC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFtQjNDLE9BQU8sRUFDTCwwQkFBMEIsRUFHMUIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUN0QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBYyxhQUFhLEVBQUUsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0MsT0FBTyxZQUFZLE1BQU0scUJBQXFCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFCQUFxQixDQ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aXMuc2V0SXRlbVN0YXR1cyhcbiAgICAgIHRoaXMuaXRlbXMuZmluZEJ5KCdpc0JhbmtGZWVkcycsIHRydWUpLFxuICAgICAgdGhpcy5iYW5rQWNjb3VudHNTZXJ2aWNlLmdldEFycmF5KClcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -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=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS1pbXBvcnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL2hvbGRpbmcvaG9sZGluZy10cmFkZS1pbXBvcnQvaG9sZGluZy10cmFkZS1pbXBvcnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxXQUFXLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUVwRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUV4RCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBS3J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GVJbXBvcnQ6IEhvbGRpbmdUcmFkZUltcG9ydCA9IHRoaXMuY3JlYXRlTW9kZWxJbnN0YW5jZShyZXNwb25zZSk7XG4gICAgICAgIHRoaXMuaGFuZGxlUmVzcG9uc2UoW2hvbGRpbmdUcmFkZUltcG9ydF0sICdwb3N0Jyk7XG5cbiAgICAgICAgcmV0dXJuIGhvbGRpbmdUcmFkZUltcG9ydDtcbiAgICAgIH0pXG4gICAgKTtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy10cmFkZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvaG9sZGluZy9ob2xkaW5nLXRyYWRlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT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blxuICBjb25zdHJ1Y3RvcihASW5qZWN0KCdlbnZpcm9ubWVudCcpIHByb3RlY3RlZCBlbnZpcm9ubWVudDogYW55KSB7XG4gICAgc3VwZXIoZW52aXJvbm1lbnQpO1xuICAgIHRoaXMubGlzdGVuRXZlbnRzKCk7XG4gICAgdGhpcy5saXN0ZW5Ob3RpZmljYXRpb25zKCk7XG4gIH1cblxuICBsaXN0ZW5FdmVudHMoKTogdm9pZCB7XG4gICAgdGhpcy5saXN0ZW5DU0UoSG9sZGluZ1NhbGUsIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnLCAncHV0JywgJ2RlbGV0ZSddKTtcbiAgICB0aGlzLmxpc3RlbkNTRShIb2xkaW5nVHJhZGVJbXBvcnQsIHRoaXMucmVmcmVzaENhY2hlLCBbJ3Bvc3QnLCAncHV0JywgJ2RlbGV0ZSddKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdGVuTm90aWZpY2F0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50RGlzcGF0Y2hlclNlcnZpY2Uub24oQXBwRXZlbnRUeXBlRW51bS5OT1RJRklDQVRJT05fQURERUQpLnN1YnNjcmliZSgobm90aWZpY2F0aW9uOiBOb3RpZmljYXRpb24pOiB2b2lkID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9ob2xkaW5nL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nLXR5cGUuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmctc2FsZS5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy1pbXBvcnQvaG9sZGluZy1pbXBvcnQuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmctaW1wb3J0L2hvbGRpbmctaW1wb3J0LW1lc3NhZ2VzLmVudW0nO1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vanNvbi9ob2xkaW5nL2hvbGRpbmctdHlwZS1leG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lcy5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4uLy4uL2pzb24vaG9sZGluZy9ob2xkaW5nLXR5cGUtZXhjaGFuZ2Uuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmctdHJhZGUtbWVzc2FnZXMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbGRpbmctdHlwZS1tZXNzYWdlcy5lbnVtJztcbiJdfQ==
@@ -52,11 +52,7 @@ export class RestService extends DataService {
52
52
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
53
53
  */
54
54
  this.useBackendError = false;
55
- /**
56
- * messages that can be redefined in other classes to customize httpErrorMessages
57
- */
58
- this.customHttpErrorMessages = {};
59
- this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.customHttpErrorMessages };
55
+ this.httpErrorMessages = { ...HTTP_ERROR_MESSAGES, ...this.getCustomHttpErrorMessages() };
60
56
  }
61
57
  get apiUrl() {
62
58
  return `${this.environment.apiV2}/${this.endpointUri}`;
@@ -199,6 +195,12 @@ export class RestService extends DataService {
199
195
  }
200
196
  }), catchError((error) => this.handleError(error)));
201
197
  }
198
+ /**
199
+ * method with messages that can be redefined in other classes to customize httpErrorMessages
200
+ */
201
+ getCustomHttpErrorMessages() {
202
+ return {};
203
+ }
202
204
  /**
203
205
  * Handle response errors - shows error in toast
204
206
  * and throws error further
@@ -327,4 +329,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
327
329
  type: Inject,
328
330
  args: ['environment']
329
331
  }] }] });
330
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2h0dHAvcmVzdC9yZXN0LnNlcnZpY2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