taxtank-core 0.33.64 → 0.33.65

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.64",
3
+ "version": "0.33.65",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -22,6 +22,7 @@ export declare class BankAccountCollection extends Collection<BankAccount> {
22
22
  */
23
23
  getActive(): BankAccountCollection;
24
24
  getLoanAccounts(): BankAccountCollection;
25
+ getLoanAndOffsetAccounts(): BankAccountCollection;
25
26
  getDebitAccounts(): BankAccountCollection;
26
27
  get loans(): LoanCollection;
27
28
  getOpeningBalance(): number;
@@ -4,6 +4,7 @@ import { WorkTransactionForm } from './work-transaction.form';
4
4
  export declare class WorkIncomeForm extends WorkTransactionForm implements IEventListener {
5
5
  constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
6
6
  listenEvents(): void;
7
+ private watchNetAmount;
7
8
  private watchIncomeSource;
8
9
  private updateTaxValue;
9
10
  watchChartAccounts(): void;
@@ -15,5 +16,4 @@ export declare class WorkIncomeForm extends WorkTransactionForm implements IEven
15
16
  * ie bankTransaction=1000$ with 900$ salary and 100$ tips will create 2 transactions with 900$ and 100$
16
17
  */
17
18
  getAmount(): number;
18
- submit(data?: object): Transaction;
19
19
  }
@@ -10,6 +10,7 @@ export declare class HoldingTrade extends AbstractModel {
10
10
  price: number;
11
11
  fee: number;
12
12
  type: HoldingTradeTypeEnum;
13
+ externalId?: number;
13
14
  date: Date;
14
15
  user: User;
15
16
  /**
@@ -3,6 +3,7 @@ import { HoldingType } from '../../../models';
3
3
  import { RestMethod, RestService } from '../rest';
4
4
  import { HoldingTypeCollection } from '../../../collections';
5
5
  import { IEventListener } from '../../../interfaces';
6
+ import { UserRolesEnum } from 'taxtank-core/common';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class HoldingTypeService extends RestService<HoldingTypeBase, HoldingType, HoldingTypeCollection> implements IEventListener {
8
9
  protected environment: any;
@@ -10,6 +11,7 @@ export declare class HoldingTypeService extends RestService<HoldingTypeBase, Hol
10
11
  collectionClass: typeof HoldingTypeCollection;
11
12
  endpointUri: string;
12
13
  disabledMethods: RestMethod[];
14
+ roles: UserRolesEnum[];
13
15
  constructor(environment: any);
14
16
  listenEvents(): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTypeService, never>;
@@ -1,12 +1,14 @@
1
1
  import { RestMethod, RestService } from '../rest';
2
2
  import { HomeOfficeClaimCollection } from '../../../collections';
3
3
  import { HomeOfficeClaim, HomeOfficeClaimInterface } from '../../../models';
4
+ import { UserRolesEnum } from 'taxtank-core/common';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class HomeOfficeClaimService extends RestService<HomeOfficeClaimInterface, HomeOfficeClaim, HomeOfficeClaimCollection> {
6
7
  protected endpointUri: string;
7
8
  modelClass: typeof HomeOfficeClaim;
8
9
  collectionClass: typeof HomeOfficeClaimCollection;
9
10
  disabledMethods: RestMethod[];
11
+ roles: UserRolesEnum[];
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HomeOfficeClaimService, never>;
11
13
  static ɵprov: i0.ɵɵInjectableDeclaration<HomeOfficeClaimService>;
12
14
  }
@@ -69,7 +69,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
69
69
  /**
70
70
  * Get data from backend and fill the cache
71
71
  */
72
- fetch(path?: string): Observable<CollectionModel>;
72
+ fetch(path?: string, cache?: boolean): Observable<CollectionModel>;
73
73
  get(path?: string): Observable<CollectionModel>;
74
74
  getBy(path: string, values: any): Observable<CollectionModel>;
75
75
  getFirst(): Observable<Model>;
@@ -3,6 +3,8 @@ export declare enum UserMessagesEnum {
3
3
  USER_DATA_UPDATED = "Data was successfully updated!",
4
4
  CLIENT_DETAILS_UPDATED = "Client details updated",
5
5
  DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.",
6
- SHARESIGHT_CONNECTED = "Sharesight connected",
6
+ SHARESIGHT_CONNECTED = "Login success, importing financial data",
7
+ SHARESIGHT_DISCONNECTED = "Sharesight disconnected",
8
+ SHARESIGHT_DISCONNECT_CONFIRM = "Are you sure?",
7
9
  SHARESIGHT_ERROR = "Sharesight connection error"
8
10
  }
@@ -34,7 +34,8 @@ export declare class UserService extends RestService<UserBase, User, Collection<
34
34
  deactivate(user: User): Observable<User>;
35
35
  updatePhoto(photo: FormData): Observable<void>;
36
36
  createBasiq(): Observable<string>;
37
- connectSharesight(code: string): Observable<void>;
37
+ connectSharesight(code: string): Observable<string>;
38
+ disconnectSharesight(): Observable<void>;
38
39
  skipSetupItem(item: AccountSetupItem): Observable<User>;
39
40
  /**
40
41
  * Update cache when user's service subscription is updated