taxtank-core 0.16.11 → 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.
@@ -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.11",
3
+ "version": "0.16.12",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",