@annalib/anna-cognito-lib 2.2.10 → 2.2.11

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.
@@ -5,6 +5,7 @@ import { AnnaLibAuthService } from "../../services/auth.service";
5
5
  import { LoginConstant } from "../../constants/loginConstant";
6
6
  import { Router } from '@angular/router';
7
7
  import { IConfigService } from '../../config/config-service.token';
8
+ import { IAuthService } from "../../config/auth-service.token";
8
9
  import * as i0 from "@angular/core";
9
10
  declare type passwordType = {
10
11
  value: string;
@@ -16,6 +17,7 @@ export declare class ForgotPasswordComponent implements OnInit {
16
17
  private toastr;
17
18
  private router;
18
19
  consumingProjectConfigService: IConfigService;
20
+ consumingProjectAuthService: IAuthService;
19
21
  errorMessage: string;
20
22
  verifyRegisteredEmail: FormGroup;
21
23
  passwordNotMatching: boolean;
@@ -24,7 +26,7 @@ export declare class ForgotPasswordComponent implements OnInit {
24
26
  confirmPassword: passwordType;
25
27
  infoMessageToRedirectLogin: string;
26
28
  isLoading: boolean;
27
- constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService);
29
+ constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService);
28
30
  ngOnInit(): void;
29
31
  onIntialiseForm(): void;
30
32
  onUpdateForm(): void;
@@ -4,6 +4,10 @@ import { Observable } from 'rxjs';
4
4
  export declare const AUTH_SERVICE_TOKEN: InjectionToken<IAuthService>;
5
5
  export interface IAuthService {
6
6
  isLoggingIn: boolean;
7
+ userName: any;
8
+ accessToken: string;
9
+ IdToken: any;
10
+ defaultLoginPageUrl: "co-pilot-login" | "login";
7
11
  onSuccessfulAuthenticatingUser(loggedInViaSso: boolean): void;
8
12
  isUsernameAvailable(username: string): Observable<any>;
9
13
  isEmailAvailable(emailId: string, ogId: number): Observable<any>;
@@ -3,7 +3,6 @@ import { Router } from "@angular/router";
3
3
  import { AuthTokens, SignInInput } from "aws-amplify/auth";
4
4
  import { ToastrService } from 'ngx-toastr';
5
5
  import { IAuthService } from '../config/auth-service.token';
6
- import { IConfigService } from '../config/config-service.token';
7
6
  import { AnnaLibAclService } from './acl.service';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class AnnaLibAuthService {
@@ -12,10 +11,6 @@ export declare class AnnaLibAuthService {
12
11
  httpClient: HttpClient;
13
12
  private toastr;
14
13
  consumingProjectAuthService: IAuthService;
15
- consumingProjectConfigService: IConfigService;
16
- defaultLoginPageUrl: "co-pilot-login" | "login";
17
- accessToken: string;
18
- IdToken: any;
19
14
  loginErrorMessage: string | null;
20
15
  setNewPasswordErrorMessage: string;
21
16
  setNewPasswordButtonMessage: string;
@@ -24,10 +19,9 @@ export declare class AnnaLibAuthService {
24
19
  verifyAndSetNewPasswordButton: string;
25
20
  noOfAttempts: number;
26
21
  sessionLocked: boolean;
27
- userName: any;
28
22
  accessTokenTimerId: any;
29
23
  forgotPasswordAndGlobalSignoutLoader: boolean;
30
- constructor(router: Router, aclService: AnnaLibAclService, httpClient: HttpClient, toastr: ToastrService, consumingProjectAuthService: IAuthService, consumingProjectConfigService: IConfigService);
24
+ constructor(router: Router, aclService: AnnaLibAclService, httpClient: HttpClient, toastr: ToastrService, consumingProjectAuthService: IAuthService);
31
25
  ngOnInit(): void;
32
26
  isUserLoggedIn(): Promise<boolean>;
33
27
  sessionTimeout(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-cognito-lib",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.9",
6
6
  "@angular/core": "^15.2.9",