taxtank-core 0.33.63 → 0.33.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.63",
3
+ "version": "0.33.64",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -12,6 +12,7 @@ export declare class HoldingSale extends AssetSale {
12
12
  isHalfExemption: boolean;
13
13
  ownershipPercent: number;
14
14
  isTaxFree: boolean;
15
+ buyDate: Date;
15
16
  holdingType: HoldingType;
16
17
  get concession(): string;
17
18
  getCostBase(holding: HoldingTrade): number;
@@ -39,4 +39,7 @@ export declare class HoldingTrade extends AbstractModel {
39
39
  * get current category, in holding we are interested in 3 main categories: stock/crypto/other
40
40
  */
41
41
  category: HoldingTypeCategoryEnum;
42
+ get categoryLabel(): string;
43
+ get name(): string;
44
+ get ticker(): string;
42
45
  }
@@ -2,12 +2,16 @@ import { HoldingType as HoldingTypeBase } from '../../../db/Models';
2
2
  import { HoldingType } from '../../../models';
3
3
  import { RestMethod, RestService } from '../rest';
4
4
  import { HoldingTypeCollection } from '../../../collections';
5
+ import { IEventListener } from '../../../interfaces';
5
6
  import * as i0 from "@angular/core";
6
- export declare class HoldingTypeService extends RestService<HoldingTypeBase, HoldingType, HoldingTypeCollection> {
7
+ export declare class HoldingTypeService extends RestService<HoldingTypeBase, HoldingType, HoldingTypeCollection> implements IEventListener {
8
+ protected environment: any;
7
9
  modelClass: typeof HoldingType;
8
10
  collectionClass: typeof HoldingTypeCollection;
9
11
  endpointUri: string;
10
12
  disabledMethods: RestMethod[];
13
+ constructor(environment: any);
14
+ listenEvents(): void;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTypeService, never>;
12
16
  static ɵprov: i0.ɵɵInjectableDeclaration<HoldingTypeService>;
13
17
  }