taxtank-core 0.16.9 → 0.16.12
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 +23 -96
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/income-source.collection.js +4 -1
- package/esm2015/lib/db/Enums/income-source-type-list-other.enum.js +1 -1
- package/esm2015/lib/db/Enums/income-source-type-list-work.enum.js +2 -1
- package/esm2015/lib/db/Enums/income-source-type.enum.js +3 -4
- package/esm2015/lib/models/income-source/income-source-type.js +4 -6
- package/esm2015/lib/models/income-source/income-source.js +4 -2
- package/esm2015/lib/services/account-setup/account-setup.service.js +11 -7
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +5 -79
- package/fesm2015/taxtank-core.js +23 -92
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/income-source.collection.d.ts +1 -0
- package/lib/db/Enums/income-source-type-list-work.enum.d.ts +1 -0
- package/lib/db/Enums/income-source-type.enum.d.ts +3 -4
- package/lib/models/income-source/income-source-type.d.ts +1 -1
- package/lib/services/account-setup/account-setup.service.d.ts +3 -2
- package/lib/services/http/bank/basiq/basiq.service.d.ts +2 -29
- package/package.json +1 -1
- package/esm2015/lib/db/Enums/income-source-type-list-salary.enum.js +0 -5
- package/lib/db/Enums/income-source-type-list-salary.enum.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IncomeSourceType as IncomeSourceTypeBase } from '../../db/Models/incomeSource/income-source-type';
|
|
2
2
|
import { IncomeSourceTypeEnum } from '../../db/Enums/income-source-type.enum';
|
|
3
3
|
export declare class IncomeSourceType extends IncomeSourceTypeBase {
|
|
4
|
-
|
|
4
|
+
isBonuses(): boolean;
|
|
5
5
|
isWork(): boolean;
|
|
6
6
|
isOther(): boolean;
|
|
7
7
|
isSole(): boolean;
|
|
@@ -44,9 +44,10 @@ export declare class AccountSetupService {
|
|
|
44
44
|
*/
|
|
45
45
|
private createBatch;
|
|
46
46
|
/**
|
|
47
|
-
* @TODO work with collection when services refactored
|
|
47
|
+
* @TODO Alex: work with collection when services refactored
|
|
48
|
+
* @TODO Vik: waiting for income sources refactoring
|
|
48
49
|
*/
|
|
49
|
-
private
|
|
50
|
+
private getIncomeSources;
|
|
50
51
|
/**
|
|
51
52
|
* Show logbook item when user has at least 1 vehicle transaction
|
|
52
53
|
*/
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
2
|
import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
|
|
3
|
-
import { RestService } from '../../rest/rest.service';
|
|
4
3
|
import { BankAccount } from '../../../../models/bank/bank-account';
|
|
4
|
+
import { RestService } from '../../rest/rest.service';
|
|
5
5
|
import { BasiqToken } from '../../../../models/bank/basiq-token';
|
|
6
6
|
import { BankConnection } from '../../../../models/bank/bank-connection';
|
|
7
|
-
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
8
|
-
import { User } from '../../../../models/user/user';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
/**
|
|
11
9
|
* basiq is a middleman between bank and user
|
|
12
10
|
* service is responsible for fetching bank related information
|
|
13
11
|
*/
|
|
14
|
-
export declare class BasiqService extends RestService<BankAccountBase, BankAccount>
|
|
12
|
+
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> {
|
|
15
13
|
token: BasiqToken;
|
|
16
14
|
tokenSubject: ReplaySubject<BasiqToken>;
|
|
17
15
|
url: string;
|
|
@@ -20,32 +18,11 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
20
18
|
* Listen events from Event Dispatcher service
|
|
21
19
|
*/
|
|
22
20
|
listenEvents(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Update user's basiq consents data on backend
|
|
25
|
-
*/
|
|
26
|
-
confirmConsents(): Observable<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Notify backend to update connections
|
|
29
|
-
*/
|
|
30
|
-
updateConnections(): Observable<void>;
|
|
31
21
|
/**
|
|
32
22
|
* access token to use basiq connect ui iframe
|
|
33
23
|
*/
|
|
34
24
|
getToken(): Observable<BasiqToken>;
|
|
35
|
-
/**
|
|
36
|
-
* Get list of user's bank conections
|
|
37
|
-
*/
|
|
38
25
|
getConnections(): Observable<BankConnection[]>;
|
|
39
|
-
/**
|
|
40
|
-
* Listen response from basiq UI to handle result.
|
|
41
|
-
* @param isBasiqConsentExist flag from User.ClientDetails - true if user confirmed basiq consent
|
|
42
|
-
* @param callback function we run after basiq UI work is finished
|
|
43
|
-
*/
|
|
44
|
-
listenBasiqResponse(isBasiqConsentExist: boolean, callback: () => any): void;
|
|
45
|
-
/**
|
|
46
|
-
* Get URL with filled params to run basiq UI iframe
|
|
47
|
-
*/
|
|
48
|
-
generateBasiqConsentUrl(user: User): Observable<string>;
|
|
49
26
|
/**
|
|
50
27
|
* Listen to EventDispatcherService event related to added Bank connection
|
|
51
28
|
*/
|
|
@@ -54,10 +31,6 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
54
31
|
* listen to notifications to update basiq accounts list
|
|
55
32
|
*/
|
|
56
33
|
private listenNotifications;
|
|
57
|
-
/**
|
|
58
|
-
* Update user's basiq connections when user confirmed basiq consent
|
|
59
|
-
*/
|
|
60
|
-
private listenBasiqConcentUpdated;
|
|
61
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
|
|
62
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
|
|
63
36
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export var IncomeSourceTypeListSalaryEnum;
|
|
2
|
-
(function (IncomeSourceTypeListSalaryEnum) {
|
|
3
|
-
IncomeSourceTypeListSalaryEnum[IncomeSourceTypeListSalaryEnum["BONUSES"] = 1] = "BONUSES";
|
|
4
|
-
})(IncomeSourceTypeListSalaryEnum || (IncomeSourceTypeListSalaryEnum = {}));
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jb21lLXNvdXJjZS10eXBlLWxpc3Qtc2FsYXJ5LmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvaW5jb21lLXNvdXJjZS10eXBlLWxpc3Qtc2FsYXJ5LmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksOEJBRVg7QUFGRCxXQUFZLDhCQUE4QjtJQUN4Qyx5RkFBVyxDQUFBO0FBQ2IsQ0FBQyxFQUZXLDhCQUE4QixLQUE5Qiw4QkFBOEIsUUFFekMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBJbmNvbWVTb3VyY2VUeXBlTGlzdFNhbGFyeUVudW0ge1xuICBCT05VU0VTID0gMSxcbn1cbiJdfQ==
|