taxtank-core 2.0.66 → 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 +130 -39
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +23 -12
- 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;
|
|
@@ -5501,12 +5506,13 @@ declare class FinancialGoal extends AbstractModel implements FinancialGoalInterf
|
|
|
5501
5506
|
startDate: Date;
|
|
5502
5507
|
endDate: Date;
|
|
5503
5508
|
bankAccount: BankAccount$1;
|
|
5504
|
-
paymentFrequency:
|
|
5509
|
+
paymentFrequency: any;
|
|
5505
5510
|
paymentAmount: number;
|
|
5506
5511
|
inCalendar: boolean;
|
|
5507
5512
|
properties: Property$1[];
|
|
5508
5513
|
file: AppFile;
|
|
5509
5514
|
isCompleted(): boolean;
|
|
5515
|
+
isPropertyType(): boolean;
|
|
5510
5516
|
/**
|
|
5511
5517
|
* today's forecasted progress
|
|
5512
5518
|
*/
|
|
@@ -5533,6 +5539,7 @@ declare class FinancialGoal extends AbstractModel implements FinancialGoalInterf
|
|
|
5533
5539
|
* Calculates the number of scheduled payments between start and end dates for the selected payment frequency.
|
|
5534
5540
|
*/
|
|
5535
5541
|
calculatePaymentsByDate(date: Date): number;
|
|
5542
|
+
get propertyIds(): number[];
|
|
5536
5543
|
}
|
|
5537
5544
|
|
|
5538
5545
|
declare class TaxReturnCategory extends TaxReturnCategory$1 {
|
|
@@ -8767,6 +8774,8 @@ declare class EquityPositionChartService {
|
|
|
8767
8774
|
* Logic here works like collections methods but for several entities
|
|
8768
8775
|
*/
|
|
8769
8776
|
declare class PropertyCalculationService {
|
|
8777
|
+
private propertyService;
|
|
8778
|
+
private bankAccountService;
|
|
8770
8779
|
getTaxPosition(transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
|
8771
8780
|
getTaxPosition$(transactions$: Observable<TransactionCollection>, depreciations$: Observable<DepreciationCollection>): Observable<number>;
|
|
8772
8781
|
taxPositionGrowth(properties: PropertyCollection, transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
|
@@ -8774,19 +8783,18 @@ declare class PropertyCalculationService {
|
|
|
8774
8783
|
getRentalReturn(properties: PropertyCollection, transactions: TransactionCollection): number;
|
|
8775
8784
|
getLoanAmount(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
|
|
8776
8785
|
getLoanValue(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8777
|
-
/**
|
|
8778
|
-
* LVR
|
|
8779
|
-
*/
|
|
8780
|
-
getLvr(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8781
8786
|
getLvr$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>): Observable<number>;
|
|
8782
8787
|
getLvrCommencement(properties: PropertyCollection, loans: LoanCollection, bankAccounts: BankAccountCollection): number;
|
|
8783
8788
|
getLvrCommencement$(properties$: Observable<PropertyCollection>, bankAccounts$: Observable<BankAccountCollection>, loans$: Observable<LoanCollection>): Observable<number>;
|
|
8784
8789
|
getLvrGrowth(properties: PropertyCollection, bankAccounts: BankAccountCollection, loans: LoanCollection): number;
|
|
8785
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>;
|
|
8786
8793
|
/**
|
|
8787
8794
|
* Equity position = Market value - current loan value
|
|
8788
8795
|
*/
|
|
8789
8796
|
getEquityPosition(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8797
|
+
getLvr(properties: PropertyCollection, bankAccounts: BankAccountCollection): number;
|
|
8790
8798
|
/**
|
|
8791
8799
|
* Purchase Equity = Purchase price - initial loan value
|
|
8792
8800
|
*/
|
|
@@ -9016,19 +9024,17 @@ declare class LoanForm extends AbstractForm<Loan> {
|
|
|
9016
9024
|
}
|
|
9017
9025
|
|
|
9018
9026
|
declare class FinancialGoalForm extends AbstractForm<FinancialGoal> implements IEventListener {
|
|
9027
|
+
private equityByProperty?;
|
|
9028
|
+
private lvrByProperty?;
|
|
9019
9029
|
includeDisabledFields: boolean;
|
|
9020
9030
|
bankAccountTypes: BankAccountTypeEnum[];
|
|
9021
|
-
|
|
9022
|
-
constructor(goal?: FinancialGoal);
|
|
9031
|
+
constructor(goal: FinancialGoal, equityByProperty?: Dictionary<number>, lvrByProperty?: Dictionary<number>);
|
|
9023
9032
|
listenEvents(): void;
|
|
9024
9033
|
listenTypeChanges(): void;
|
|
9025
9034
|
/**
|
|
9026
9035
|
* Watch payment fields and auto-recalculate endDate when form is valid
|
|
9027
9036
|
*/
|
|
9028
9037
|
listenPaymentChanges(): void;
|
|
9029
|
-
/**
|
|
9030
|
-
* keeps updated initialValue when bankAccount updated. only for add form
|
|
9031
|
-
*/
|
|
9032
9038
|
listenBankAccountChanges(): void;
|
|
9033
9039
|
/**
|
|
9034
9040
|
* requires targetValue/initialValue/paymentAmount/paymentFrequency fields to be filled
|
|
@@ -9044,7 +9050,8 @@ declare class FinancialGoalForm extends AbstractForm<FinancialGoal> implements I
|
|
|
9044
9050
|
*/
|
|
9045
9051
|
calculatePaymentsByAmount(): number;
|
|
9046
9052
|
getBankAccountTypes(type: FinancialGoalTypeEnum): BankAccountTypeEnum[];
|
|
9047
|
-
|
|
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> {
|