@bnsights/bbsf-utilities 1.0.38 → 1.0.39
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.
- package/README.md +4 -0
- package/bnsights-bbsf-utilities-1.0.39.tgz +0 -0
- package/bnsights-bbsf-utilities.metadata.json +1 -1
- package/bundles/bnsights-bbsf-utilities.umd.js +101 -110
- package/bundles/bnsights-bbsf-utilities.umd.js.map +1 -1
- package/esm2015/lib/shared/authentication/auth.service.js +9 -14
- package/esm2015/lib/shared/services/utility.service.js +4 -8
- package/fesm2015/bnsights-bbsf-utilities.js +93 -102
- package/fesm2015/bnsights-bbsf-utilities.js.map +1 -1
- package/lib/shared/authentication/auth.service.d.ts +7 -5
- package/lib/shared/services/utility.service.d.ts +1 -3
- package/package.json +1 -1
- package/bnsights-bbsf-utilities-1.0.38.tgz +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import { EnvironmentService } from '../services/environment.service';
|
|
5
6
|
import { BBSFTranslateService } from '../services/translate.service';
|
|
6
7
|
import { Router } from '@angular/router';
|
|
7
8
|
import { User } from '../models/UserModel';
|
|
8
9
|
import { CookieService } from 'ngx-cookie-service';
|
|
10
|
+
import { UtilityService } from '../services/utility.service';
|
|
9
11
|
export declare class AuthService {
|
|
10
12
|
private injector;
|
|
11
13
|
private http;
|
|
@@ -13,16 +15,17 @@ export declare class AuthService {
|
|
|
13
15
|
private translateService;
|
|
14
16
|
private router;
|
|
15
17
|
private cookieService;
|
|
18
|
+
private utilityService;
|
|
16
19
|
redirectUrl: string;
|
|
17
20
|
static user: User | null;
|
|
18
21
|
user: User | null;
|
|
19
22
|
static UserClaims: any;
|
|
20
23
|
private jwtHelper;
|
|
21
24
|
private isAuthenticatedSubject;
|
|
22
|
-
isAuthenticate$:
|
|
25
|
+
isAuthenticate$: Observable<boolean>;
|
|
23
26
|
static timers: any[];
|
|
24
27
|
static seconds: number;
|
|
25
|
-
constructor(injector: Injector, http: HttpClient, environmentService: EnvironmentService, translateService: BBSFTranslateService, router: Router, cookieService: CookieService);
|
|
28
|
+
constructor(injector: Injector, http: HttpClient, environmentService: EnvironmentService, translateService: BBSFTranslateService, router: Router, cookieService: CookieService, utilityService: UtilityService);
|
|
26
29
|
private hasToken;
|
|
27
30
|
getUserManager(): User;
|
|
28
31
|
getUser(): void;
|
|
@@ -35,9 +38,8 @@ export declare class AuthService {
|
|
|
35
38
|
setUrl(url: any): void;
|
|
36
39
|
getUrl(): string;
|
|
37
40
|
signout(): void;
|
|
38
|
-
logout():
|
|
39
|
-
clearUserSessionClaims():
|
|
40
|
-
loginForm(model: any): import("rxjs").Observable<Object>;
|
|
41
|
+
logout(): Observable<Object>;
|
|
42
|
+
clearUserSessionClaims(): Observable<Object>;
|
|
41
43
|
handleAccessToken(response: any): Promise<void>;
|
|
42
44
|
handleAccessTokenWithoutLanguage(response: any): void;
|
|
43
45
|
updateLanguage(): Promise<void>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { NgBlockUI } from 'ng-block-ui';
|
|
2
|
-
import { AuthService } from '../authentication/auth.service';
|
|
3
2
|
import { BBSFTranslateService } from './translate.service';
|
|
4
3
|
import { EnvironmentService } from './environment.service';
|
|
5
4
|
export declare class UtilityService {
|
|
6
5
|
private translator;
|
|
7
|
-
private authService;
|
|
8
6
|
private environmentService;
|
|
9
7
|
isCreatedBefore: boolean;
|
|
10
8
|
blockUI: NgBlockUI;
|
|
11
|
-
constructor(translator: BBSFTranslateService,
|
|
9
|
+
constructor(translator: BBSFTranslateService, environmentService: EnvironmentService);
|
|
12
10
|
getResourceValue(Key: string): string;
|
|
13
11
|
getCurrentLanguage(): string;
|
|
14
12
|
isCurrentLanguageEnglish(): boolean;
|
package/package.json
CHANGED
|
Binary file
|