@annalib/anna-cognito-lib 2.3.12 → 2.3.13

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 (55) hide show
  1. package/{esm2020 → esm2022}/annalib-anna-cognito-lib.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/components/anna-login/anna-login.component.mjs +67 -67
  3. package/{esm2020 → esm2022}/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +22 -22
  4. package/{esm2020 → esm2022}/lib/components/forgot-password/forgot-password.component.mjs +133 -133
  5. package/{esm2020 → esm2022}/lib/components/password-matching/password-matching.component.mjs +92 -92
  6. package/{esm2020 → esm2022}/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +14 -14
  7. package/{esm2020 → esm2022}/lib/components/set-new-password/set-new-password.component.mjs +71 -71
  8. package/{esm2020 → esm2022}/lib/components/sso-login/sso-login.component.mjs +38 -38
  9. package/{esm2020 → esm2022}/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +15 -15
  10. package/{esm2020 → esm2022}/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +90 -90
  11. package/{esm2020 → esm2022}/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +19 -19
  12. package/{esm2020 → esm2022}/lib/config/acl-service.token.mjs +4 -4
  13. package/{esm2020 → esm2022}/lib/config/auth-service.token.mjs +3 -3
  14. package/{esm2020 → esm2022}/lib/config/config-service.token.mjs +3 -3
  15. package/{esm2020 → esm2022}/lib/config/sso-login-service.token.mjs +3 -3
  16. package/esm2022/lib/constants/loginConstant.mjs +55 -0
  17. package/{esm2020 → esm2022}/lib/directives/spinner-button/index.mjs +1 -1
  18. package/{esm2020 → esm2022}/lib/directives/spinner-button/spinner-button.directive.mjs +43 -43
  19. package/{esm2020 → esm2022}/lib/models/auth.model.mjs +23 -23
  20. package/{esm2020 → esm2022}/lib/services/acl.service.mjs +27 -27
  21. package/{esm2020 → esm2022}/lib/services/auth.service.mjs +312 -312
  22. package/{esm2020 → esm2022}/lib/services/config.service.mjs +20 -20
  23. package/{esm2020 → esm2022}/lib/services/sso-login.service.mjs +20 -20
  24. package/{esm2020 → esm2022}/public-api.mjs +27 -27
  25. package/{fesm2020 → fesm2022}/annalib-anna-cognito-lib.mjs +905 -905
  26. package/fesm2022/annalib-anna-cognito-lib.mjs.map +1 -0
  27. package/index.d.ts +5 -5
  28. package/lib/components/anna-login/anna-login.component.d.ts +20 -20
  29. package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +10 -10
  30. package/lib/components/forgot-password/forgot-password.component.d.ts +42 -42
  31. package/lib/components/password-matching/password-matching.component.d.ts +22 -22
  32. package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +8 -8
  33. package/lib/components/set-new-password/set-new-password.component.d.ts +28 -28
  34. package/lib/components/sso-login/sso-login.component.d.ts +14 -14
  35. package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +9 -9
  36. package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +32 -32
  37. package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +10 -10
  38. package/lib/config/acl-service.token.d.ts +38 -38
  39. package/lib/config/auth-service.token.d.ts +23 -23
  40. package/lib/config/config-service.token.d.ts +13 -13
  41. package/lib/config/sso-login-service.token.d.ts +10 -10
  42. package/lib/constants/loginConstant.d.ts +49 -49
  43. package/lib/directives/spinner-button/index.d.ts +1 -1
  44. package/lib/directives/spinner-button/spinner-button.directive.d.ts +15 -15
  45. package/lib/models/auth.model.d.ts +21 -21
  46. package/lib/services/acl.service.d.ts +11 -11
  47. package/lib/services/auth.service.d.ts +47 -47
  48. package/lib/services/config.service.d.ts +8 -8
  49. package/lib/services/sso-login.service.d.ts +8 -8
  50. package/package.json +5 -11
  51. package/public-api.d.ts +20 -20
  52. package/esm2020/lib/constants/loginConstant.mjs +0 -55
  53. package/fesm2015/annalib-anna-cognito-lib.mjs +0 -1011
  54. package/fesm2015/annalib-anna-cognito-lib.mjs.map +0 -1
  55. package/fesm2020/annalib-anna-cognito-lib.mjs.map +0 -1
@@ -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, 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
+ 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
+ }
@@ -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, 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
+ 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
+ AUDIENCE_ESTIMATES_CONFIG_READ: string;
30
+ RATE_CONFIG_WRITE: string;
31
+ RATE_CONFIG_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
+ }
@@ -1,49 +1,49 @@
1
- export declare class LoginConstant {
2
- static readonly enterEmail = "Enter your username";
3
- static readonly enterUserCode = "Enter your usercode";
4
- static readonly password = "Password";
5
- static readonly confirmPassword = "Confirm Password";
6
- static readonly login = "Login";
7
- static readonly otp = "OTP";
8
- static readonly forgotPassword: string;
9
- static readonly setNewPasswordHeading: string;
10
- static readonly setNewPasswordButton: string;
11
- static readonly passwordMustContain = "The password must contain:";
12
- static readonly minimumCharacter = "Minimum 8 characters";
13
- static readonly oneUppercase = "1 Uppercase";
14
- static readonly oneLowercase = "1 Lowercase";
15
- static readonly oneNumber = "1 Numerical";
16
- static readonly specialCharacter = "1 Special character";
17
- static readonly passwordNotMatching = "The passwords do not match. Please try again.";
18
- static readonly userNamePasswordIncorrect = "Incorrect username or password";
19
- static readonly userCodePasswordIncorrect = "Incorrect usercode or password";
20
- static readonly userNotFound = "No registered user found";
21
- static readonly loginAgain: string;
22
- static readonly firstTimeLoginUserTempPasswordMsg = "You are logging in for the first time. Kindly use the temporary password provided in the welcome email, to login to your account. ";
23
- static readonly tempPasswordExpiryError = "Temporary password has expired and must be reset by an administrator.";
24
- static readonly tempPasswordOnExpiryErrorMsg = "Password has expired. A new password has been sent to your registered email. Kindly login again with new link and credentials.";
25
- static readonly verifyAndSetNewPasswordheading: string;
26
- static readonly verifyAndSetNewPasswordMessage: string;
27
- static readonly pleaseEnterItBelow = ". Please enter it below.";
28
- static readonly regenerateOtp: string;
29
- static readonly enterOtp: string;
30
- static readonly submit = "Submit";
31
- static readonly attempt = "Attempt";
32
- static readonly attemptLimitExceeded = "You have exceeded the maximum number of allowed attempts. Please try again after 15 minutes.";
33
- static readonly attemptMessage = " of 5. The OTP entered is incorrect. Please try again with the right one.";
34
- static readonly sessionExpired = "The session has expired. Please try again.";
35
- static readonly sessionExpiredError = "Your session has expired. Please login again";
36
- static readonly forgotPasswordHeading = "Forgot your password?";
37
- static readonly PleaseEnterYourUsernameMessage = "Please enter your username.";
38
- static readonly PleaseEnterYourUsercodeMessage = "Please enter your usercode.";
39
- static readonly forgotPasswordButton: string;
40
- static readonly apiFailErrorMessage = "Unable to connect to server right now. Please try after some time.";
41
- static readonly setNewPasswordUrl = "/set-new-password";
42
- static readonly forgortPasswordPageUrl = "/forgot-password";
43
- static readonly verifyAndSetNewPasswordUrl = "/verify-and-set-new-password";
44
- static readonly loginPageUrl = "/login";
45
- static readonly coPilotloginPageUrl = "/co-pilot-login";
46
- static readonly welcomeScrreenUrl = "/welcome-screen";
47
- static readonly homePageUrl = "/dashboard";
48
- static readonly stationSettingUrl = "/station-settings";
49
- }
1
+ export declare class LoginConstant {
2
+ static readonly enterEmail = "Enter your username";
3
+ static readonly enterUserCode = "Enter your usercode";
4
+ static readonly password = "Password";
5
+ static readonly confirmPassword = "Confirm Password";
6
+ static readonly login = "Login";
7
+ static readonly otp = "OTP";
8
+ static readonly forgotPassword: string;
9
+ static readonly setNewPasswordHeading: string;
10
+ static readonly setNewPasswordButton: string;
11
+ static readonly passwordMustContain = "The password must contain:";
12
+ static readonly minimumCharacter = "Minimum 8 characters";
13
+ static readonly oneUppercase = "1 Uppercase";
14
+ static readonly oneLowercase = "1 Lowercase";
15
+ static readonly oneNumber = "1 Numerical";
16
+ static readonly specialCharacter = "1 Special character";
17
+ static readonly passwordNotMatching = "The passwords do not match. Please try again.";
18
+ static readonly userNamePasswordIncorrect = "Incorrect username or password";
19
+ static readonly userCodePasswordIncorrect = "Incorrect usercode or password";
20
+ static readonly userNotFound = "No registered user found";
21
+ static readonly loginAgain: string;
22
+ static readonly firstTimeLoginUserTempPasswordMsg = "You are logging in for the first time. Kindly use the temporary password provided in the welcome email, to login to your account. ";
23
+ static readonly tempPasswordExpiryError = "Temporary password has expired and must be reset by an administrator.";
24
+ static readonly tempPasswordOnExpiryErrorMsg = "Password has expired. A new password has been sent to your registered email. Kindly login again with new link and credentials.";
25
+ static readonly verifyAndSetNewPasswordheading: string;
26
+ static readonly verifyAndSetNewPasswordMessage: string;
27
+ static readonly pleaseEnterItBelow = ". Please enter it below.";
28
+ static readonly regenerateOtp: string;
29
+ static readonly enterOtp: string;
30
+ static readonly submit = "Submit";
31
+ static readonly attempt = "Attempt";
32
+ static readonly attemptLimitExceeded = "You have exceeded the maximum number of allowed attempts. Please try again after 15 minutes.";
33
+ static readonly attemptMessage = " of 5. The OTP entered is incorrect. Please try again with the right one.";
34
+ static readonly sessionExpired = "The session has expired. Please try again.";
35
+ static readonly sessionExpiredError = "Your session has expired. Please login again";
36
+ static readonly forgotPasswordHeading = "Forgot your password?";
37
+ static readonly PleaseEnterYourUsernameMessage = "Please enter your username.";
38
+ static readonly PleaseEnterYourUsercodeMessage = "Please enter your usercode.";
39
+ static readonly forgotPasswordButton: string;
40
+ static readonly apiFailErrorMessage = "Unable to connect to server right now. Please try after some time.";
41
+ static readonly setNewPasswordUrl = "/set-new-password";
42
+ static readonly forgortPasswordPageUrl = "/forgot-password";
43
+ static readonly verifyAndSetNewPasswordUrl = "/verify-and-set-new-password";
44
+ static readonly loginPageUrl = "/login";
45
+ static readonly coPilotloginPageUrl = "/co-pilot-login";
46
+ static readonly welcomeScrreenUrl = "/welcome-screen";
47
+ static readonly homePageUrl = "/dashboard";
48
+ static readonly stationSettingUrl = "/station-settings";
49
+ }
@@ -1 +1 @@
1
- export * from './spinner-button.directive';
1
+ export * from './spinner-button.directive';
@@ -1,15 +1,15 @@
1
- import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SpinnerButtonDirective implements OnInit, OnChanges {
4
- private el;
5
- private renderer;
6
- loading: boolean;
7
- spinnerButtonText: string;
8
- child: HTMLDivElement;
9
- button: any;
10
- constructor(el: ElementRef, renderer: Renderer2);
11
- ngOnInit(): void;
12
- ngOnChanges(changes: SimpleChanges): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerButtonDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<SpinnerButtonDirective, "[anna-cognito-lib-SpinnerButton]", never, { "loading": "anna-cognito-lib-SpinnerButton"; "spinnerButtonText": "spinnerButtonText"; }, {}, never, never, true, never>;
15
- }
1
+ import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SpinnerButtonDirective implements OnInit, OnChanges {
4
+ private el;
5
+ private renderer;
6
+ loading: boolean;
7
+ spinnerButtonText: string;
8
+ child: HTMLDivElement;
9
+ button: any;
10
+ constructor(el: ElementRef, renderer: Renderer2);
11
+ ngOnInit(): void;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerButtonDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpinnerButtonDirective, "[anna-cognito-lib-SpinnerButton]", never, { "loading": { "alias": "anna-cognito-lib-SpinnerButton"; "required": false; }; "spinnerButtonText": { "alias": "spinnerButtonText"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
@@ -1,21 +1,21 @@
1
- export declare class AuthenticationData {
2
- Username: string;
3
- Password: string;
4
- constructor(Username: string, Password: string);
5
- }
6
- export declare class UserPoolInformation {
7
- UserPoolId: string;
8
- ClientId: string;
9
- constructor(UserPoolId: string, ClientId: string);
10
- }
11
- export declare class UsernameInfo {
12
- isUsernameAvailable: boolean;
13
- constructor(object: {
14
- isUsernameAvailable: boolean;
15
- });
16
- }
17
- export declare class UserState {
18
- userStatus: string;
19
- isUserWithTempPassword: boolean;
20
- constructor(userState: string);
21
- }
1
+ export declare class AuthenticationData {
2
+ Username: string;
3
+ Password: string;
4
+ constructor(Username: string, Password: string);
5
+ }
6
+ export declare class UserPoolInformation {
7
+ UserPoolId: string;
8
+ ClientId: string;
9
+ constructor(UserPoolId: string, ClientId: string);
10
+ }
11
+ export declare class UsernameInfo {
12
+ isUsernameAvailable: boolean;
13
+ constructor(object: {
14
+ isUsernameAvailable: boolean;
15
+ });
16
+ }
17
+ export declare class UserState {
18
+ userStatus: string;
19
+ isUserWithTempPassword: boolean;
20
+ constructor(userState: string);
21
+ }
@@ -1,11 +1,11 @@
1
- import { IAclService } from '../config/acl-service.token';
2
- import * as i0 from "@angular/core";
3
- export declare class AnnaLibAclService {
4
- consumingProjectAclService: IAclService;
5
- constructor(consumingProjectAclService: IAclService);
6
- userGroupsInCognitoJWT: string[];
7
- isUserAuthorisedToAccessPage(url: string): boolean;
8
- isUserAuthorisedToAccessElement(privilege: string): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnaLibAclService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<AnnaLibAclService>;
11
- }
1
+ import { IAclService } from '../config/acl-service.token';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AnnaLibAclService {
4
+ consumingProjectAclService: IAclService;
5
+ constructor(consumingProjectAclService: IAclService);
6
+ userGroupsInCognitoJWT: string[];
7
+ isUserAuthorisedToAccessPage(url: string): boolean;
8
+ isUserAuthorisedToAccessElement(privilege: string): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaLibAclService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaLibAclService>;
11
+ }