taxtank-core 0.30.122 → 0.30.124

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,4 +1,4 @@
1
- import { TaxReturnCategoryListEnum } from '../../db/Enums/tax-return/tax-return-category-list.enum';
1
+ import { TaxReturnCategoryListEnum } from '../../db/Enums';
2
2
  export declare const TAX_RETURN_CATEGORIES: {
3
3
  [key: string]: {
4
4
  [key: string]: TaxReturnCategoryListEnum[];
@@ -46,4 +46,8 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
46
46
  */
47
47
  emitValues(): void;
48
48
  private listenValueChanges;
49
+ /**
50
+ * upgraded version of patchValue to skip duplicated changes
51
+ */
52
+ patchField(name: string, value: any, distinctUntilChanged?: boolean): void;
49
53
  }
@@ -1,8 +1,8 @@
1
1
  import { Firm as FirmBase } from '../../db/Models/firm/firm';
2
2
  import { Phone } from '../phone/phone';
3
- import { Address } from '../address/address';
4
- import { User } from '../user/user';
5
- import { Photoable } from '../../interfaces/photoable';
3
+ import { Address } from '../address';
4
+ import { User } from '../user';
5
+ import { Photoable } from '../../interfaces';
6
6
  export declare class Firm extends FirmBase implements Photoable {
7
7
  owner: User;
8
8
  address: Address;
@@ -1,4 +1,5 @@
1
1
  import { TaxSummarySection } from './tax-summary-section';
2
+ import { ReportItemCollection } from '../../collections';
2
3
  import { SoleBusiness } from '../sole';
3
4
  /**
4
5
  * @Todo refactor with base model when it will be provided
@@ -12,12 +13,14 @@ export declare class TaxSummary {
12
13
  summary: TaxSummarySection;
13
14
  projectedTaxPosition: number;
14
15
  get sections(): TaxSummarySection[];
16
+ getReportItems(sections: TaxSummarySection[]): ReportItemCollection;
15
17
  get taxPercent(): number;
16
18
  /**
17
19
  * Work Net Cash = Income - tax withheld - expenses - interest
18
20
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
19
21
  */
20
22
  get workNetCash(): number;
23
+ get income(): number;
21
24
  /**
22
25
  * Work Net Total = Income - expenses - interest
23
26
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
@@ -74,10 +74,6 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
74
74
  * @returns observable boolean. True - accounts retrieved, false - accounts not retrieved (time is out)
75
75
  */
76
76
  watchBankAccountsRetrieved(jobId: string): Observable<boolean>;
77
- /**
78
- * Ask backend to update user's basiq consent flag
79
- */
80
- updateBasiqConsentAgreement(): void;
81
77
  /**
82
78
  * listen to notifications to update basiq accounts list
83
79
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.122",
3
+ "version": "0.30.124",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",