@annalib/anna-cognito-lib 2.2.42 → 2.3.0

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.
Files changed (56) hide show
  1. package/{esm2020 → esm2022}/annalib-anna-cognito-lib.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/anna-cognito-lib.module.mjs +91 -91
  3. package/{esm2020 → esm2022}/lib/components/anna-login/anna-login.component.mjs +55 -55
  4. package/{esm2020 → esm2022}/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +22 -22
  5. package/{esm2020 → esm2022}/lib/components/forgot-password/forgot-password.component.mjs +123 -123
  6. package/{esm2020 → esm2022}/lib/components/password-matching/password-matching.component.mjs +90 -90
  7. package/{esm2020 → esm2022}/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +15 -15
  8. package/{esm2020 → esm2022}/lib/components/set-new-password/set-new-password.component.mjs +63 -63
  9. package/{esm2020 → esm2022}/lib/components/sso-login/sso-login.component.mjs +32 -32
  10. package/{esm2020 → esm2022}/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +15 -15
  11. package/{esm2020 → esm2022}/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +78 -78
  12. package/{esm2020 → esm2022}/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +20 -20
  13. package/{esm2020 → esm2022}/lib/config/acl-service.token.mjs +3 -3
  14. package/{esm2020 → esm2022}/lib/config/auth-service.token.mjs +3 -3
  15. package/{esm2020 → esm2022}/lib/config/config-service.token.mjs +3 -3
  16. package/{esm2020 → esm2022}/lib/config/sso-login-service.token.mjs +3 -3
  17. package/esm2022/lib/constants/loginConstant.mjs +55 -0
  18. package/{esm2020 → esm2022}/lib/directives/spinner-button/index.mjs +1 -1
  19. package/{esm2020 → esm2022}/lib/directives/spinner-button/spinner-button.directive.mjs +42 -42
  20. package/{esm2020 → esm2022}/lib/models/auth.model.mjs +23 -23
  21. package/{esm2020 → esm2022}/lib/services/acl.service.mjs +27 -27
  22. package/{esm2020 → esm2022}/lib/services/auth.service.mjs +306 -306
  23. package/{esm2020 → esm2022}/lib/services/config.service.mjs +20 -20
  24. package/{esm2020 → esm2022}/lib/services/sso-login.service.mjs +20 -20
  25. package/{esm2020 → esm2022}/public-api.mjs +28 -28
  26. package/{fesm2020 → fesm2022}/annalib-anna-cognito-lib.mjs +922 -922
  27. package/{fesm2020 → fesm2022}/annalib-anna-cognito-lib.mjs.map +1 -1
  28. package/index.d.ts +5 -5
  29. package/lib/anna-cognito-lib.module.d.ts +21 -21
  30. package/lib/components/anna-login/anna-login.component.d.ts +20 -20
  31. package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +10 -10
  32. package/lib/components/forgot-password/forgot-password.component.d.ts +42 -42
  33. package/lib/components/password-matching/password-matching.component.d.ts +22 -22
  34. package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +8 -8
  35. package/lib/components/set-new-password/set-new-password.component.d.ts +28 -28
  36. package/lib/components/sso-login/sso-login.component.d.ts +14 -14
  37. package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +9 -9
  38. package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +32 -32
  39. package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +10 -10
  40. package/lib/config/acl-service.token.d.ts +36 -36
  41. package/lib/config/auth-service.token.d.ts +23 -23
  42. package/lib/config/config-service.token.d.ts +13 -13
  43. package/lib/config/sso-login-service.token.d.ts +10 -10
  44. package/lib/constants/loginConstant.d.ts +49 -49
  45. package/lib/directives/spinner-button/index.d.ts +1 -1
  46. package/lib/directives/spinner-button/spinner-button.directive.d.ts +15 -15
  47. package/lib/models/auth.model.d.ts +21 -21
  48. package/lib/services/acl.service.d.ts +11 -11
  49. package/lib/services/auth.service.d.ts +47 -47
  50. package/lib/services/config.service.d.ts +8 -8
  51. package/lib/services/sso-login.service.d.ts +8 -8
  52. package/package.json +7 -13
  53. package/public-api.d.ts +21 -21
  54. package/esm2020/lib/constants/loginConstant.mjs +0 -55
  55. package/fesm2015/annalib-anna-cognito-lib.mjs +0 -1031
  56. package/fesm2015/annalib-anna-cognito-lib.mjs.map +0 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@annalib/anna-cognito-lib" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@annalib/anna-cognito-lib" />
5
+ export * from './public-api';
@@ -1,21 +1,21 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
3
- import * as i2 from "./components/set-new-password/set-new-password.component";
4
- import * as i3 from "./components/password-matching/password-matching.component";
5
- import * as i4 from "./components/forgot-password/forgot-password.component";
6
- import * as i5 from "./components/verify-and-set-new-password/verify-and-set-new-password.component";
7
- import * as i6 from "./directives/spinner-button/spinner-button.directive";
8
- import * as i7 from "./components/version-and-term-policy/version-and-term-policy.component";
9
- import * as i8 from "./components/surewaves-year-logo/surewaves-year-logo.component";
10
- import * as i9 from "./components/powered-by-logo-template/powered-by-logo-template.component";
11
- import * as i10 from "./components/sso-login/sso-login.component";
12
- import * as i11 from "./components/anna-login/anna-login.component";
13
- import * as i12 from "@angular/forms";
14
- import * as i13 from "@angular/router";
15
- import * as i14 from "@angular/common";
16
- export declare class AnnaCognitoLibModule {
17
- constructor();
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCognitoLibModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCognitoLibModule, [typeof i1.CognitoAndSSOLoginContainerComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent, typeof i10.SsoLoginComponent, typeof i11.AnnaLoginComponent], [typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.RouterModule, typeof i14.CommonModule, typeof i14.NgOptimizedImage], [typeof i1.CognitoAndSSOLoginContainerComponent, typeof i10.SsoLoginComponent, typeof i11.AnnaLoginComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent, typeof i14.NgOptimizedImage]>;
20
- static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCognitoLibModule>;
21
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
3
+ import * as i2 from "./components/set-new-password/set-new-password.component";
4
+ import * as i3 from "./components/password-matching/password-matching.component";
5
+ import * as i4 from "./components/forgot-password/forgot-password.component";
6
+ import * as i5 from "./components/verify-and-set-new-password/verify-and-set-new-password.component";
7
+ import * as i6 from "./directives/spinner-button/spinner-button.directive";
8
+ import * as i7 from "./components/version-and-term-policy/version-and-term-policy.component";
9
+ import * as i8 from "./components/surewaves-year-logo/surewaves-year-logo.component";
10
+ import * as i9 from "./components/powered-by-logo-template/powered-by-logo-template.component";
11
+ import * as i10 from "./components/sso-login/sso-login.component";
12
+ import * as i11 from "./components/anna-login/anna-login.component";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "@angular/router";
15
+ import * as i14 from "@angular/common";
16
+ export declare class AnnaCognitoLibModule {
17
+ constructor();
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCognitoLibModule, never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCognitoLibModule, [typeof i1.CognitoAndSSOLoginContainerComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent, typeof i10.SsoLoginComponent, typeof i11.AnnaLoginComponent], [typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.RouterModule, typeof i14.CommonModule, typeof i14.NgOptimizedImage], [typeof i1.CognitoAndSSOLoginContainerComponent, typeof i10.SsoLoginComponent, typeof i11.AnnaLoginComponent, typeof i2.SetNewPasswordComponent, typeof i3.PasswordMatchingComponent, typeof i4.ForgotPasswordComponent, typeof i5.VerifyAndSetNewPasswordComponent, typeof i6.SpinnerButtonDirective, typeof i7.VersionAndTermPolicyComponent, typeof i8.SurewavesYearLogoComponent, typeof i9.PoweredByLogoTemplateComponent, typeof i14.NgOptimizedImage]>;
20
+ static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCognitoLibModule>;
21
+ }
@@ -1,20 +1,20 @@
1
- import { FormBuilder, FormGroup } from "@angular/forms";
2
- import { LoginConstant } from "../../constants/loginConstant";
3
- import { AnnaLibAuthService } from '../../services/auth.service';
4
- import { IConfigService } from '../../config/config-service.token';
5
- import { ISSOLoginService } from "../../config/sso-login-service.token";
6
- import * as i0 from "@angular/core";
7
- export declare class AnnaLoginComponent {
8
- authService: AnnaLibAuthService;
9
- private fb;
10
- consumingProjectConfigService: IConfigService;
11
- consumingProjectSSOLoginService: ISSOLoginService;
12
- loginForm: FormGroup;
13
- constants: typeof LoginConstant;
14
- constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService, consumingProjectSSOLoginService: ISSOLoginService);
15
- ngOnInit(): void;
16
- onIntialiseForm(): void;
17
- OnLogin(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaLoginComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaLoginComponent, "anna-cognito-lib-anna-login", never, {}, {}, never, never, false, never>;
20
- }
1
+ import { FormBuilder, FormGroup } from "@angular/forms";
2
+ import { LoginConstant } from "../../constants/loginConstant";
3
+ import { AnnaLibAuthService } from '../../services/auth.service';
4
+ import { IConfigService } from '../../config/config-service.token';
5
+ import { ISSOLoginService } from "../../config/sso-login-service.token";
6
+ import * as i0 from "@angular/core";
7
+ export declare class AnnaLoginComponent {
8
+ authService: AnnaLibAuthService;
9
+ private fb;
10
+ consumingProjectConfigService: IConfigService;
11
+ consumingProjectSSOLoginService: ISSOLoginService;
12
+ loginForm: FormGroup;
13
+ constants: typeof LoginConstant;
14
+ constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService, consumingProjectSSOLoginService: ISSOLoginService);
15
+ ngOnInit(): void;
16
+ onIntialiseForm(): void;
17
+ OnLogin(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaLoginComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaLoginComponent, "anna-cognito-lib-anna-login", never, {}, {}, never, never, false, never>;
20
+ }
@@ -1,10 +1,10 @@
1
- import { OnInit } from "@angular/core";
2
- import { ISSOLoginService } from "../../config/sso-login-service.token";
3
- import * as i0 from "@angular/core";
4
- export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
5
- consumingProjectSSOLoginService: ISSOLoginService;
6
- constructor(consumingProjectSSOLoginService: ISSOLoginService);
7
- ngOnInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CognitoAndSSOLoginContainerComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<CognitoAndSSOLoginContainerComponent, "anna-cognito-lib-cognito-and-sso-login-container", never, {}, {}, never, never, false, never>;
10
- }
1
+ import { OnInit } from "@angular/core";
2
+ import { ISSOLoginService } from "../../config/sso-login-service.token";
3
+ import * as i0 from "@angular/core";
4
+ export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
5
+ consumingProjectSSOLoginService: ISSOLoginService;
6
+ constructor(consumingProjectSSOLoginService: ISSOLoginService);
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CognitoAndSSOLoginContainerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<CognitoAndSSOLoginContainerComponent, "anna-cognito-lib-cognito-and-sso-login-container", never, {}, {}, never, never, false, never>;
10
+ }
@@ -1,42 +1,42 @@
1
- import { OnInit } from "@angular/core";
2
- import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { ToastrService } from "ngx-toastr";
4
- import { AnnaLibAuthService } from "../../services/auth.service";
5
- import { LoginConstant } from "../../constants/loginConstant";
6
- import { Router } from '@angular/router';
7
- import { IConfigService } from '../../config/config-service.token';
8
- import { IAuthService } from "../../config/auth-service.token";
9
- import { ISSOLoginService } from "../../config/sso-login-service.token";
10
- import * as i0 from "@angular/core";
11
- declare type passwordType = {
12
- value: string;
13
- status: string;
14
- };
15
- export declare class ForgotPasswordComponent implements OnInit {
16
- private authService;
17
- private fb;
18
- private toastr;
19
- private router;
20
- consumingProjectConfigService: IConfigService;
21
- consumingProjectAuthService: IAuthService;
22
- consumingProjectSSOLoginService: ISSOLoginService;
23
- errorMessage: string;
24
- verifyRegisteredEmail: FormGroup;
25
- passwordNotMatching: boolean;
26
- constants: typeof LoginConstant;
27
- password: passwordType;
28
- confirmPassword: passwordType;
29
- infoMessageToRedirectLogin: string;
30
- isLoading: boolean;
31
- constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService, consumingProjectSSOLoginService: ISSOLoginService);
32
- ngOnInit(): void;
33
- onIntialiseForm(): void;
34
- onUpdateForm(): void;
35
- isFormValid(): boolean;
36
- onLoginOrGetOtpButtonClick(): void;
37
- onVerifyRegisteredEmail(): void;
38
- onGettingUserStatus(isUsernameAvailable: boolean, isUserWithTempPassword: boolean, username: string): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "anna-cognito-lib-forgot-password", never, {}, {}, never, never, false, never>;
41
- }
42
- export {};
1
+ import { OnInit } from "@angular/core";
2
+ import { FormBuilder, FormGroup } from "@angular/forms";
3
+ import { ToastrService } from "ngx-toastr";
4
+ import { AnnaLibAuthService } from "../../services/auth.service";
5
+ import { LoginConstant } from "../../constants/loginConstant";
6
+ import { Router } from '@angular/router';
7
+ import { IConfigService } from '../../config/config-service.token';
8
+ import { IAuthService } from "../../config/auth-service.token";
9
+ import { ISSOLoginService } from "../../config/sso-login-service.token";
10
+ import * as i0 from "@angular/core";
11
+ type passwordType = {
12
+ value: string;
13
+ status: string;
14
+ };
15
+ export declare class ForgotPasswordComponent implements OnInit {
16
+ private authService;
17
+ private fb;
18
+ private toastr;
19
+ private router;
20
+ consumingProjectConfigService: IConfigService;
21
+ consumingProjectAuthService: IAuthService;
22
+ consumingProjectSSOLoginService: ISSOLoginService;
23
+ errorMessage: string;
24
+ verifyRegisteredEmail: FormGroup;
25
+ passwordNotMatching: boolean;
26
+ constants: typeof LoginConstant;
27
+ password: passwordType;
28
+ confirmPassword: passwordType;
29
+ infoMessageToRedirectLogin: string;
30
+ isLoading: boolean;
31
+ constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService, consumingProjectSSOLoginService: ISSOLoginService);
32
+ ngOnInit(): void;
33
+ onIntialiseForm(): void;
34
+ onUpdateForm(): void;
35
+ isFormValid(): boolean;
36
+ onLoginOrGetOtpButtonClick(): void;
37
+ onVerifyRegisteredEmail(): void;
38
+ onGettingUserStatus(isUsernameAvailable: boolean, isUserWithTempPassword: boolean, username: string): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "anna-cognito-lib-forgot-password", never, {}, {}, never, never, false, never>;
41
+ }
42
+ export {};
@@ -1,22 +1,22 @@
1
- import { EventEmitter } from "@angular/core";
2
- import { OnInit } from "@angular/core";
3
- import { FormBuilder, FormGroup, ValidationErrors } from "@angular/forms";
4
- import { LoginConstant } from "../../constants/loginConstant";
5
- import * as i0 from "@angular/core";
6
- export declare class PasswordMatchingComponent implements OnInit {
7
- private fb;
8
- passwordChange: EventEmitter<any>;
9
- confirmPasswordChange: EventEmitter<any>;
10
- passwordNotMatching: boolean;
11
- passwordForm: FormGroup;
12
- constants: typeof LoginConstant;
13
- constructor(fb: FormBuilder);
14
- ngOnInit(): void;
15
- formValueChanged(): void;
16
- onPasswordChange(): void;
17
- onConfirmPasswordChange(): void;
18
- createGroup(): FormGroup<any>;
19
- regexValidator(regex: RegExp, error: ValidationErrors): any;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<PasswordMatchingComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<PasswordMatchingComponent, "anna-cognito-lib-password-matching", never, { "passwordNotMatching": "passwordNotMatching"; }, { "passwordChange": "passwordChange"; "confirmPasswordChange": "confirmPasswordChange"; }, never, never, false, never>;
22
- }
1
+ import { EventEmitter } from "@angular/core";
2
+ import { OnInit } from "@angular/core";
3
+ import { FormBuilder, FormGroup, ValidationErrors } from "@angular/forms";
4
+ import { LoginConstant } from "../../constants/loginConstant";
5
+ import * as i0 from "@angular/core";
6
+ export declare class PasswordMatchingComponent implements OnInit {
7
+ private fb;
8
+ passwordChange: EventEmitter<any>;
9
+ confirmPasswordChange: EventEmitter<any>;
10
+ passwordNotMatching: boolean;
11
+ passwordForm: FormGroup;
12
+ constants: typeof LoginConstant;
13
+ constructor(fb: FormBuilder);
14
+ ngOnInit(): void;
15
+ formValueChanged(): void;
16
+ onPasswordChange(): void;
17
+ onConfirmPasswordChange(): void;
18
+ createGroup(): FormGroup<any>;
19
+ regexValidator(regex: RegExp, error: ValidationErrors): any;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordMatchingComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordMatchingComponent, "anna-cognito-lib-password-matching", never, { "passwordNotMatching": { "alias": "passwordNotMatching"; "required": false; }; }, { "passwordChange": "passwordChange"; "confirmPasswordChange": "confirmPasswordChange"; }, never, never, false, never>;
22
+ }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class PoweredByLogoTemplateComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<PoweredByLogoTemplateComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<PoweredByLogoTemplateComponent, "anna-cognito-lib-powered-by-logo-template", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PoweredByLogoTemplateComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoweredByLogoTemplateComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoweredByLogoTemplateComponent, "anna-cognito-lib-powered-by-logo-template", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,28 +1,28 @@
1
- import { OnInit } from "@angular/core";
2
- import { Router } from "@angular/router";
3
- import { AnnaLibAuthService } from "../../services/auth.service";
4
- import { LoginConstant } from "../../constants/loginConstant";
5
- import { IConfigService } from '../../config/config-service.token';
6
- import * as i0 from "@angular/core";
7
- declare type passwordType = {
8
- value: string | null;
9
- status: string | null;
10
- };
11
- export declare class SetNewPasswordComponent implements OnInit {
12
- authService: AnnaLibAuthService;
13
- private router;
14
- consumingProjectConfigService: IConfigService;
15
- passwordNotMatching: boolean;
16
- password: passwordType;
17
- confirmPassword: passwordType;
18
- constants: typeof LoginConstant;
19
- constructor(authService: AnnaLibAuthService, router: Router, consumingProjectConfigService: IConfigService);
20
- ngOnInit(): void;
21
- isFormValid(): boolean;
22
- onPasswordChange($event: passwordType): void;
23
- onConfirmPasswordChange($event: passwordType): void;
24
- onSettingNewPassword(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<SetNewPasswordComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<SetNewPasswordComponent, "anna-cognito-lib-set-new-password", never, {}, {}, never, never, false, never>;
27
- }
28
- export {};
1
+ import { OnInit } from "@angular/core";
2
+ import { Router } from "@angular/router";
3
+ import { AnnaLibAuthService } from "../../services/auth.service";
4
+ import { LoginConstant } from "../../constants/loginConstant";
5
+ import { IConfigService } from '../../config/config-service.token';
6
+ import * as i0 from "@angular/core";
7
+ type passwordType = {
8
+ value: string | null;
9
+ status: string | null;
10
+ };
11
+ export declare class SetNewPasswordComponent implements OnInit {
12
+ authService: AnnaLibAuthService;
13
+ private router;
14
+ consumingProjectConfigService: IConfigService;
15
+ passwordNotMatching: boolean;
16
+ password: passwordType;
17
+ confirmPassword: passwordType;
18
+ constants: typeof LoginConstant;
19
+ constructor(authService: AnnaLibAuthService, router: Router, consumingProjectConfigService: IConfigService);
20
+ ngOnInit(): void;
21
+ isFormValid(): boolean;
22
+ onPasswordChange($event: passwordType): void;
23
+ onConfirmPasswordChange($event: passwordType): void;
24
+ onSettingNewPassword(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SetNewPasswordComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<SetNewPasswordComponent, "anna-cognito-lib-set-new-password", never, {}, {}, never, never, false, never>;
27
+ }
28
+ export {};
@@ -1,14 +1,14 @@
1
- import { IConfigService } from '../../config/config-service.token';
2
- import { LoginConstant } from '../../constants/loginConstant';
3
- import { AnnaLibAuthService } from '../../services/auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class SsoLoginComponent {
6
- authService: AnnaLibAuthService;
7
- consumingProjectConfigService: IConfigService;
8
- constants: typeof LoginConstant;
9
- constructor(authService: AnnaLibAuthService, consumingProjectConfigService: IConfigService);
10
- ngOnInit(): void;
11
- signInWithSSO(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SsoLoginComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SsoLoginComponent, "anna-cognito-lib-sso-login", never, {}, {}, never, never, false, never>;
14
- }
1
+ import { IConfigService } from '../../config/config-service.token';
2
+ import { LoginConstant } from '../../constants/loginConstant';
3
+ import { AnnaLibAuthService } from '../../services/auth.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SsoLoginComponent {
6
+ authService: AnnaLibAuthService;
7
+ consumingProjectConfigService: IConfigService;
8
+ constants: typeof LoginConstant;
9
+ constructor(authService: AnnaLibAuthService, consumingProjectConfigService: IConfigService);
10
+ ngOnInit(): void;
11
+ signInWithSSO(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SsoLoginComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SsoLoginComponent, "anna-cognito-lib-sso-login", never, {}, {}, never, never, false, never>;
14
+ }
@@ -1,9 +1,9 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SurewavesYearLogoComponent implements OnInit {
4
- currentYear: number;
5
- constructor();
6
- ngOnInit(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SurewavesYearLogoComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<SurewavesYearLogoComponent, "anna-cognito-lib-surewaves-year-logo", never, {}, {}, never, never, false, never>;
9
- }
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SurewavesYearLogoComponent implements OnInit {
4
+ currentYear: number;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SurewavesYearLogoComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SurewavesYearLogoComponent, "anna-cognito-lib-surewaves-year-logo", never, {}, {}, never, never, false, never>;
9
+ }
@@ -1,32 +1,32 @@
1
- import { OnInit } from "@angular/core";
2
- import { FormBuilder, FormGroup } from "@angular/forms";
3
- import { Router } from "@angular/router";
4
- import { LoginConstant } from "../../constants/loginConstant";
5
- import { AnnaLibAuthService } from '../../services/auth.service';
6
- import { IConfigService } from '../../config/config-service.token';
7
- import * as i0 from "@angular/core";
8
- declare type passwordType = {
9
- value: string | null;
10
- status: string | null;
11
- };
12
- export declare class VerifyAndSetNewPasswordComponent implements OnInit {
13
- authService: AnnaLibAuthService;
14
- private fb;
15
- private router;
16
- consumingProjectConfigService: IConfigService;
17
- verifyOtpForm: FormGroup;
18
- passwordNotMatching: boolean;
19
- constants: typeof LoginConstant;
20
- password: passwordType;
21
- confirmPassword: passwordType;
22
- constructor(authService: AnnaLibAuthService, fb: FormBuilder, router: Router, consumingProjectConfigService: IConfigService);
23
- ngOnInit(): void;
24
- onIntialiseForm(): void;
25
- isFormValid(): boolean;
26
- onPasswordChange($event: passwordType): void;
27
- onConfirmPasswordChange($event: passwordType): void;
28
- onVerifyOtpSettingNewPassword(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<VerifyAndSetNewPasswordComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<VerifyAndSetNewPasswordComponent, "anna-cognito-lib-verify-and-set-new-password", never, {}, {}, never, never, false, never>;
31
- }
32
- export {};
1
+ import { OnInit } from "@angular/core";
2
+ import { FormBuilder, FormGroup } from "@angular/forms";
3
+ import { Router } from "@angular/router";
4
+ import { LoginConstant } from "../../constants/loginConstant";
5
+ import { AnnaLibAuthService } from '../../services/auth.service';
6
+ import { IConfigService } from '../../config/config-service.token';
7
+ import * as i0 from "@angular/core";
8
+ type passwordType = {
9
+ value: string | null;
10
+ status: string | null;
11
+ };
12
+ export declare class VerifyAndSetNewPasswordComponent implements OnInit {
13
+ authService: AnnaLibAuthService;
14
+ private fb;
15
+ private router;
16
+ consumingProjectConfigService: IConfigService;
17
+ verifyOtpForm: FormGroup;
18
+ passwordNotMatching: boolean;
19
+ constants: typeof LoginConstant;
20
+ password: passwordType;
21
+ confirmPassword: passwordType;
22
+ constructor(authService: AnnaLibAuthService, fb: FormBuilder, router: Router, consumingProjectConfigService: IConfigService);
23
+ ngOnInit(): void;
24
+ onIntialiseForm(): void;
25
+ isFormValid(): boolean;
26
+ onPasswordChange($event: passwordType): void;
27
+ onConfirmPasswordChange($event: passwordType): void;
28
+ onVerifyOtpSettingNewPassword(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerifyAndSetNewPasswordComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerifyAndSetNewPasswordComponent, "anna-cognito-lib-verify-and-set-new-password", never, {}, {}, never, never, false, never>;
31
+ }
32
+ export {};
@@ -1,10 +1,10 @@
1
- import { OnInit } from '@angular/core';
2
- import { IConfigService } from '../../config/config-service.token';
3
- import * as i0 from "@angular/core";
4
- export declare class VersionAndTermPolicyComponent implements OnInit {
5
- consumingProjectConfigService: IConfigService;
6
- constructor(consumingProjectConfigService: IConfigService);
7
- ngOnInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<VersionAndTermPolicyComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<VersionAndTermPolicyComponent, "anna-cognito-lib-version-and-term-policy", never, {}, {}, never, never, false, never>;
10
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { IConfigService } from '../../config/config-service.token';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VersionAndTermPolicyComponent implements OnInit {
5
+ consumingProjectConfigService: IConfigService;
6
+ constructor(consumingProjectConfigService: IConfigService);
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<VersionAndTermPolicyComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<VersionAndTermPolicyComponent, "anna-cognito-lib-version-and-term-policy", never, {}, {}, never, never, false, never>;
10
+ }
@@ -1,36 +1,36 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Token to inject the acl service */
3
- export declare const ACL_SERVICE_TOKEN: InjectionToken<IAclService>;
4
- export interface IAclService {
5
- urlToCognitoPrivilegeMap: {
6
- [key: string]: string;
7
- };
8
- MANAGE_USERS_WRITE: string;
9
- ORDER_BIZ_RULES_WRITE: string;
10
- ORDER_REVISIONS_WRITE: string;
11
- ORDER_SPOTS_REPORT_WRITE: string;
12
- POLITICAL_WINDOW_WRITE: string;
13
- DASHBOARD_DAILY_REVISIONS_READ: string;
14
- ENTER_EDIT_TARGET_LUR_WRITE: string;
15
- ENTER_EDIT_TARGET_CSR_WRITE: string;
16
- MANAGE_ROLES_WRITE: string;
17
- ACTIVE_STATION_USER_READ: string;
18
- USER_AWAITING_ACTIVATION_WRITE: string;
19
- DAILY_REVISION_ONGOING_AND_DAILY_COMPLETED_READ: string;
20
- USER_MANAGEMENT_READ: string;
21
- USER_MANAGEMENT_WRITE: string;
22
- STATION_BUSINESS_RULE_WRITE: string;
23
- ADVERTISER_BUSINESS_RULE_WRITE: string;
24
- EC_LISTING_READ: string;
25
- EC_LISTING_WRITE: string;
26
- ORDER_DISCREPANCIES: string;
27
- REVISION_CYCLE_SETTINGS_READ: string;
28
- REVISION_CYCLE_SETTINGS_WRITE: string;
29
- ROLLING_AVERAGES_READ: string;
30
- ROLLING_AVERAGES_WRITE: string;
31
- WRITE_ENABLED_ORDERS_READ: string;
32
- WRITE_ENABLED_ORDERS_WRITE: string;
33
- STATION_POLITICAL_RATE_CARD_READ: string;
34
- STATION_POLITICAL_RATE_CARD_WRITE: string;
35
- AUDIENCE_ESTIMATES_READ: string;
36
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ /** Token to inject the acl service */
3
+ export declare const ACL_SERVICE_TOKEN: InjectionToken<IAclService>;
4
+ export interface IAclService {
5
+ urlToCognitoPrivilegeMap: {
6
+ [key: string]: string;
7
+ };
8
+ MANAGE_USERS_WRITE: string;
9
+ ORDER_BIZ_RULES_WRITE: string;
10
+ ORDER_REVISIONS_WRITE: string;
11
+ ORDER_SPOTS_REPORT_WRITE: string;
12
+ POLITICAL_WINDOW_WRITE: string;
13
+ DASHBOARD_DAILY_REVISIONS_READ: string;
14
+ ENTER_EDIT_TARGET_LUR_WRITE: string;
15
+ ENTER_EDIT_TARGET_CSR_WRITE: string;
16
+ MANAGE_ROLES_WRITE: string;
17
+ ACTIVE_STATION_USER_READ: string;
18
+ USER_AWAITING_ACTIVATION_WRITE: string;
19
+ DAILY_REVISION_ONGOING_AND_DAILY_COMPLETED_READ: string;
20
+ USER_MANAGEMENT_READ: string;
21
+ USER_MANAGEMENT_WRITE: string;
22
+ STATION_BUSINESS_RULE_WRITE: string;
23
+ ADVERTISER_BUSINESS_RULE_WRITE: string;
24
+ EC_LISTING_READ: string;
25
+ EC_LISTING_WRITE: string;
26
+ ORDER_DISCREPANCIES: string;
27
+ REVISION_CYCLE_SETTINGS_READ: string;
28
+ REVISION_CYCLE_SETTINGS_WRITE: string;
29
+ ROLLING_AVERAGES_READ: string;
30
+ ROLLING_AVERAGES_WRITE: string;
31
+ WRITE_ENABLED_ORDERS_READ: string;
32
+ WRITE_ENABLED_ORDERS_WRITE: string;
33
+ STATION_POLITICAL_RATE_CARD_READ: string;
34
+ STATION_POLITICAL_RATE_CARD_WRITE: string;
35
+ AUDIENCE_ESTIMATES_READ: string;
36
+ }
@@ -1,23 +1,23 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AuthTokens } from 'aws-amplify/auth';
3
- import { Observable } from 'rxjs';
4
- /** Token to inject the auth service */
5
- export declare const AUTH_SERVICE_TOKEN: InjectionToken<IAuthService>;
6
- export interface IAuthService {
7
- isLoggingIn: boolean;
8
- userName: any;
9
- accessToken: string;
10
- IdToken: any;
11
- defaultLoginPageUrl: "co-pilot-login" | "login";
12
- onSuccessfulAuthenticatingUser(loggedInViaSso: boolean): void;
13
- getAllCognitoTokenAndGroups(tokens: AuthTokens): void;
14
- isUsernameAvailable(username: string): Observable<any>;
15
- isEmailAvailable(emailId: string, ogId: number): Observable<any>;
16
- getUserState(username: string): Observable<any>;
17
- navigateBasedOnUserRole(loginUserData: any): void;
18
- getPublicIp(): string;
19
- sendRegenerationEmail(userCode: string): void;
20
- onPasswordUpdate(userName: string): void;
21
- newPasswordSetThenUpdateToBackend(userCode: string): void;
22
- signInWithSSO(): void;
23
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ import { AuthTokens } from 'aws-amplify/auth';
3
+ import { Observable } from 'rxjs';
4
+ /** Token to inject the auth service */
5
+ export declare const AUTH_SERVICE_TOKEN: InjectionToken<IAuthService>;
6
+ export interface IAuthService {
7
+ isLoggingIn: boolean;
8
+ userName: any;
9
+ accessToken: string;
10
+ IdToken: any;
11
+ defaultLoginPageUrl: "co-pilot-login" | "login";
12
+ onSuccessfulAuthenticatingUser(loggedInViaSso: boolean): void;
13
+ getAllCognitoTokenAndGroups(tokens: AuthTokens): void;
14
+ isUsernameAvailable(username: string): Observable<any>;
15
+ isEmailAvailable(emailId: string, ogId: number): Observable<any>;
16
+ getUserState(username: string): Observable<any>;
17
+ navigateBasedOnUserRole(loginUserData: any): void;
18
+ getPublicIp(): string;
19
+ sendRegenerationEmail(userCode: string): void;
20
+ onPasswordUpdate(userName: string): void;
21
+ newPasswordSetThenUpdateToBackend(userCode: string): void;
22
+ signInWithSSO(): void;
23
+ }
@@ -1,13 +1,13 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Token to inject the auth service */
3
- export declare const CONFIG_SERVICE_TOKEN: InjectionToken<IConfigService>;
4
- export interface IConfigService {
5
- appGenericConfig: {
6
- loginPageLogoImgUrl: string;
7
- cognito: {
8
- userPoolId: string;
9
- clientId: string;
10
- };
11
- currentAnnaVersion: string;
12
- };
13
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ /** Token to inject the auth service */
3
+ export declare const CONFIG_SERVICE_TOKEN: InjectionToken<IConfigService>;
4
+ export interface IConfigService {
5
+ appGenericConfig: {
6
+ loginPageLogoImgUrl: string;
7
+ cognito: {
8
+ userPoolId: string;
9
+ clientId: string;
10
+ };
11
+ currentAnnaVersion: string;
12
+ };
13
+ }