taxtank-core 0.21.11 → 0.21.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.
Files changed (26) hide show
  1. package/bundles/taxtank-core.umd.js +85 -40
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/property/property.collection.js +2 -8
  4. package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +1 -1
  5. package/esm2015/lib/forms/bank/bank-account/bank-account-properties.form.js +4 -3
  6. package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +2 -2
  7. package/esm2015/lib/models/property/property.js +5 -1
  8. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +2 -3
  9. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +3 -3
  10. package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +8 -10
  11. package/esm2015/lib/services/http/transaction/transaction.service.js +5 -3
  12. package/esm2015/lib/services/http/tutorial-video/tutorial-video-response.interface.js +2 -0
  13. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +29 -0
  14. package/esm2015/lib/services/http/tutorial-video/video-source.interface.js +5 -0
  15. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +31 -8
  16. package/esm2015/public-api.js +3 -1
  17. package/fesm2015/taxtank-core.js +83 -33
  18. package/fesm2015/taxtank-core.js.map +1 -1
  19. package/lib/collections/property/property.collection.d.ts +0 -2
  20. package/lib/models/property/property.d.ts +1 -0
  21. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts +4 -0
  22. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts +14 -0
  23. package/lib/services/http/tutorial-video/video-source.interface.d.ts +8 -0
  24. package/lib/services/property/property-calculation/property-calculation.service.d.ts +8 -0
  25. package/package.json +1 -1
  26. package/public-api.d.ts +2 -0
@@ -24,8 +24,6 @@ export declare class PropertyCollection extends Collection<Property> {
24
24
  get purchasePrice(): number;
25
25
  get growthPercent(): number;
26
26
  get marketValue(): number;
27
- get forecastedRentalReturn(): number;
28
- get forecastedTaxPosition(): number;
29
27
  get firstForecastYear(): number;
30
28
  get marketValueGrowth(): number;
31
29
  getOwnerOccupiedProperties(): PropertyCollection;
@@ -45,6 +45,7 @@ export declare class Property extends PropertyBase implements Photoable, Documen
45
45
  get currentYearForecast(): PropertyForecast;
46
46
  get forecastedRentalReturn(): number;
47
47
  get forecastedTaxPosition(): number;
48
+ get forecastedCashPosition(): number;
48
49
  get firstForecastYear(): number;
49
50
  get marketValueGrowth(): number;
50
51
  get myShare(): PropertyShare;
@@ -0,0 +1,4 @@
1
+ import { VideoSource } from "./video-source.interface";
2
+ export interface TutorialVideoResponse {
3
+ files: VideoSource[];
4
+ }
@@ -0,0 +1,14 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { VideoSource } from './video-source.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TutorialVideoService {
6
+ private http;
7
+ protected environment: any;
8
+ static googleUrl: string;
9
+ static parents: string;
10
+ constructor(http: HttpClient, environment: any);
11
+ get(): Observable<VideoSource[]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TutorialVideoService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<TutorialVideoService>;
14
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Interface for inserts video (iframe, video)
3
+ */
4
+ export interface VideoSource {
5
+ name: string;
6
+ src: string;
7
+ webContentLink: string;
8
+ }
@@ -28,12 +28,20 @@ export declare class PropertyCalculationService {
28
28
  getLvrCommencement$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>, loans$: Observable<LoanCollection>): Observable<number>;
29
29
  getLvrGrowth(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
30
30
  getLvrGrowth$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>, loans$: Observable<LoanCollection>): Observable<number>;
31
+ /**
32
+ * Equity position = Market value - current loan value
33
+ */
31
34
  getEquityPosition(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
35
+ /**
36
+ * Purchase Equity = Purchase price - initial loan value
37
+ */
32
38
  getPurchaseEquity(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
39
+ getEquityGrowth(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
33
40
  /**
34
41
  * Get dictionary of badges for each property in collection
35
42
  */
36
43
  getBadgesByProperty(properties: PropertyCollection, transactions: TransactionCollection, depreciations: DepreciationCollection): Dictionary<Badge>;
44
+ getCashPositionGrowth(properties: PropertyCollection, transactions: TransactionCollection): number;
37
45
  /**
38
46
  * Get Badge for single property in collection
39
47
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.21.11",
3
+ "version": "0.21.14",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -369,6 +369,7 @@ export * from './lib/services/http/vehicle/vehicle-logbook.service';
369
369
  export * from './lib/services/xlsx/xlsx.service';
370
370
  export * from './lib/services/http/property/property-sale/tax-exemption/tax-exemption.service';
371
371
  export * from './lib/services/http/facebook/facebook.service';
372
+ export * from './lib/services/http/tutorial-video/tutorial-video.service';
372
373
  /**
373
374
  * Interfaces
374
375
  */
@@ -388,6 +389,7 @@ export * from './lib/interfaces/tank.interface';
388
389
  export * from './lib/interfaces/table-exportable.interface';
389
390
  export * from './lib/interfaces/updatable.interface';
390
391
  export * from './lib/interfaces/expense.interface';
392
+ export * from './lib/services/http/tutorial-video/video-source.interface';
391
393
  /**
392
394
  * Functions
393
395
  */