@trudb/tru-common-lib 0.0.681 → 0.0.682

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.
@@ -11,11 +11,12 @@ export declare class TruAuth {
11
11
  private router;
12
12
  private http;
13
13
  private cache;
14
+ private user;
14
15
  private appEnvironment;
15
16
  private auth;
16
17
  private loggedIn;
17
18
  private baseUrl;
18
- constructor(router: Router, http: HttpClient, cache: TruAuthCache, appEnvironment: TruAppEnvironment, auth: TruAuthStrategy<any>);
19
+ constructor(router: Router, http: HttpClient, cache: TruAuthCache, user: TruUser, appEnvironment: TruAppEnvironment, auth: TruAuthStrategy<any>);
19
20
  login(loginRequest: TruAuthLoginRequest): Observable<any>;
20
21
  logout(): void;
21
22
  isLoggedIn$(): Observable<boolean>;
@@ -6,7 +6,6 @@ export declare class TruUser implements ITruUser {
6
6
  private _lastName;
7
7
  private _email;
8
8
  private _roles;
9
- private _userSet;
10
9
  constructor();
11
10
  get activeUserRef(): number;
12
11
  get username(): string | null;
@@ -16,6 +15,7 @@ export declare class TruUser implements ITruUser {
16
15
  get roles(): string[] | null;
17
16
  hasRoles: (roles: string[]) => boolean;
18
17
  create: (user: ITruUser) => void;
18
+ destroy: () => void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TruUser, never>;
20
20
  static ɵprov: i0.ɵɵInjectableDeclaration<TruUser>;
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.681",
3
+ "version": "0.0.682",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {