taxtank-core 0.21.12 → 0.21.15
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/bundles/taxtank-core.umd.js +77 -26
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/property/property.collection.js +2 -8
- package/esm2015/lib/forms/bank/bank-account/bank-account-properties.form.js +4 -3
- package/esm2015/lib/models/property/property.js +5 -1
- package/esm2015/lib/models/transaction/transaction.js +4 -1
- package/esm2015/lib/services/http/transaction/transaction.service.js +5 -3
- package/esm2015/lib/services/http/tutorial-video/tutorial-video-response.interface.js +2 -0
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +29 -0
- package/esm2015/lib/services/http/tutorial-video/video-source.interface.js +5 -0
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +31 -8
- package/esm2015/public-api.js +3 -1
- package/fesm2015/taxtank-core.js +75 -19
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/property/property.collection.d.ts +0 -2
- package/lib/models/property/property.d.ts +1 -0
- package/lib/models/transaction/transaction.d.ts +1 -0
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts +4 -0
- package/lib/services/http/tutorial-video/tutorial-video.service.d.ts +14 -0
- package/lib/services/http/tutorial-video/video-source.interface.d.ts +8 -0
- package/lib/services/property/property-calculation/property-calculation.service.d.ts +8 -0
- package/package.json +1 -1
- 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;
|
|
@@ -66,6 +66,7 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
66
66
|
* @TODO bad usage of get (and all is* methods), getter should sound like a noun
|
|
67
67
|
*/
|
|
68
68
|
get isTransfer(): boolean;
|
|
69
|
+
isFindAndMatch(): boolean;
|
|
69
70
|
get debit(): number;
|
|
70
71
|
get credit(): number;
|
|
71
72
|
/**
|
|
@@ -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
|
+
}
|
|
@@ -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
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
|
*/
|