taxtank-core 0.33.84 → 0.33.86
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/esm2022/src/lib/db/Models/property/property-valuation.mjs +1 -1
- package/esm2022/src/lib/db/Models/property/property.mjs +9 -1
- package/esm2022/src/lib/forms/property/property-valuation.form.mjs +30 -9
- package/esm2022/src/lib/models/bank/allocation-group.mjs +8 -1
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +2 -1
- package/esm2022/src/lib/models/property/index.mjs +2 -1
- package/esm2022/src/lib/models/property/property-corelogic-stats.interface.mjs +2 -0
- package/esm2022/src/lib/models/property/property-valuation.mjs +5 -1
- package/esm2022/src/lib/models/property/property.mjs +8 -1
- package/esm2022/src/lib/models/transaction/transaction.mjs +2 -3
- package/esm2022/src/lib/pipes/app-percent.pipe.mjs +21 -0
- package/esm2022/src/lib/pipes/index.mjs +2 -1
- package/esm2022/src/lib/services/http/property/property.service.mjs +8 -2
- package/fesm2022/taxtank-core.mjs +82 -10
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +3 -2
- package/src/lib/db/Models/property/property-valuation.d.ts +1 -0
- package/src/lib/db/Models/property/property.d.ts +1 -0
- package/src/lib/forms/property/property-valuation.form.d.ts +3 -2
- package/src/lib/models/bank/allocation-group.d.ts +4 -0
- package/src/lib/models/property/index.d.ts +1 -0
- package/src/lib/models/property/property-corelogic-stats.interface.d.ts +6 -0
- package/src/lib/models/property/property.d.ts +3 -0
- package/src/lib/pipes/app-percent.pipe.d.ts +8 -0
- package/src/lib/pipes/index.d.ts +1 -0
- package/src/lib/services/http/property/property.service.d.ts +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "taxtank-core",
|
3
|
-
"version": "0.33.
|
3
|
+
"version": "0.33.86",
|
4
4
|
"private": false,
|
5
5
|
"peerDependencies": {
|
6
6
|
"@angular/common": "^17.0.0",
|
@@ -28,7 +28,8 @@
|
|
28
28
|
"moment": "^2.30.1",
|
29
29
|
"moment-range": "^4.0.2",
|
30
30
|
"rxjs": "~7.8.0",
|
31
|
-
"xlsx": "^0.17.5"
|
31
|
+
"xlsx": "^0.17.5",
|
32
|
+
"ngx-pipes": "^3.2.2"
|
32
33
|
},
|
33
34
|
"dependencies": {
|
34
35
|
"tslib": "^2.3.0"
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { PropertyValuation } from '../../models';
|
1
|
+
import { Property, PropertyValuation } from '../../models';
|
2
2
|
import { AbstractForm } from '../abstract.form';
|
3
3
|
export declare class PropertyValuationForm extends AbstractForm<PropertyValuation> {
|
4
|
-
|
4
|
+
private property?;
|
5
|
+
constructor(valuation?: PropertyValuation, property?: Property);
|
5
6
|
submit(): PropertyValuation;
|
6
7
|
}
|
@@ -24,6 +24,10 @@ export declare class AllocationGroup extends AbstractModel {
|
|
24
24
|
static fromInvoice(invoice: SoleInvoice, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): AllocationGroup;
|
25
25
|
static fromTransaction(transaction: Transaction, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): AllocationGroup;
|
26
26
|
isFindMatch(): boolean;
|
27
|
+
/**
|
28
|
+
* group can count as basiq if all transactions are basiq
|
29
|
+
*/
|
30
|
+
isBasiq(): boolean;
|
27
31
|
isTransfer(): boolean;
|
28
32
|
isAllocate(): boolean;
|
29
33
|
/**
|
@@ -21,6 +21,7 @@ export declare class Property extends PropertyBase {
|
|
21
21
|
* Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
|
22
22
|
*/
|
23
23
|
static preCGTAssetDate: Date;
|
24
|
+
static corelogicCooldown: number;
|
24
25
|
purchasePrice: number;
|
25
26
|
growthPercent: number;
|
26
27
|
contractDate: Date;
|
@@ -99,4 +100,6 @@ export declare class Property extends PropertyBase {
|
|
99
100
|
getTaxPosition(transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
100
101
|
get monthlyIncome(): number;
|
101
102
|
get monthlyExpense(): number;
|
103
|
+
get corelogicNextDate(): Date;
|
104
|
+
isCorelogicAvailable(): boolean;
|
102
105
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AppPercentPipe implements PipeTransform {
|
4
|
+
private percentagePipe;
|
5
|
+
transform(value: number, total?: number, floor?: boolean): string;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppPercentPipe, never>;
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AppPercentPipe, "percentage", true>;
|
8
|
+
}
|
package/src/lib/pipes/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ import { Property } from '../../../models';
|
|
4
4
|
import { IEventListener } from '../../../interfaces';
|
5
5
|
import { RestMethod, RestService } from '../rest';
|
6
6
|
import { PropertyCollection } from '../../../collections';
|
7
|
+
import { PropertyCorelogicStatsInterface } from '../../../models/property/property-corelogic-stats.interface';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
/**
|
9
10
|
* @Todo Alex remove functionality related to PropertyShare
|
@@ -39,7 +40,7 @@ export declare class PropertyService extends RestService<PropertyBase, Property,
|
|
39
40
|
*/
|
40
41
|
deactivate(property: Property): Observable<void>;
|
41
42
|
delete(property: Property): Observable<void>;
|
42
|
-
getCorelogicStats(property: Property): Observable<
|
43
|
+
getCorelogicStats(property: Property): Observable<PropertyCorelogicStatsInterface>;
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
|
44
45
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
|
45
46
|
}
|