taxtank-core 1.0.11 → 1.0.14

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.11",
3
+ "version": "1.0.14",
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
1
  export declare enum SharesightDetailsMessagesEnum {
2
- HOLDING_CONNECTED = "We're syncing your ShareSight trades, which might take a few minutes.",
2
+ HOLDING_CONNECTED = "We're retrieving your Sharesight portfolio details. To choose which ones to share with TaxTank, head to the Integrations tab and click the 'Manage Portfolios' button.",
3
3
  PROPERTY_CONNECTED = "We're syncing your properties, which might take a few minutes.",
4
4
  DISCONNECTED = "Sharesight disconnected",
5
5
  DISCONNECT_CONFIRM = "Disconnecting ShareSight means we can no longer sync data. Any trades already imported will become editable in TaxTank.",
@@ -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,9 @@
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
+ isTaxFree: boolean;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { SharesightDetails } from '../sharesight-details';
2
+ export interface SharesightPortfolioInterface {
3
+ sharesightDetails: SharesightDetails;
4
+ name: string;
5
+ externalId: string;
6
+ isTaxFree: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum SharesightPortfolioMessages {
2
+ PUT = "We\u2019re syncing your Sharesight trades, which might take a few minutes. We\u2019ll let you know when they\u2019re ready."
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
+ }