taxtank-core 0.17.15 → 0.18.1
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 +5403 -5024
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/account-setup-item.collection.js +2 -2
- package/esm2015/lib/collections/bank.collection.js +15 -0
- package/esm2015/lib/collections/collection-dictionary.js +1 -1
- package/esm2015/lib/collections/collection.js +41 -56
- package/esm2015/lib/collections/exportable.collection.js +1 -1
- package/esm2015/lib/collections/property/property.collection.js +3 -3
- package/esm2015/lib/collections/vehicle-logbook.collection.js +2 -2
- package/esm2015/lib/db/Models/abstract-model.js +1 -1
- package/esm2015/lib/db/Models/bank/bank.js +1 -1
- package/esm2015/lib/forms/abstract.form.js +18 -3
- package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +19 -0
- package/esm2015/lib/forms/bank/bank-account-loan.form.js +20 -0
- package/esm2015/lib/forms/bank/bank-account-migrate.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-properties.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-property.form.js +13 -0
- package/esm2015/lib/forms/bank/bank-account.form.js +53 -0
- package/esm2015/lib/forms/bank/bank-login.form.js +19 -0
- package/esm2015/lib/forms/client/client-income-types.form.js +2 -8
- package/esm2015/lib/forms/index.js +8 -1
- package/esm2015/lib/forms/login/login.form.js +1 -1
- package/esm2015/lib/forms/register/register-client.form.js +4 -3
- package/esm2015/lib/forms/register/register-firm.form.js +2 -9
- package/esm2015/lib/forms/user/password.form.js +6 -6
- package/esm2015/lib/forms/user/reset-password.form.js +1 -1
- package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +2 -2
- package/esm2015/lib/forms/vehicle/vehicle.form.js +6 -12
- package/esm2015/lib/interceptors/basiq.interceptor.js +35 -0
- package/esm2015/lib/interceptors/financial-year-interceptor.js +15 -4
- package/esm2015/lib/interceptors/interceptors.module.js +12 -1
- package/esm2015/lib/models/account-setup/account-setup-item.js +4 -2
- package/esm2015/lib/models/bank/bank-account-property.js +6 -2
- package/esm2015/lib/models/bank/bank-account.js +2 -1
- package/esm2015/lib/models/bank/bank-connection.js +18 -3
- package/esm2015/lib/models/bank/bank-login-data.js +6 -0
- package/esm2015/lib/models/bank/bank.js +6 -1
- package/esm2015/lib/models/client/client-portfolio-report.js +3 -2
- package/esm2015/lib/models/endpoint/endpoints.const.js +4 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +39 -38
- package/esm2015/lib/models/loan/loan-payment.js +3 -2
- package/esm2015/lib/models/loan/loan.js +1 -6
- package/esm2015/lib/models/report/property/property-report-item.js +4 -2
- package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +4 -2
- package/esm2015/lib/models/tax-summary/report-item-details.js +3 -2
- package/esm2015/lib/models/tax-summary/report-item.js +3 -2
- package/esm2015/lib/services/account-setup/account-setup.service.js +2 -2
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +2 -5
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +57 -2
- package/esm2015/lib/services/http/bank/basiq/basiq-connections-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +42 -0
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +35 -44
- package/esm2015/lib/services/http/rest/rest.service.js +1 -12
- package/esm2015/lib/services/http/user/user.service.js +1 -14
- package/esm2015/lib/validators/date-range.validator.js +22 -0
- package/esm2015/lib/validators/index.js +2 -1
- package/esm2015/lib/validators/password.validator.js +16 -3
- package/esm2015/lib/validators/require-autocomplete.js +14 -0
- package/esm2015/public-api.js +7 -1
- package/fesm2015/taxtank-core.js +6038 -5732
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank.collection.d.ts +7 -0
- package/lib/collections/collection-dictionary.d.ts +2 -1
- package/lib/collections/collection.d.ts +18 -31
- package/lib/collections/exportable.collection.d.ts +2 -1
- package/lib/db/Models/abstract-model.d.ts +1 -0
- package/lib/db/Models/bank/bank.d.ts +4 -0
- package/lib/forms/abstract.form.d.ts +18 -3
- package/lib/forms/bank/bank-account-add-manual.form.d.ts +10 -0
- package/lib/forms/bank/bank-account-loan.form.d.ts +5 -0
- package/lib/forms/bank/bank-account-migrate.form.d.ts +9 -0
- package/lib/forms/bank/bank-account-properties.form.d.ts +8 -0
- package/lib/forms/bank/bank-account-property.form.d.ts +5 -0
- package/lib/forms/bank/bank-account.form.d.ts +21 -0
- package/lib/forms/bank/bank-login.form.d.ts +11 -0
- package/lib/forms/client/client-income-types.form.d.ts +1 -2
- package/lib/forms/index.d.ts +7 -0
- package/lib/forms/login/login.form.d.ts +4 -1
- package/lib/forms/register/register-client.form.d.ts +1 -1
- package/lib/forms/register/register-firm.form.d.ts +2 -2
- package/lib/forms/user/password.form.d.ts +4 -1
- package/lib/forms/user/reset-password.form.d.ts +3 -1
- package/lib/forms/vehicle/vehicle-claim.form.d.ts +1 -1
- package/lib/forms/vehicle/vehicle.form.d.ts +3 -7
- package/lib/interceptors/basiq.interceptor.d.ts +15 -0
- package/lib/interceptors/financial-year-interceptor.d.ts +2 -0
- package/lib/models/account-setup/account-setup-item.d.ts +2 -1
- package/lib/models/bank/bank-account-property.d.ts +1 -0
- package/lib/models/bank/bank-account.d.ts +2 -0
- package/lib/models/bank/bank-connection.d.ts +8 -1
- package/lib/models/bank/bank-login-data.d.ts +17 -0
- package/lib/models/bank/bank.d.ts +1 -0
- package/lib/models/client/client-portfolio-report.d.ts +2 -1
- package/lib/models/event/app-event-type.enum.d.ts +38 -37
- package/lib/models/loan/loan-payment.d.ts +2 -1
- package/lib/models/loan/loan.d.ts +0 -2
- package/lib/models/report/property/property-report-item.d.ts +2 -1
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +2 -1
- package/lib/models/tax-summary/report-item-details.d.ts +2 -1
- package/lib/models/tax-summary/report-item.d.ts +2 -1
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +13 -1
- package/lib/services/http/bank/basiq/basiq-connections-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts +17 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts +20 -11
- package/lib/services/http/rest/rest.service.d.ts +0 -5
- package/lib/services/http/user/user.service.d.ts +0 -1
- package/lib/validators/date-range.validator.d.ts +5 -0
- package/lib/validators/index.d.ts +1 -0
- package/lib/validators/password.validator.d.ts +6 -0
- package/lib/validators/require-autocomplete.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BasiqToken } from '../../../../models/bank/basiq-token';
|
|
2
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BasiqTokenService {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected environment: any;
|
|
8
|
+
cache: BasiqToken;
|
|
9
|
+
cacheSubject: ReplaySubject<BasiqToken>;
|
|
10
|
+
constructor(http: HttpClient, environment: any);
|
|
11
|
+
/**
|
|
12
|
+
* Access token to use basiq flow
|
|
13
|
+
*/
|
|
14
|
+
get(): Observable<BasiqToken>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqTokenService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqTokenService>;
|
|
17
|
+
}
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
import { Observable
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
|
|
3
|
-
import { BankAccount } from '../../../../models/bank/bank-account';
|
|
4
3
|
import { RestService } from '../../rest/rest.service';
|
|
5
|
-
import {
|
|
4
|
+
import { BankAccount } from '../../../../models/bank/bank-account';
|
|
6
5
|
import { BankConnection } from '../../../../models/bank/bank-connection';
|
|
6
|
+
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { EventDispatcherService } from '../../../event/event-dispatcher.service';
|
|
9
|
+
import { BankConnectionService } from '../bank-connection/bank-connection.service';
|
|
10
|
+
import { ToastService } from '../../../toast/toast.service';
|
|
11
|
+
import { BankLoginData } from '../../../../models/bank/bank-login-data';
|
|
7
12
|
import * as i0 from "@angular/core";
|
|
8
13
|
/**
|
|
9
14
|
* basiq is a middleman between bank and user
|
|
10
15
|
* service is responsible for fetching bank related information
|
|
11
16
|
*/
|
|
12
|
-
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> {
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
|
|
18
|
+
protected http: HttpClient;
|
|
19
|
+
protected eventDispatcherService: EventDispatcherService;
|
|
20
|
+
protected environment: any;
|
|
21
|
+
protected toastService: ToastService;
|
|
22
|
+
private bankConnectionService;
|
|
23
|
+
static basiqApiUrl: string;
|
|
15
24
|
url: string;
|
|
16
25
|
modelClass: typeof BankAccount;
|
|
26
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, bankConnectionService: BankConnectionService);
|
|
17
27
|
/**
|
|
18
28
|
* Listen events from Event Dispatcher service
|
|
19
29
|
*/
|
|
20
30
|
listenEvents(): void;
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
32
|
+
* Create Basiq job for the new bank connection creation
|
|
23
33
|
*/
|
|
24
|
-
|
|
25
|
-
getConnections(): Observable<BankConnection[]>;
|
|
34
|
+
createConnection(data: BankLoginData, userId: string, connection: BankConnection): Observable<string>;
|
|
26
35
|
/**
|
|
27
|
-
*
|
|
36
|
+
* Update disconnected bank connection
|
|
28
37
|
*/
|
|
29
|
-
|
|
38
|
+
updateConnection(data: object, userId: string, connection: BankConnection): Observable<string>;
|
|
30
39
|
/**
|
|
31
40
|
* listen to notifications to update basiq accounts list
|
|
32
41
|
*/
|
|
@@ -38,11 +38,6 @@ export declare abstract class RestService<BaseModel, Model extends BaseModel> im
|
|
|
38
38
|
* @param id ID of required item
|
|
39
39
|
*/
|
|
40
40
|
findById(id: number): Observable<Model>;
|
|
41
|
-
/**
|
|
42
|
-
* get list of items filtered by id.
|
|
43
|
-
* @param models Array of objects contains required items ids
|
|
44
|
-
*/
|
|
45
|
-
getByIds(models: Model[]): Observable<Model[]>;
|
|
46
41
|
/**
|
|
47
42
|
* add new instance and update cache
|
|
48
43
|
* @TODO rename to post
|
|
@@ -72,7 +72,6 @@ export declare class UserService implements IEventListener {
|
|
|
72
72
|
* Update cache when user's service subscription is updated
|
|
73
73
|
*/
|
|
74
74
|
private listenServiceSubscriptionUpdated;
|
|
75
|
-
private listenBasiqConcentUpdated;
|
|
76
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
77
76
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
78
77
|
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
/**
|
|
3
|
+
* Regular expressions that are used to check password strength and valid values
|
|
4
|
+
*/
|
|
5
|
+
export declare const PASSWORD_REGEXPS: {
|
|
6
|
+
[key: string]: RegExp;
|
|
7
|
+
};
|
|
2
8
|
export declare function passwordValidator(): ValidatorFn;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API Surface of tt-core
|
|
3
|
+
*/
|
|
1
4
|
export * from './lib/tt-core.module';
|
|
2
5
|
/**
|
|
3
6
|
* Collections
|
|
4
7
|
*/
|
|
5
8
|
export * from './lib/collections/collection';
|
|
6
9
|
export * from './lib/collections/account-setup-item.collection';
|
|
10
|
+
export * from './lib/collections/bank.collection';
|
|
7
11
|
export * from './lib/collections/bank-account.collection';
|
|
8
12
|
export * from './lib/collections/bank-transaction.collection';
|
|
9
13
|
export * from './lib/collections/client.collection';
|
|
@@ -38,6 +42,7 @@ export * from './lib/collections/exportable.collection';
|
|
|
38
42
|
/**
|
|
39
43
|
* DB models
|
|
40
44
|
*/
|
|
45
|
+
export * from './lib/db/Models/abstract-model';
|
|
41
46
|
export * from './lib/db/Models/transaction/transaction-base';
|
|
42
47
|
/**
|
|
43
48
|
* DB enums
|
|
@@ -139,6 +144,7 @@ export * from './lib/models/bank/bank-account-chart-data';
|
|
|
139
144
|
export * from './lib/models/bank/bank-account-property';
|
|
140
145
|
export * from './lib/models/bank/bank-account-types.const';
|
|
141
146
|
export * from './lib/models/bank/bank-connection';
|
|
147
|
+
export * from './lib/models/bank/bank-login-data';
|
|
142
148
|
export * from './lib/models/bank/bank-transaction';
|
|
143
149
|
export * from './lib/models/bank/bank-transaction-chart-data';
|
|
144
150
|
export * from './lib/models/bank/bank-transaction-summary-fields.enum';
|