taxtank-core 0.30.52 → 0.30.54

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.
@@ -1,8 +1,7 @@
1
- import { Dictionary, Holding, HoldingSale, HoldingType } from '../../models';
2
- import { ExportableCollection } from "../exportable.collection";
3
- import { ExportCell } from "../../models/export/export-cell";
1
+ import { Dictionary, Holding, HoldingSale } from '../../models';
2
+ import { ExportableCollection } from '../exportable.collection';
3
+ import { ExportCell } from '../../models/export/export-cell';
4
4
  export declare class HoldingSaleCollection extends ExportableCollection<HoldingSale> {
5
- holdingTypesById: Dictionary<HoldingType>;
6
5
  holdingsById: Dictionary<Holding>;
7
6
  /**
8
7
  * @TODO vik remove?
@@ -1,8 +1,7 @@
1
- import { ExportableCollection } from "../exportable.collection";
2
- import { Dictionary, Holding, HoldingType } from "../../models";
3
- import { ExportCell } from "../../models/export/export-cell";
1
+ import { ExportableCollection } from '../exportable.collection';
2
+ import { Holding } from '../../models';
3
+ import { ExportCell } from '../../models/export/export-cell';
4
4
  export declare class HoldingCollection extends ExportableCollection<Holding> {
5
- holdingTypesById: Dictionary<HoldingType>;
6
5
  getExportHeader(): string[];
7
6
  getExportFooter(): ExportCell[];
8
7
  getExportBody(): ExportCell[][];
@@ -10,7 +9,7 @@ export declare class HoldingCollection extends ExportableCollection<Holding> {
10
9
  getCryptos(): this;
11
10
  getOthers(): this;
12
11
  getPurchaseValue(): number;
13
- getMarketValue(holdingTypesById: Dictionary<HoldingType>): number;
14
- getGrowthCoefficient(holdingTypesById: Dictionary<HoldingType>): number;
12
+ get marketValue(): number;
13
+ getGrowthCoefficient(): number;
15
14
  getUnsold(): this;
16
15
  }
@@ -14,6 +14,5 @@ export declare enum ChartAccountsCategoryEnum {
14
14
  SOLE_EXPENSE = 13,
15
15
  SOLE_DEPRECIATION = 14,
16
16
  HOLDING_INCOME = 15,
17
- HOLDING_EXPENSE = 16,
18
- HOLDING_UNTAXED_INCOME = 17
17
+ HOLDING_EXPENSE = 16
19
18
  }
@@ -0,0 +1,9 @@
1
+ export declare enum ChartAccountsHoldingUntaxedIncomeListEnum {
2
+ FOREIGN_EXCHANGE_GAINS = 523,
3
+ DIVIDENDS = 542,
4
+ INTEREST_ON_TERM_DEPOSITS = 873,
5
+ INTEREST_FROM_OTHER_INVESTMENTS = 874,
6
+ INTEREST_DISTRIBUTIONS_FROM_PARTNERSHIPS = 875,
7
+ INTEREST_DISTRIBUTIONS_FROM_TRUSTS = 876,
8
+ STAKING = 877
9
+ }
@@ -11,3 +11,4 @@ export * from './chart-accounts-salary-adjustments-list.enum';
11
11
  export * from './chart-accounts-salary-included-list.enum';
12
12
  export * from './chart-accounts-type.enum';
13
13
  export * from './chart-accounts-keep-sign.enum';
14
+ export * from './chart-accounts-holding-untaxed-income-list.enum';
@@ -30,12 +30,12 @@ export declare class Holding extends AbstractModel {
30
30
  * Get current market price
31
31
  * @TODO vik/alex no need to pass holdingType, should come from backend
32
32
  */
33
- getMarketValue(holdingType: HoldingType): number;
33
+ get marketValue(): number;
34
34
  /**
35
35
  * Get percent difference between current and buy price
36
36
  * @TODO vik/alex no need to pass holdingType, should come from backend
37
37
  */
38
- getGrowthCoefficient(holdingType: HoldingType): number;
38
+ get growthCoefficient(): number;
39
39
  heldMoreYear(): boolean;
40
40
  isSold(): boolean;
41
41
  }
@@ -2,5 +2,6 @@ export declare enum HoldingMessagesEnum {
2
2
  CREATED = "Holding created successfully",
3
3
  UPDATED = "Holding updated successfully",
4
4
  CONFIRM_DELETE = "Are you sure you want to delete this holding?",
5
- DELETED = "Holding deleted successfully"
5
+ DELETED = "Holding deleted successfully",
6
+ DELETE_ASSET_ERROR = "In the \"SOLD\" section click on the \"REDO\" button for the current asset"
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.52",
3
+ "version": "0.30.54",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",