@ohioepa/oepa-ui-lib 1.2.12 → 1.2.14

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.
@@ -24,6 +24,7 @@ export declare class OepaUserAccountService {
24
24
  private idleSubject;
25
25
  private timeoutID;
26
26
  userAccount$: Subject<OepaUserAccount>;
27
+ sessionID$: Subject<string>;
27
28
  private authToken;
28
29
  constructor(http: HttpClient, ebizRootURL: string);
29
30
  /**
@@ -33,22 +34,20 @@ export declare class OepaUserAccountService {
33
34
  retrieveAccountForUser(userid: string): Observable<OepaUserAccount>;
34
35
  retrieveAccountByOHID(ohid: string, app: string): Observable<OepaUserAccount>;
35
36
  /**
36
- * @deprecated Should not use session user ID for Amplify apps
37
37
  * Retrieve the user account for the currently logged in user.
38
38
  * @returns Observable<OepaUserAccount>
39
39
  */
40
- retrieveAccountForCurrentUser(): Observable<OepaUserAccount>;
40
+ retrieveAccountForCurrentUser(app: string): Observable<OepaUserAccount>;
41
41
  /**
42
42
  * Redirect to logout screen if user is not found
43
43
  */
44
44
  redirectToLogout(msg?: string): void;
45
45
  /**
46
46
  * Retrieve the user account for the currently logged in user.
47
- * @deprecated should retrieve account by OHID instead
48
47
  * @param sessionID person ID for internal user
49
48
  * @returns Observable<OepaUserAccount>
50
49
  */
51
- retrieveAccountForInternalSession(personID: string, sessionID: string): Observable<OepaUserAccount>;
50
+ retrieveAccountForInternalSession(personID: string, sessionID: string, app: string): Observable<OepaUserAccount>;
52
51
  /**
53
52
  * Determine whether account has the role roleName.
54
53
  * @param account
@@ -77,8 +76,8 @@ export declare class OepaUserAccountService {
77
76
  * The methods below currently apply only to eBiz.
78
77
  * ===========================================================================================================================
79
78
  */
80
- getWebappsRootURL(): Observable<string>;
81
- getEBizVersion(): Observable<string>;
79
+ getWebappsRootURL(app: string): Observable<string>;
80
+ getEBizVersion(app: string): Observable<string>;
82
81
  /**
83
82
  * Return array of ProgramPrivileges matching programPrivilegeRequest.
84
83
  * @param programPrivilegeRequest
@@ -18,6 +18,7 @@ export declare class PinModalComponent implements OnInit {
18
18
  get attestationID(): string;
19
19
  submitCallback: () => Observable<any>;
20
20
  submittingComponent: any;
21
+ app: string;
21
22
  close: EventEmitter<void>;
22
23
  imageRoot: string;
23
24
  oepaSubmissionForm: FormGroup;
@@ -43,5 +44,5 @@ export declare class PinModalComponent implements OnInit {
43
44
  private retrieveAttestations;
44
45
  private retrieveNewSecurityQuestion;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<PinModalComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<PinModalComponent, "oepa-pin-modal", never, { "attestationID": { "alias": "attestationID"; "required": false; }; "submitCallback": { "alias": "submitCallback"; "required": false; }; "submittingComponent": { "alias": "submittingComponent"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<PinModalComponent, "oepa-pin-modal", never, { "attestationID": { "alias": "attestationID"; "required": false; }; "submitCallback": { "alias": "submitCallback"; "required": false; }; "submittingComponent": { "alias": "submittingComponent"; "required": false; }; "app": { "alias": "app"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
47
48
  }
@@ -6,6 +6,7 @@ export declare class OepaHttpInterceptor implements HttpInterceptor {
6
6
  private userAccountService;
7
7
  readonly defaultTimeout: number;
8
8
  private userID;
9
+ private sessionID;
9
10
  constructor(userAccountService: OepaUserAccountService);
10
11
  /**
11
12
  * Add a timestamp as a query parameter to all http requests
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohioepa/oepa-ui-lib",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"