taxtank-core 0.28.6 → 0.28.9
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/bundles/taxtank-core.umd.js +109 -42
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/bank-transaction.collection.js +2 -2
- package/esm2015/lib/db/Enums/user-event-type-type.enum.js +48 -0
- package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +3 -3
- package/esm2015/lib/forms/loan/loan.form.js +5 -1
- package/esm2015/lib/models/loan/loan-max-number-of-payments.enum.js +3 -2
- package/esm2015/lib/models/notification/notification.js +1 -1
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +9 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +2 -2
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +13 -4
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +2 -1
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/fesm2015/taxtank-core.js +109 -42
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +1 -1
- package/lib/db/Enums/user-event-type-type.enum.d.ts +46 -0
- package/lib/forms/loan/loan.form.d.ts +1 -0
- package/lib/models/loan/loan-max-number-of-payments.enum.d.ts +2 -1
- package/lib/models/notification/notification.d.ts +2 -4
- package/lib/services/bank/bank-account-calculation.service.d.ts +2 -1
- package/lib/services/bank/bank-transaction-calculation.service.d.ts +1 -1
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -68,5 +68,5 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
|
|
|
68
68
|
/**
|
|
69
69
|
* Get collection of unallocated bankTransactions
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
getUnallocated(allocations: TransactionAllocationCollection): BankTransactionCollection;
|
|
72
72
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare enum UserEventTypeTypeEnum {
|
|
2
|
+
REGISTERED = 1000,
|
|
3
|
+
PASSWORD_RESET_REQUEST = 1001,
|
|
4
|
+
APP_FEATURES = 1010,
|
|
5
|
+
SUBSCRIBED = 2000,
|
|
6
|
+
UNSUBSCRIBED = 2001,
|
|
7
|
+
SUBSCRIPTION_UPDATE = 2004,
|
|
8
|
+
SUBSCRIPTION_TRIAL_UPDATE = 2005,
|
|
9
|
+
SUBSCRIPTION_PAYMENT_FAILED = 2006,
|
|
10
|
+
CLIENT_INVITE = 2010,
|
|
11
|
+
CLIENT_INVITE_TO_REGISTER = 2011,
|
|
12
|
+
FIRM_INVITE_ACCEPTED = 2012,
|
|
13
|
+
FIRM_INVITE_REJECTED = 2013,
|
|
14
|
+
FIRM_INVITE_REGISTERED = 2014,
|
|
15
|
+
PROPERTY_SHARE_INVITE = 2020,
|
|
16
|
+
PROPERTY_SHARE_INVITE_TO_REGISTER = 2021,
|
|
17
|
+
PROPERTY_SHARE_INVITE_ACCEPTED = 2022,
|
|
18
|
+
PROPERTY_SHARE_INVITE_REJECTED = 2023,
|
|
19
|
+
PROPERTY_SHARE_INVITE_REGISTERED = 2024,
|
|
20
|
+
PROPERTY_SHARE_CHANGE_REQUESTED = 2025,
|
|
21
|
+
PROPERTY_SHARE_CHANGE_ACCEPTED = 2026,
|
|
22
|
+
PROPERTY_SHARE_CHANGE_REJECTED = 2027,
|
|
23
|
+
OWNER_SUBSCRIBED = 2028,
|
|
24
|
+
OWNER_UNSUBSCRIBED = 2029,
|
|
25
|
+
BASIQ_NEW_ACCOUNTS = 2030,
|
|
26
|
+
BASIQ_FIRST_IMPORT_COMPLETE = 2031,
|
|
27
|
+
BASIQ_AUTHORIZATION_FAIL = 2032,
|
|
28
|
+
TRANSACTION_ALLOCATE_REMINDER = 2033,
|
|
29
|
+
REGISTRATION_INVITE = 2040,
|
|
30
|
+
REGISTRATION_INVITE_ACCEPTED = 2041,
|
|
31
|
+
CLIENT_EMAIL_CONFIRMED = 2050,
|
|
32
|
+
TAX_REVIEW_REQUESTED = 2060,
|
|
33
|
+
FIRM_INVITE_TO_REGISTER = 3000,
|
|
34
|
+
FIRM_INVITE = 3001,
|
|
35
|
+
CLIENT_INVITE_ACCEPTED = 3002,
|
|
36
|
+
CLIENT_INVITE_REJECTED = 3003,
|
|
37
|
+
CLIENT_INVITE_REGISTERED = 3004,
|
|
38
|
+
FIRM_NEW_CLIENT = 3005,
|
|
39
|
+
FIRM_LOST_CLIENT = 3006,
|
|
40
|
+
EMPLOYEE_INVITE = 3010,
|
|
41
|
+
EMPLOYEE_LOST_CLIENT = 3011,
|
|
42
|
+
EMPLOYEE_NEW_CLIENT = 3012,
|
|
43
|
+
EMPLOYEE_INVITE_ACCEPTED = 3013,
|
|
44
|
+
EMPLOYEE_EMAIL_CONFIRMED = 3020,
|
|
45
|
+
TAX_REVIEW_RECEIVED = 3030
|
|
46
|
+
}
|
|
@@ -18,6 +18,7 @@ export declare class LoanForm extends AbstractForm<Loan> {
|
|
|
18
18
|
* term validation depends on selected repaymentFrequency
|
|
19
19
|
*/
|
|
20
20
|
listenRepaymentFrequencyChanges(): void;
|
|
21
|
+
d: any;
|
|
21
22
|
/**
|
|
22
23
|
* For vehicle loans term has a maximum value depended of repayment frequency
|
|
23
24
|
*/
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { ServiceNotification as ServiceNotificationBase } from '../../db/Models/service-notification';
|
|
2
|
-
import { UserEventTypeUserTypeEnum } from '../../db/Enums/user-event-type-user-type.enum';
|
|
3
|
-
import { UserEventTypeEmployeeTypeEnum } from '../../db/Enums/user-event-type-employee-type.enum';
|
|
4
|
-
import { UserEventTypeClientTypeEnum } from '../../db/Enums/user-event-type-client-type.enum';
|
|
5
2
|
import { User } from '../user/user';
|
|
3
|
+
import { UserEventTypeTypeEnum } from '../../db/Enums/user-event-type-type.enum';
|
|
6
4
|
export declare class Notification extends ServiceNotificationBase {
|
|
7
5
|
sender: User;
|
|
8
6
|
redirectionLink: string;
|
|
9
|
-
get eventType():
|
|
7
|
+
get eventType(): UserEventTypeTypeEnum;
|
|
10
8
|
/**
|
|
11
9
|
* Check if notification is from user or not
|
|
12
10
|
*/
|
|
@@ -2,6 +2,7 @@ import { BankAccountCollection } from '../../collections/bank-account.collection
|
|
|
2
2
|
import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
|
|
3
3
|
import { TransactionAllocationCollection } from '../../collections/transaction/transaction-allocation.collection';
|
|
4
4
|
import { BankTransactionCalculationService } from './bank-transaction-calculation.service';
|
|
5
|
+
import { BankAccount } from '../../models/bank/bank-account';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class BankAccountCalculationService {
|
|
7
8
|
private bankTransactionCalculationService;
|
|
@@ -9,7 +10,7 @@ export declare class BankAccountCalculationService {
|
|
|
9
10
|
/**
|
|
10
11
|
* Sum of bank accounts opening balances and their bank transactions allocated amounts
|
|
11
12
|
*/
|
|
12
|
-
getTaxTankBalance(bankAccounts: BankAccountCollection, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
13
|
+
getTaxTankBalance(bankAccounts: BankAccountCollection | BankAccount, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
13
14
|
/**
|
|
14
15
|
* get difference between total loans amount and total cash amount
|
|
15
16
|
*/
|
|
@@ -27,7 +27,7 @@ export declare class BankTransactionCalculationService {
|
|
|
27
27
|
* Get collection of unallocated bank transactions
|
|
28
28
|
* @TODO Alex: consider to move to collection
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getUnallocated(bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): BankTransactionCollection;
|
|
31
31
|
/**
|
|
32
32
|
* Allocated sum of credit transactions
|
|
33
33
|
*/
|
|
@@ -3,19 +3,21 @@ import { BankConnection as BankConnectionBase } from '../../../../db/Models/bank
|
|
|
3
3
|
import { BankConnection } from '../../../../models/bank/bank-connection';
|
|
4
4
|
import { RestService } from '../../rest/rest.service';
|
|
5
5
|
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
6
|
+
import { UserEventTypeTypeEnum } from '../../../../db/Enums/user-event-type-type.enum';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* BankConnection means user account at specific bank (usually each user has only one at the same bank)
|
|
9
10
|
* service handles BankConnection management
|
|
10
11
|
*/
|
|
11
12
|
export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection> implements IEventListener {
|
|
13
|
+
static userEventTypes: UserEventTypeTypeEnum[];
|
|
12
14
|
modelClass: typeof BankConnection;
|
|
13
15
|
url: string;
|
|
14
16
|
listenEvents(): void;
|
|
15
17
|
add(bankConnection: BankConnection): Observable<BankConnection>;
|
|
16
18
|
listenToAddedBankAccounts(): void;
|
|
17
19
|
/**
|
|
18
|
-
* Update cache when basiq login failed to get actual connections statuses
|
|
20
|
+
* Update cache when basiq accounts were retrieved or login to basic was failed to get actual connections statuses
|
|
19
21
|
*/
|
|
20
22
|
listenNotifications(): void;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
|