taxtank-core 0.16.4 → 0.16.7

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.
@@ -1,4 +1,4 @@
1
1
  export declare enum PropertyCategoryListEnum {
2
2
  OWNER_OCCUPIED = 3,
3
- VACANT_LAND = 6
3
+ VACANT_LAND = 5
4
4
  }
@@ -5,6 +5,7 @@ import { BankAccount } from '../../../../models/bank/bank-account';
5
5
  import { BasiqToken } from '../../../../models/bank/basiq-token';
6
6
  import { BankConnection } from '../../../../models/bank/bank-connection';
7
7
  import { IEventListener } from '../../../../interfaces/event-listener.interface';
8
+ import { User } from '../../../../models/user/user';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * basiq is a middleman between bank and user
@@ -22,7 +23,7 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
22
23
  /**
23
24
  * Update user's basiq consents data on backend
24
25
  */
25
- confirmConsents(): Observable<boolean>;
26
+ confirmConsents(): Observable<void>;
26
27
  /**
27
28
  * Notify backend to update connections
28
29
  */
@@ -31,7 +32,20 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
31
32
  * access token to use basiq connect ui iframe
32
33
  */
33
34
  getToken(): Observable<BasiqToken>;
35
+ /**
36
+ * Get list of user's bank conections
37
+ */
34
38
  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>;
35
49
  /**
36
50
  * Listen to EventDispatcherService event related to added Bank connection
37
51
  */
@@ -40,6 +54,10 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
40
54
  * listen to notifications to update basiq accounts list
41
55
  */
42
56
  private listenNotifications;
57
+ /**
58
+ * Update user's basiq connections when user confirmed basiq consent
59
+ */
60
+ private listenBasiqConcentUpdated;
43
61
  static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
44
62
  static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
45
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.16.4",
3
+ "version": "0.16.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",