taxtank-core 0.33.64 → 0.33.65
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 +4 -1
- package/esm2022/src/lib/forms/transaction/work/work-income.form.mjs +7 -4
- package/esm2022/src/lib/models/bank/type-loan.const.mjs +2 -2
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +2 -1
- package/esm2022/src/lib/models/holding/holding-trade.mjs +1 -1
- package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +2 -2
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +12 -3
- package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +3 -1
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +2 -2
- package/esm2022/src/lib/services/http/user/user-messages.enum.mjs +4 -2
- package/esm2022/src/lib/services/http/user/user.service.mjs +9 -2
- package/fesm2022/taxtank-core.mjs +35 -10
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/bank-account.collection.d.ts +1 -0
- package/src/lib/forms/transaction/work/work-income.form.d.ts +1 -1
- package/src/lib/models/holding/holding-trade.d.ts +1 -0
- package/src/lib/services/http/holding/holding-type.service.d.ts +2 -0
- package/src/lib/services/http/home-office/home-office-claim.service.d.ts +2 -0
- package/src/lib/services/http/rest/rest.service.d.ts +1 -1
- package/src/lib/services/http/user/user-messages.enum.d.ts +3 -1
- package/src/lib/services/http/user/user.service.d.ts +2 -1
package/package.json
CHANGED
@@ -22,6 +22,7 @@ export declare class BankAccountCollection extends Collection<BankAccount> {
|
|
22
22
|
*/
|
23
23
|
getActive(): BankAccountCollection;
|
24
24
|
getLoanAccounts(): BankAccountCollection;
|
25
|
+
getLoanAndOffsetAccounts(): BankAccountCollection;
|
25
26
|
getDebitAccounts(): BankAccountCollection;
|
26
27
|
get loans(): LoanCollection;
|
27
28
|
getOpeningBalance(): number;
|
@@ -4,6 +4,7 @@ import { WorkTransactionForm } from './work-transaction.form';
|
|
4
4
|
export declare class WorkIncomeForm extends WorkTransactionForm implements IEventListener {
|
5
5
|
constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
|
6
6
|
listenEvents(): void;
|
7
|
+
private watchNetAmount;
|
7
8
|
private watchIncomeSource;
|
8
9
|
private updateTaxValue;
|
9
10
|
watchChartAccounts(): void;
|
@@ -15,5 +16,4 @@ export declare class WorkIncomeForm extends WorkTransactionForm implements IEven
|
|
15
16
|
* ie bankTransaction=1000$ with 900$ salary and 100$ tips will create 2 transactions with 900$ and 100$
|
16
17
|
*/
|
17
18
|
getAmount(): number;
|
18
|
-
submit(data?: object): Transaction;
|
19
19
|
}
|
@@ -3,6 +3,7 @@ import { HoldingType } from '../../../models';
|
|
3
3
|
import { RestMethod, RestService } from '../rest';
|
4
4
|
import { HoldingTypeCollection } from '../../../collections';
|
5
5
|
import { IEventListener } from '../../../interfaces';
|
6
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
export declare class HoldingTypeService extends RestService<HoldingTypeBase, HoldingType, HoldingTypeCollection> implements IEventListener {
|
8
9
|
protected environment: any;
|
@@ -10,6 +11,7 @@ export declare class HoldingTypeService extends RestService<HoldingTypeBase, Hol
|
|
10
11
|
collectionClass: typeof HoldingTypeCollection;
|
11
12
|
endpointUri: string;
|
12
13
|
disabledMethods: RestMethod[];
|
14
|
+
roles: UserRolesEnum[];
|
13
15
|
constructor(environment: any);
|
14
16
|
listenEvents(): void;
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTypeService, never>;
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { RestMethod, RestService } from '../rest';
|
2
2
|
import { HomeOfficeClaimCollection } from '../../../collections';
|
3
3
|
import { HomeOfficeClaim, HomeOfficeClaimInterface } from '../../../models';
|
4
|
+
import { UserRolesEnum } from 'taxtank-core/common';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class HomeOfficeClaimService extends RestService<HomeOfficeClaimInterface, HomeOfficeClaim, HomeOfficeClaimCollection> {
|
6
7
|
protected endpointUri: string;
|
7
8
|
modelClass: typeof HomeOfficeClaim;
|
8
9
|
collectionClass: typeof HomeOfficeClaimCollection;
|
9
10
|
disabledMethods: RestMethod[];
|
11
|
+
roles: UserRolesEnum[];
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomeOfficeClaimService, never>;
|
11
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<HomeOfficeClaimService>;
|
12
14
|
}
|
@@ -69,7 +69,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
69
69
|
/**
|
70
70
|
* Get data from backend and fill the cache
|
71
71
|
*/
|
72
|
-
fetch(path?: string): Observable<CollectionModel>;
|
72
|
+
fetch(path?: string, cache?: boolean): Observable<CollectionModel>;
|
73
73
|
get(path?: string): Observable<CollectionModel>;
|
74
74
|
getBy(path: string, values: any): Observable<CollectionModel>;
|
75
75
|
getFirst(): Observable<Model>;
|
@@ -3,6 +3,8 @@ export declare enum UserMessagesEnum {
|
|
3
3
|
USER_DATA_UPDATED = "Data was successfully updated!",
|
4
4
|
CLIENT_DETAILS_UPDATED = "Client details updated",
|
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
|
-
SHARESIGHT_CONNECTED = "
|
6
|
+
SHARESIGHT_CONNECTED = "Login success, importing financial data",
|
7
|
+
SHARESIGHT_DISCONNECTED = "Sharesight disconnected",
|
8
|
+
SHARESIGHT_DISCONNECT_CONFIRM = "Are you sure?",
|
7
9
|
SHARESIGHT_ERROR = "Sharesight connection error"
|
8
10
|
}
|
@@ -34,7 +34,8 @@ export declare class UserService extends RestService<UserBase, User, Collection<
|
|
34
34
|
deactivate(user: User): Observable<User>;
|
35
35
|
updatePhoto(photo: FormData): Observable<void>;
|
36
36
|
createBasiq(): Observable<string>;
|
37
|
-
connectSharesight(code: string): Observable<
|
37
|
+
connectSharesight(code: string): Observable<string>;
|
38
|
+
disconnectSharesight(): Observable<void>;
|
38
39
|
skipSetupItem(item: AccountSetupItem): Observable<User>;
|
39
40
|
/**
|
40
41
|
* Update cache when user's service subscription is updated
|