taxtank-core 0.33.71 → 0.33.73
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/holding/holding.collection.mjs +2 -2
- package/esm2022/src/lib/db/Models/observable-model.mjs +1 -1
- package/esm2022/src/lib/models/holding/holding-trade.mjs +4 -3
- package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +13 -15
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -6
- package/esm2022/src/lib/services/http/holding/holding-trade.service.mjs +3 -4
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +14 -7
- package/esm2022/src/lib/services/http/user/user-messages.enum.mjs +2 -2
- package/fesm2022/taxtank-core.mjs +30 -28
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Models/observable-model.d.ts +1 -0
- package/src/lib/models/holding/holding-trade.d.ts +3 -2
- package/src/lib/models/property/property-equity-chart-data.d.ts +0 -3
- package/src/lib/services/http/holding/holding-type.service.d.ts +1 -1
- package/src/lib/services/http/user/user-messages.enum.d.ts +1 -1
package/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import { User } from '../user';
|
2
2
|
import { HoldingType } from './holding-type';
|
3
3
|
import { AppFile } from '../file';
|
4
|
-
import {
|
4
|
+
import { ObservableModel } from '../../db/Models';
|
5
5
|
import { HoldingTradeTypeEnum, HoldingTypeCategoryEnum } from '../../db/Enums';
|
6
|
-
export declare class HoldingTrade extends
|
6
|
+
export declare class HoldingTrade extends ObservableModel {
|
7
|
+
static className: string;
|
7
8
|
isTaxFree: boolean;
|
8
9
|
quantity: number;
|
9
10
|
ownershipPercent?: number;
|
@@ -48,13 +48,10 @@ export declare class PropertyEquityChartData {
|
|
48
48
|
* Get property loan balance by financial year
|
49
49
|
* @param property Property instance for filter
|
50
50
|
* @param year Financial year number
|
51
|
-
* @param bankAccounts List of bank accounts
|
52
|
-
* @param loans List of loans
|
53
51
|
* @private
|
54
52
|
*/
|
55
53
|
private getLoanBalanceByYear;
|
56
54
|
getMarketValueForPropertyByYear(property: Property, year: number): number;
|
57
|
-
getLoanBalanceForPropertyByYear(property: Property, year: number): number;
|
58
55
|
/**
|
59
56
|
* Check if loan balance is 0 and set it as null (to not to draw point on the chart)
|
60
57
|
*/
|
@@ -16,8 +16,8 @@ export declare class HoldingTypeService extends RestService<HoldingTypeBase, Hol
|
|
16
16
|
roles: UserRolesEnum[];
|
17
17
|
constructor(environment: any);
|
18
18
|
search(query: string, category?: HoldingTypeCategoryEnum): Observable<HoldingTypeCollection>;
|
19
|
-
getCurrent(): Observable<HoldingTypeCollection>;
|
20
19
|
listenEvents(): void;
|
20
|
+
private listenNotifications;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTypeService, never>;
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<HoldingTypeService>;
|
23
23
|
}
|
@@ -5,6 +5,6 @@ export declare enum UserMessagesEnum {
|
|
5
5
|
DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.",
|
6
6
|
SHARESIGHT_CONNECTED = "Login success, importing financial data",
|
7
7
|
SHARESIGHT_DISCONNECTED = "Sharesight disconnected",
|
8
|
-
SHARESIGHT_DISCONNECT_CONFIRM = "
|
8
|
+
SHARESIGHT_DISCONNECT_CONFIRM = "Disconnecting ShareSight means we can no longer sync data. Any trades already imported will become editable in TaxTank.",
|
9
9
|
SHARESIGHT_ERROR = "Sharesight connection error"
|
10
10
|
}
|