taxtank-core 2.0.67 → 2.0.68
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/fesm2022/taxtank-core.mjs +108 -30
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +21 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2791,6 +2791,8 @@ declare class Property$1 extends Property {
|
|
|
2791
2791
|
get corelogicNextDate(): Date;
|
|
2792
2792
|
isCorelogicAvailable(): boolean;
|
|
2793
2793
|
getGrowth(): number;
|
|
2794
|
+
getEquityPosition(bankAccounts: BankAccountCollection): number;
|
|
2795
|
+
getLvr(bankAccounts: BankAccountCollection): number;
|
|
2794
2796
|
}
|
|
2795
2797
|
|
|
2796
2798
|
/**
|
|
@@ -3492,6 +3494,7 @@ declare class BankAccountCollection extends Collection<BankAccount$1> {
|
|
|
3492
3494
|
*/
|
|
3493
3495
|
getOwn(): this;
|
|
3494
3496
|
getActiveLoanAccountsByProperties(ids: number[]): BankAccountCollection;
|
|
3497
|
+
getLoanValue(property: Property$1): number;
|
|
3495
3498
|
}
|
|
3496
3499
|
|
|
3497
3500
|
/**
|
|
@@ -4881,6 +4884,8 @@ declare class Dictionary<Model> {
|
|
|
4881
4884
|
constructor(items?: Model[], path?: string);
|
|
4882
4885
|
add(key: string | number, value: Model): Dictionary<Model>;
|
|
4883
4886
|
get(key: string | number): Model;
|
|
4887
|
+
sum(keys: number[]): number;
|
|
4888
|
+
avg(keys: number[]): number;
|
|
4884
4889
|
merge(dictionary: Dictionary<Model>): this;
|
|
4885
4890
|
toArray(): Model[];
|
|
4886
4891
|
private groupItems;
|
|
@@ -5534,6 +5539,7 @@ declare class FinancialGoal extends AbstractModel implements FinancialGoalInterf
|
|
|
5534
5539
|
* Calculates the number of scheduled payments between start and end dates for the selected payment frequency.
|
|
5535
5540
|
*/
|
|
5536
5541
|
calculatePaymentsByDate(date: Date): number;
|
|
5542
|
+
get propertyIds(): number[];
|
|
5537
5543
|
}
|
|
5538
5544
|
|
|
5539
5545
|
declare class TaxReturnCategory extends TaxReturnCategory$1 {
|
|
@@ -8768,6 +8774,8 @@ declare class EquityPositionChartService {
|
|
|
8768
8774
|
* Logic here works like collections methods but for several entities
|
|
8769
8775
|
*/
|
|
8770
8776
|
declare class PropertyCalculationService {
|
|
8777
|
+
private propertyService;
|
|
8778
|
+
private bankAccountService;
|
|
8771
8779
|
getTaxPosition(transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
|
8772
8780
|
getTaxPosition$(transactions$: Observable<TransactionCollection>, depreciations$: Observable<DepreciationCollection>): Observable<number>;
|
|
8773
8781
|
taxPositionGrowth(properties: PropertyCollection, transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
|
@@ -8775,19 +8783,18 @@ declare class PropertyCalculationService {
|
|
|
8775
8783
|
getRentalReturn(properties: PropertyCollection, transactions: TransactionCollection): number;
|
|
8776
8784
|
getLoanAmount(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
|
|
8777
8785
|
getLoanValue(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8778
|
-
/**
|
|
8779
|
-
* LVR
|
|
8780
|
-
*/
|
|
8781
|
-
getLvr(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8782
8786
|
getLvr$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>): Observable<number>;
|
|
8783
8787
|
getLvrCommencement(properties: PropertyCollection, loans: LoanCollection, bankAccounts: BankAccountCollection): number;
|
|
8784
8788
|
getLvrCommencement$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>, loans$: Observable<LoanCollection>): Observable<number>;
|
|
8785
8789
|
getLvrGrowth(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
|
|
8786
8790
|
getLvrGrowth$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>, loans$: Observable<LoanCollection>): Observable<number>;
|
|
8791
|
+
getEquityPosition$(propertyIds: number[]): Observable<number>;
|
|
8792
|
+
getLVR$(propertyIds: number[]): Observable<number>;
|
|
8787
8793
|
/**
|
|
8788
8794
|
* Equity position = Market value - current loan value
|
|
8789
8795
|
*/
|
|
8790
8796
|
getEquityPosition(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8797
|
+
getLvr(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8791
8798
|
/**
|
|
8792
8799
|
* Purchase Equity = Purchase price - initial loan value
|
|
8793
8800
|
*/
|
|
@@ -9017,19 +9024,17 @@ declare class LoanForm extends AbstractForm<Loan> {
|
|
|
9017
9024
|
}
|
|
9018
9025
|
|
|
9019
9026
|
declare class FinancialGoalForm extends AbstractForm<FinancialGoal> implements IEventListener {
|
|
9027
|
+
private equityByProperty?;
|
|
9028
|
+
private lvrByProperty?;
|
|
9020
9029
|
includeDisabledFields: boolean;
|
|
9021
9030
|
bankAccountTypes: BankAccountTypeEnum[];
|
|
9022
|
-
constructor(goal?:
|
|
9031
|
+
constructor(goal: FinancialGoal, equityByProperty?: Dictionary<number>, lvrByProperty?: Dictionary<number>);
|
|
9023
9032
|
listenEvents(): void;
|
|
9024
|
-
isPropertyType(): boolean;
|
|
9025
9033
|
listenTypeChanges(): void;
|
|
9026
9034
|
/**
|
|
9027
9035
|
* Watch payment fields and auto-recalculate endDate when form is valid
|
|
9028
9036
|
*/
|
|
9029
9037
|
listenPaymentChanges(): void;
|
|
9030
|
-
/**
|
|
9031
|
-
* keeps updated initialValue when bankAccount updated. only for add form
|
|
9032
|
-
*/
|
|
9033
9038
|
listenBankAccountChanges(): void;
|
|
9034
9039
|
/**
|
|
9035
9040
|
* requires targetValue/initialValue/paymentAmount/paymentFrequency fields to be filled
|
|
@@ -9045,6 +9050,8 @@ declare class FinancialGoalForm extends AbstractForm<FinancialGoal> implements I
|
|
|
9045
9050
|
*/
|
|
9046
9051
|
calculatePaymentsByAmount(): number;
|
|
9047
9052
|
getBankAccountTypes(type: FinancialGoalTypeEnum): BankAccountTypeEnum[];
|
|
9053
|
+
isPropertyType(): boolean;
|
|
9054
|
+
isLvrType(): boolean;
|
|
9048
9055
|
}
|
|
9049
9056
|
|
|
9050
9057
|
declare class FirmForm extends AbstractForm<Firm> {
|
|
@@ -9116,7 +9123,7 @@ declare function greaterThanValidator(value: number): ValidatorFn;
|
|
|
9116
9123
|
/**
|
|
9117
9124
|
* Validator that enforces the current control's value to be >= another control's value.
|
|
9118
9125
|
*/
|
|
9119
|
-
declare function greaterThanControlValidator(controlName: string): ValidatorFn;
|
|
9126
|
+
declare function greaterThanControlValidator(controlName: string, alias: string): ValidatorFn;
|
|
9120
9127
|
|
|
9121
9128
|
declare class UniqueEmailValidator implements AsyncValidator {
|
|
9122
9129
|
private userService;
|
|
@@ -11148,6 +11155,8 @@ declare class PropertyCollection extends Collection<Property$1> {
|
|
|
11148
11155
|
*/
|
|
11149
11156
|
getTaxInclusive(): this;
|
|
11150
11157
|
groupByCategory(categories: Collection<PropertyCategory$1>, movements: PropertyCategoryMovementCollection, allowEmpty?: boolean): Map<PropertyCategory$1, PropertyCollection>;
|
|
11158
|
+
getEquityPositionByProperty(bankAccounts: BankAccountCollection): Dictionary<number>;
|
|
11159
|
+
getLvrByProperty(bankAccounts: BankAccountCollection): Dictionary<number>;
|
|
11151
11160
|
}
|
|
11152
11161
|
|
|
11153
11162
|
declare class PropertyShareCollection extends Collection<PropertyShare> {
|
|
@@ -11483,6 +11492,8 @@ declare class ClientMovementCollection extends Collection<ClientMovement> {
|
|
|
11483
11492
|
|
|
11484
11493
|
declare class FinancialGoalCollection extends Collection<FinancialGoal> {
|
|
11485
11494
|
getActive(): this;
|
|
11495
|
+
getPropertiesByGoal(properties: PropertyCollection): CollectionDictionary<PropertyCollection>;
|
|
11496
|
+
getBankAccountsByGoal(bankAccounts: BankAccountCollection): CollectionDictionary<BankAccountCollection>;
|
|
11486
11497
|
}
|
|
11487
11498
|
|
|
11488
11499
|
declare class IncomeSourceForecastCollection extends Collection<IncomeSourceForecast> {
|