taxtank-core 0.33.103 → 0.33.104
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/collections/bank-account.collection.mjs +2 -2
- package/esm2022/src/lib/collections/property/property-category-movement.collection.mjs +2 -1
- package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
- package/esm2022/src/lib/forms/property/property-add.form.mjs +25 -38
- package/esm2022/src/lib/forms/property/property-forecast.form.mjs +1 -2
- package/esm2022/src/lib/models/client/sharesight/sharesight-details-messages.enum.mjs +3 -2
- package/esm2022/src/lib/models/client/sharesight/sharesight-details.mjs +5 -1
- package/esm2022/src/lib/models/property/property-forecast.mjs +6 -11
- package/esm2022/src/lib/models/property/property.mjs +3 -3
- package/esm2022/src/lib/models/report/property/property-report-item-depreciation.mjs +1 -2
- package/esm2022/src/lib/services/http/property/property.service.mjs +5 -2
- package/fesm2022/taxtank-core.mjs +39 -50
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Models/property/property-forecast.d.ts +3 -3
- package/src/lib/forms/property/property-add.form.d.ts +5 -7
- package/src/lib/models/client/sharesight/sharesight-details-messages.enum.d.ts +2 -1
- package/src/lib/models/client/sharesight/sharesight-details.d.ts +1 -0
- package/src/lib/models/property/property-forecast.d.ts +0 -6
package/package.json
CHANGED
@@ -7,10 +7,10 @@ export declare class PropertyForecast extends AbstractModel {
|
|
7
7
|
income?: number;
|
8
8
|
depreciation?: number;
|
9
9
|
interest?: number;
|
10
|
-
deletedAt?: Date;
|
11
|
-
createdAt?: Date;
|
12
|
-
updatedAt?: Date;
|
13
10
|
property?: Property;
|
14
11
|
claimPercent?: number;
|
15
12
|
isManual?: boolean;
|
13
|
+
deletedAt?: Date;
|
14
|
+
createdAt?: Date;
|
15
|
+
updatedAt?: Date;
|
16
16
|
}
|
@@ -1,16 +1,14 @@
|
|
1
1
|
import { Property } from '../../models';
|
2
2
|
import { AbstractForm } from '../abstract.form';
|
3
|
-
import { PropertyValuationForm } from './property-valuation.form';
|
4
|
-
import { PropertyShareForm } from './property-share.form';
|
5
3
|
import { PropertyForecastForm } from './property-forecast.form';
|
6
|
-
import {
|
4
|
+
import { IEventListener } from '../../interfaces';
|
7
5
|
/**
|
8
6
|
* Form class for the single new property
|
9
7
|
*/
|
10
|
-
export declare class PropertyAddForm extends AbstractForm<Property> {
|
8
|
+
export declare class PropertyAddForm extends AbstractForm<Property> implements IEventListener {
|
11
9
|
constructor();
|
12
|
-
get valuationForm(): PropertyValuationForm;
|
13
10
|
get forecastForm(): PropertyForecastForm;
|
14
|
-
|
15
|
-
|
11
|
+
submit(): Property;
|
12
|
+
listenEvents(): void;
|
13
|
+
listenCategoryChanges(): void;
|
16
14
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export declare enum SharesightDetailsMessagesEnum {
|
2
|
-
|
2
|
+
HOLDING_CONNECTED = "We're syncing your ShareSight trades, which might take a few minutes.",
|
3
|
+
PROPERTY_CONNECTED = "We're syncing your properties, which might take a few minutes.",
|
3
4
|
DISCONNECTED = "Sharesight disconnected",
|
4
5
|
DISCONNECT_CONFIRM = "Disconnecting ShareSight means we can no longer sync data. Any trades already imported will become editable in TaxTank.",
|
5
6
|
ERROR = "Sharesight connection error"
|
@@ -5,7 +5,6 @@ export declare class PropertyForecast extends PropertyForecastBase {
|
|
5
5
|
interest: number;
|
6
6
|
depreciation: number;
|
7
7
|
loanBalance: number;
|
8
|
-
marketValue: number;
|
9
8
|
financialYear: number;
|
10
9
|
/**
|
11
10
|
* Get cash position
|
@@ -17,9 +16,4 @@ export declare class PropertyForecast extends PropertyForecastBase {
|
|
17
16
|
* Tax Position = Income - Expense - Interest - Depreciation
|
18
17
|
*/
|
19
18
|
get taxPosition(): number;
|
20
|
-
/**
|
21
|
-
* Get rental return percent
|
22
|
-
* Rental Return = Income / Market Value
|
23
|
-
*/
|
24
|
-
get rentalReturn(): number;
|
25
19
|
}
|