@annalib/anna-cognito-lib 2.3.11 → 2.3.12
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 → esm2020}/annalib-anna-cognito-lib.mjs +4 -4
- package/{esm2022 → esm2020}/lib/components/anna-login/anna-login.component.mjs +67 -67
- package/{esm2022 → esm2020}/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +22 -22
- package/{esm2022 → esm2020}/lib/components/forgot-password/forgot-password.component.mjs +133 -133
- package/{esm2022 → esm2020}/lib/components/password-matching/password-matching.component.mjs +92 -92
- package/{esm2022 → esm2020}/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +14 -14
- package/{esm2022 → esm2020}/lib/components/set-new-password/set-new-password.component.mjs +71 -71
- package/{esm2022 → esm2020}/lib/components/sso-login/sso-login.component.mjs +38 -38
- package/{esm2022 → esm2020}/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +15 -15
- package/{esm2022 → esm2020}/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +90 -90
- package/{esm2022 → esm2020}/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +19 -19
- package/{esm2022 → esm2020}/lib/config/acl-service.token.mjs +3 -3
- package/{esm2022 → esm2020}/lib/config/auth-service.token.mjs +3 -3
- package/{esm2022 → esm2020}/lib/config/config-service.token.mjs +3 -3
- package/{esm2022 → esm2020}/lib/config/sso-login-service.token.mjs +3 -3
- package/esm2020/lib/constants/loginConstant.mjs +55 -0
- package/{esm2022 → esm2020}/lib/directives/spinner-button/index.mjs +1 -1
- package/{esm2022 → esm2020}/lib/directives/spinner-button/spinner-button.directive.mjs +43 -43
- package/{esm2022 → esm2020}/lib/models/auth.model.mjs +23 -23
- package/{esm2022 → esm2020}/lib/services/acl.service.mjs +27 -27
- package/{esm2022 → esm2020}/lib/services/auth.service.mjs +312 -312
- package/{esm2022 → esm2020}/lib/services/config.service.mjs +20 -20
- package/{esm2022 → esm2020}/lib/services/sso-login.service.mjs +20 -20
- package/{esm2022 → esm2020}/public-api.mjs +27 -27
- package/fesm2015/annalib-anna-cognito-lib.mjs +1011 -0
- package/fesm2015/annalib-anna-cognito-lib.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/annalib-anna-cognito-lib.mjs +905 -905
- package/{fesm2022 → fesm2020}/annalib-anna-cognito-lib.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/components/anna-login/anna-login.component.d.ts +20 -20
- package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +10 -10
- package/lib/components/forgot-password/forgot-password.component.d.ts +42 -42
- package/lib/components/password-matching/password-matching.component.d.ts +22 -22
- package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +8 -8
- package/lib/components/set-new-password/set-new-password.component.d.ts +28 -28
- package/lib/components/sso-login/sso-login.component.d.ts +14 -14
- package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +9 -9
- package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +32 -32
- package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +10 -10
- package/lib/config/acl-service.token.d.ts +38 -38
- package/lib/config/auth-service.token.d.ts +23 -23
- package/lib/config/config-service.token.d.ts +13 -13
- package/lib/config/sso-login-service.token.d.ts +10 -10
- package/lib/constants/loginConstant.d.ts +49 -49
- package/lib/directives/spinner-button/index.d.ts +1 -1
- package/lib/directives/spinner-button/spinner-button.directive.d.ts +15 -15
- package/lib/models/auth.model.d.ts +21 -21
- package/lib/services/acl.service.d.ts +11 -11
- package/lib/services/auth.service.d.ts +47 -47
- package/lib/services/config.service.d.ts +8 -8
- package/lib/services/sso-login.service.d.ts +8 -8
- package/package.json +11 -5
- package/public-api.d.ts +20 -20
- package/esm2022/lib/constants/loginConstant.mjs +0 -55
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,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, true, 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, true, 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, true, 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, true, 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
|
-
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, true, 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
|
+
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, true, 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":
|
|
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, true, 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, true, 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, true, 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
|
-
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, true, 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
|
+
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, true, 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, true, 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, true, 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, true, 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, true, never>;
|
|
9
|
+
}
|
package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts
CHANGED
|
@@ -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
|
-
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, true, 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
|
+
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, true, 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, true, 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, true, never>;
|
|
10
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
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
|
-
EQUIVALIZED_RATES_READ: string;
|
|
32
|
-
EQUIVALIZED_RATES_WRITE: string;
|
|
33
|
-
WRITE_ENABLED_ORDERS_READ: string;
|
|
34
|
-
WRITE_ENABLED_ORDERS_WRITE: string;
|
|
35
|
-
STATION_POLITICAL_RATE_CARD_READ: string;
|
|
36
|
-
STATION_POLITICAL_RATE_CARD_WRITE: string;
|
|
37
|
-
AUDIENCE_ESTIMATES_READ: string;
|
|
38
|
-
}
|
|
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
|
+
EQUIVALIZED_RATES_READ: string;
|
|
32
|
+
EQUIVALIZED_RATES_WRITE: string;
|
|
33
|
+
WRITE_ENABLED_ORDERS_READ: string;
|
|
34
|
+
WRITE_ENABLED_ORDERS_WRITE: string;
|
|
35
|
+
STATION_POLITICAL_RATE_CARD_READ: string;
|
|
36
|
+
STATION_POLITICAL_RATE_CARD_WRITE: string;
|
|
37
|
+
AUDIENCE_ESTIMATES_READ: string;
|
|
38
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/** Token to inject the auth service */
|
|
3
|
-
export declare const SSO_LOGIN_SERVICE_TOKEN: InjectionToken<ISSOLoginService>;
|
|
4
|
-
export interface ISSOLoginService {
|
|
5
|
-
defaultLoginPageUrl: 'co-pilot-login' | 'login';
|
|
6
|
-
isSsoIntegrated: boolean;
|
|
7
|
-
loggedInViaSso: boolean;
|
|
8
|
-
isUserInvitedAndCanAccessANNA: boolean;
|
|
9
|
-
userNameText: string;
|
|
10
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
/** Token to inject the auth service */
|
|
3
|
+
export declare const SSO_LOGIN_SERVICE_TOKEN: InjectionToken<ISSOLoginService>;
|
|
4
|
+
export interface ISSOLoginService {
|
|
5
|
+
defaultLoginPageUrl: 'co-pilot-login' | 'login';
|
|
6
|
+
isSsoIntegrated: boolean;
|
|
7
|
+
loggedInViaSso: boolean;
|
|
8
|
+
isUserInvitedAndCanAccessANNA: boolean;
|
|
9
|
+
userNameText: string;
|
|
10
|
+
}
|