@ohioepa/oepa-ui-lib 1.2.7 → 1.2.9
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/esm2022/lib/oepa-user-account/oepa-user-account.service.mjs +17 -7
- package/esm2022/lib/util/oepa-http-interceptor.mjs +28 -7
- package/fesm2022/ohioepa-oepa-ui-lib.mjs +44 -11
- package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -1
- package/lib/oepa-user-account/oepa-user-account.service.d.ts +6 -2
- package/lib/util/oepa-http-interceptor.d.ts +1 -0
- package/ohioepa-oepa-ui-lib-1.2.9.tgz +0 -0
- package/package.json +1 -1
- package/ohioepa-oepa-ui-lib-1.2.7.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { OepaUserAccount, ProgramPrivilege, ProgramPrivilegeRequest, Delegation } from '@ohioepa/oepa-common-lib';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -16,13 +16,14 @@ export declare class OepaUserAccountService {
|
|
|
16
16
|
private personID;
|
|
17
17
|
private sessionID;
|
|
18
18
|
private webappsRootURL;
|
|
19
|
-
private ebizVersion;
|
|
20
19
|
private logoutPath;
|
|
21
20
|
private idleTimerRunning;
|
|
22
21
|
private idleTime;
|
|
23
22
|
private idleThreshold;
|
|
24
23
|
private idleSubject;
|
|
25
24
|
private timeoutID;
|
|
25
|
+
userAccount$: Subject<OepaUserAccount>;
|
|
26
|
+
private authToken;
|
|
26
27
|
constructor(http: HttpClient, ebizRootURL: string);
|
|
27
28
|
/**
|
|
28
29
|
* Retrieve the User Account for the user userid.
|
|
@@ -63,6 +64,9 @@ export declare class OepaUserAccountService {
|
|
|
63
64
|
* must be invoked prior to invoking this method.
|
|
64
65
|
*/
|
|
65
66
|
getCurrentUserAccount(): OepaUserAccount;
|
|
67
|
+
setCurrentUserAccount(account: OepaUserAccount): void;
|
|
68
|
+
getAuthToken(): string;
|
|
69
|
+
setAuthToken(token: string): void;
|
|
66
70
|
/**
|
|
67
71
|
* ===========================================================================================================================
|
|
68
72
|
* EBIZ METHODS:
|
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class OepaHttpInterceptor implements HttpInterceptor {
|
|
6
6
|
private userAccountService;
|
|
7
7
|
readonly defaultTimeout: number;
|
|
8
|
+
private userID;
|
|
8
9
|
constructor(userAccountService: OepaUserAccountService);
|
|
9
10
|
/**
|
|
10
11
|
* Add a timestamp as a query parameter to all http requests
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|