taxtank-core 0.16.2 → 0.16.5

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.
@@ -15,10 +15,6 @@ export declare class PropertyService extends RestService<PropertyBase, Property>
15
15
  * Update cache when share invitation accepted
16
16
  */
17
17
  private listenShareInviteAccepted;
18
- /**
19
- * Update cache when user's service subscription is updated
20
- */
21
- private listenServiceSubscriptionUpdated;
22
18
  /**
23
19
  * Update cache when property category changed
24
20
  */
@@ -3,6 +3,7 @@ import { Observable, ReplaySubject } from 'rxjs';
3
3
  import { User } from '../../../models/user/user';
4
4
  import { EventDispatcherService } from '../../event/event-dispatcher.service';
5
5
  import { JwtService } from '../../auth/jwt.service';
6
+ import { SseService } from '../../event/sse.service';
6
7
  import { IEventListener } from '../../../interfaces/event-listener.interface';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
@@ -12,14 +13,17 @@ export declare class UserService implements IEventListener {
12
13
  private http;
13
14
  private jwtService;
14
15
  private eventDispatcherService;
16
+ private sseService;
15
17
  private environment;
16
18
  cache: User;
17
19
  cacheSubject: ReplaySubject<User>;
18
- constructor(http: HttpClient, jwtService: JwtService, eventDispatcherService: EventDispatcherService, environment: any);
20
+ constructor(http: HttpClient, jwtService: JwtService, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
21
+ listenEvents(): void;
22
+ get(): Observable<User>;
19
23
  /**
20
24
  * Get current user
21
25
  */
22
- get(): Observable<User>;
26
+ fetch(): Observable<User>;
23
27
  /**
24
28
  * Register new user
25
29
  */
@@ -56,7 +60,15 @@ export declare class UserService implements IEventListener {
56
60
  * Run forecast update script on backend when user switched financial year
57
61
  */
58
62
  switchFinancialYear(): Observable<object>;
59
- listenEvents(): void;
63
+ /**
64
+ * clear service cache
65
+ */
66
+ resetCache(): void;
67
+ /**
68
+ * Update cache when user's service subscription is updated
69
+ */
70
+ private listenServiceSubscriptionUpdated;
71
+ private listenBasiqConcentUpdated;
60
72
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
61
73
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
62
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.16.2",
3
+ "version": "0.16.5",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",