taxtank-core 1.0.9 → 1.0.12

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": "1.0.9",
3
+ "version": "1.0.12",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.0.2",
@@ -47,6 +47,7 @@ export declare class Collection<Model extends object> implements Iterable<Model>
47
47
  */
48
48
  unshift(...items: Model[]): this;
49
49
  remove(items: Model[], path?: string): this;
50
+ toggle(item: Model, path?: string): this;
50
51
  /**
51
52
  * @TODO it's filter, not remove
52
53
  */
@@ -6,4 +6,3 @@ export * from './client-portfolio-chart-data';
6
6
  export * from './client-portfolio-report';
7
7
  export * from './capital-loss';
8
8
  export * from './capital-loss.interface';
9
- export * from './sharesight';
@@ -20,6 +20,7 @@ export * from './transaction';
20
20
  export * from './user';
21
21
  export * from './holding';
22
22
  export * from './client';
23
+ export * from './sharesight';
23
24
  export * from './income-source';
24
25
  export * from './asset-sale';
25
26
  export * from './budget';
@@ -1,3 +1,4 @@
1
1
  export * from './sharesight-details-messages.enum';
2
2
  export * from './sharesight-details';
3
3
  export * from './sharesight-details.interface';
4
+ export * from './sharesight-portfolio';
@@ -1,5 +1,5 @@
1
- import { AbstractModel } from '../../../db/Models';
2
- import { ClientDetails } from '../client-details';
1
+ import { AbstractModel } from '../../db/Models';
2
+ import { ClientDetails } from '../client';
3
3
  import { SharesightDetailsInterface } from './sharesight-details.interface';
4
4
  export declare class SharesightDetails extends AbstractModel implements SharesightDetailsInterface {
5
5
  clientDetails: ClientDetails;
@@ -1,4 +1,4 @@
1
- import { ClientDetails } from '../client-details';
1
+ import { ClientDetails } from '../client';
2
2
  export interface SharesightDetailsInterface {
3
3
  clientDetails: ClientDetails;
4
4
  code: string;
@@ -0,0 +1,3 @@
1
+ export * from './sharesight-portfolio';
2
+ export * from './sharesight-portfolio.interface';
3
+ export * from './sharesight-portfolio.messages';
@@ -0,0 +1,8 @@
1
+ import { SharesightPortfolioInterface } from './sharesight-portfolio.interface';
2
+ import { SharesightDetails } from '../sharesight-details';
3
+ import { AbstractModel } from '../../../db/Models';
4
+ export declare class SharesightPortfolio extends AbstractModel implements SharesightPortfolioInterface {
5
+ sharesightDetails: SharesightDetails;
6
+ name: string;
7
+ externalId: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { SharesightDetails } from '../sharesight-details';
2
+ export interface SharesightPortfolioInterface {
3
+ sharesightDetails: SharesightDetails;
4
+ name: string;
5
+ externalId: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum SharesightPortfolioMessages {
2
+ PUT = "Portfolios updated"
3
+ }
@@ -2,4 +2,3 @@ export * from './annual-client-details.service';
2
2
  export * from './occupation/occupation.service';
3
3
  export * from './client-coupon.service';
4
4
  export * from './capital-loss';
5
- export * from './sharesight-details.service';
@@ -29,3 +29,4 @@ export * from './holding';
29
29
  export * from './home-office';
30
30
  export * from './rest-messages.enum';
31
31
  export * from './aussie';
32
+ export * from './sharesight';
@@ -0,0 +1,2 @@
1
+ export * from './sharesight-details.service';
2
+ export * from './sharesight-portfolio.service';
@@ -0,0 +1,14 @@
1
+ import { RestMethod, RestService } from '../rest';
2
+ import { Collection } from '../../../collections';
3
+ import { SharesightPortfolio, SharesightPortfolioInterface } from '../../../models';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SharesightPortfolioService extends RestService<SharesightPortfolioInterface, SharesightPortfolio, Collection<SharesightPortfolio>> {
7
+ modelClass: typeof SharesightPortfolio;
8
+ collectionClass: typeof Collection;
9
+ endpointUri: string;
10
+ disabledMethods: RestMethod[];
11
+ getExternal(): Observable<Collection<SharesightPortfolio>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharesightPortfolioService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SharesightPortfolioService>;
14
+ }
@@ -1,9 +1,8 @@
1
1
  import { VehicleClaim as VehicleClaimBase } from '../../../db/Models/vehicle/vehicle-claim';
2
2
  import { VehicleClaim } from '../../../models';
3
3
  import { RestService } from '../rest';
4
- import { Observable } from 'rxjs';
5
4
  import { UserRolesEnum } from 'taxtank-core/common';
6
- import { BestVehicleLogbookCollection, VehicleClaimCollection } from '../../../collections';
5
+ import { VehicleClaimCollection } from '../../../collections';
7
6
  import { IEventListener } from '../../../interfaces';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class VehicleClaimService extends RestService<VehicleClaimBase, VehicleClaim, VehicleClaimCollection> implements IEventListener {
@@ -14,11 +13,6 @@ export declare class VehicleClaimService extends RestService<VehicleClaimBase, V
14
13
  roles: UserRolesEnum[];
15
14
  constructor(environment: any);
16
15
  listenEvents(): void;
17
- /**
18
- * Update workUsage for all vehicle claims if logbook best period changed
19
- * @TODO Vik: Best period move this and related logic to backend
20
- */
21
- updateWorkUsage(bestLogbooks: BestVehicleLogbookCollection): Observable<VehicleClaim[]>;
22
16
  static ɵfac: i0.ɵɵFactoryDeclaration<VehicleClaimService, never>;
23
17
  static ɵprov: i0.ɵɵInjectableDeclaration<VehicleClaimService>;
24
18
  }