taxtank-core 0.16.10 → 0.16.13

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.
@@ -40,6 +40,11 @@ export declare class CollectionDictionary<Collection extends BaseCollection<obje
40
40
  */
41
41
  createCollection(items?: object[]): Collection;
42
42
  length(): number;
43
+ /**
44
+ * @Todo find a better solution to get list of the sorted keys
45
+ * Get array of the "keys" by provided order
46
+ */
47
+ getSortedKeys(isDesc?: boolean): string[];
43
48
  /**
44
49
  * Group collection items by passed path into items object
45
50
  */
@@ -13,6 +13,7 @@ export declare class IncomeSourceCollection extends Collection<IncomeSource> {
13
13
  * @param types
14
14
  */
15
15
  filterByTypes(types: IncomeSourceTypeEnum[]): IncomeSource[];
16
+ getSalary(): IncomeSource[];
16
17
  /**
17
18
  * Get income sources list of forecasts
18
19
  */
@@ -1,4 +1,5 @@
1
1
  export declare enum IncomeSourceTypeListWorkEnum {
2
+ BONUSES = 1,
2
3
  DIRECTOR_FEES = 2,
3
4
  DIVIDENDS = 3,
4
5
  INTEREST = 4,
@@ -1,6 +1,5 @@
1
1
  export declare enum IncomeSourceTypeEnum {
2
- SALARY = 1,
3
- WORK = 2,
4
- OTHER = 3,
5
- SOLE = 4
2
+ WORK = 1,
3
+ SOLE = 2,
4
+ OTHER = 3
6
5
  }
@@ -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
- isSalary(): boolean;
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 getIncomeSourcesByType;
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> implements IEventListener {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.16.10",
3
+ "version": "0.16.13",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
@@ -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==
@@ -1,3 +0,0 @@
1
- export declare enum IncomeSourceTypeListSalaryEnum {
2
- BONUSES = 1
3
- }