@annalib/anna-cognito-lib 2.3.16 → 2.3.18
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/lib/components/anna-login/anna-login.component.mjs +16 -16
- package/esm2022/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +7 -7
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +19 -19
- package/esm2022/lib/components/password-matching/password-matching.component.mjs +17 -17
- package/esm2022/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +4 -4
- package/esm2022/lib/components/set-new-password/set-new-password.component.mjs +14 -14
- package/esm2022/lib/components/sso-login/sso-login.component.mjs +10 -10
- package/esm2022/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +3 -3
- package/esm2022/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +18 -18
- package/esm2022/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +4 -4
- package/esm2022/lib/config/acl-service.token.mjs +3 -3
- package/esm2022/lib/config/auth-service.token.mjs +3 -3
- package/esm2022/lib/config/config-service.token.mjs +3 -3
- package/esm2022/lib/config/sso-login-service.token.mjs +3 -3
- package/esm2022/lib/constants/loginConstant.mjs +48 -48
- package/esm2022/lib/directives/spinner-button/index.mjs +2 -2
- package/esm2022/lib/directives/spinner-button/spinner-button.directive.mjs +13 -13
- package/esm2022/lib/models/auth.model.mjs +2 -2
- package/esm2022/lib/services/acl.service.mjs +5 -5
- package/esm2022/lib/services/auth.service.mjs +29 -29
- package/esm2022/lib/services/config.service.mjs +5 -5
- package/esm2022/lib/services/sso-login.service.mjs +5 -5
- package/esm2022/public-api.mjs +21 -21
- package/fesm2022/annalib-anna-cognito-lib.mjs +115 -115
- package/fesm2022/annalib-anna-cognito-lib.mjs.map +1 -1
- package/lib/components/anna-login/anna-login.component.d.ts +5 -5
- package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +2 -2
- package/lib/components/forgot-password/forgot-password.component.d.ts +9 -9
- package/lib/components/password-matching/password-matching.component.d.ts +4 -4
- package/lib/components/powered-by-logo-template/powered-by-logo-template.component.d.ts +1 -1
- package/lib/components/set-new-password/set-new-password.component.d.ts +5 -5
- package/lib/components/sso-login/sso-login.component.d.ts +3 -3
- package/lib/components/surewaves-year-logo/surewaves-year-logo.component.d.ts +1 -1
- package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +6 -6
- package/lib/components/version-and-term-policy/version-and-term-policy.component.d.ts +2 -2
- package/lib/config/acl-service.token.d.ts +5 -5
- package/lib/config/auth-service.token.d.ts +4 -4
- package/lib/config/config-service.token.d.ts +1 -1
- package/lib/config/sso-login-service.token.d.ts +2 -2
- package/lib/directives/spinner-button/index.d.ts +1 -1
- package/lib/directives/spinner-button/spinner-button.directive.d.ts +1 -1
- package/lib/services/acl.service.d.ts +1 -1
- package/lib/services/auth.service.d.ts +7 -7
- package/lib/services/config.service.d.ts +1 -1
- package/lib/services/sso-login.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +20 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormBuilder, FormGroup } from
|
|
2
|
-
import { LoginConstant } from
|
|
3
|
-
import { AnnaLibAuthService } from
|
|
4
|
-
import { IConfigService } from
|
|
5
|
-
import { ISSOLoginService } from
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AnnaLoginComponent {
|
|
8
8
|
authService: AnnaLibAuthService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { ISSOLoginService } from
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { ISSOLoginService } from "../../config/sso-login-service.token";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
|
|
5
5
|
consumingProjectSSOLoginService: ISSOLoginService;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { FormBuilder, FormGroup } from
|
|
3
|
-
import { ToastrService } from
|
|
4
|
-
import { AnnaLibAuthService } from
|
|
5
|
-
import { LoginConstant } from
|
|
6
|
-
import { Router } from
|
|
7
|
-
import { IConfigService } from
|
|
8
|
-
import { IAuthService } from
|
|
9
|
-
import { ISSOLoginService } from
|
|
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
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
type passwordType = {
|
|
12
12
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import { OnInit } from
|
|
3
|
-
import { FormBuilder, FormGroup, ValidationErrors } from
|
|
4
|
-
import { LoginConstant } from
|
|
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
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PasswordMatchingComponent implements OnInit {
|
|
7
7
|
private fb;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { AnnaLibAuthService } from
|
|
4
|
-
import { LoginConstant } from
|
|
5
|
-
import { IConfigService } from
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
type passwordType = {
|
|
8
8
|
value: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IConfigService } from
|
|
2
|
-
import { LoginConstant } from
|
|
3
|
-
import { AnnaLibAuthService } from
|
|
1
|
+
import { IConfigService } from "../../config/config-service.token";
|
|
2
|
+
import { LoginConstant } from "../../constants/loginConstant";
|
|
3
|
+
import { AnnaLibAuthService } from "../../services/auth.service";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SsoLoginComponent {
|
|
6
6
|
authService: AnnaLibAuthService;
|
package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { FormBuilder, FormGroup } from
|
|
3
|
-
import { Router } from
|
|
4
|
-
import { LoginConstant } from
|
|
5
|
-
import { AnnaLibAuthService } from
|
|
6
|
-
import { IConfigService } from
|
|
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
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
type passwordType = {
|
|
9
9
|
value: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { IConfigService } from
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { IConfigService } from "../../config/config-service.token";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class VersionAndTermPolicyComponent implements OnInit {
|
|
5
5
|
consumingProjectConfigService: IConfigService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken } from
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
2
|
/** Token to inject the acl service */
|
|
3
3
|
export declare const ACL_SERVICE_TOKEN: InjectionToken<IAclService>;
|
|
4
4
|
export interface IAclService {
|
|
@@ -26,10 +26,10 @@ export interface IAclService {
|
|
|
26
26
|
ORDER_DISCREPANCIES: string;
|
|
27
27
|
REVISION_CYCLE_SETTINGS_READ: string;
|
|
28
28
|
REVISION_CYCLE_SETTINGS_WRITE: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
ROLLING_AVERAGES_READ: string;
|
|
30
|
+
ROLLING_AVERAGES_WRITE: string;
|
|
31
|
+
EQUIVALIZED_RATES_READ: string;
|
|
32
|
+
EQUIVALIZED_RATES_WRITE: string;
|
|
33
33
|
WRITE_ENABLED_ORDERS_READ: string;
|
|
34
34
|
WRITE_ENABLED_ORDERS_WRITE: string;
|
|
35
35
|
STATION_POLITICAL_RATE_CARD_READ: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InjectionToken } from
|
|
2
|
-
import { AuthTokens } from
|
|
3
|
-
import { Observable } from
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
import { AuthTokens } from "aws-amplify/auth";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
4
|
/** Token to inject the auth service */
|
|
5
5
|
export declare const AUTH_SERVICE_TOKEN: InjectionToken<IAuthService>;
|
|
6
6
|
export interface IAuthService {
|
|
@@ -8,7 +8,7 @@ export interface IAuthService {
|
|
|
8
8
|
userName: any;
|
|
9
9
|
accessToken: string;
|
|
10
10
|
IdToken: any;
|
|
11
|
-
defaultLoginPageUrl:
|
|
11
|
+
defaultLoginPageUrl: "co-pilot-login" | "login";
|
|
12
12
|
onSuccessfulAuthenticatingUser(loggedInViaSso: boolean): void;
|
|
13
13
|
getAllCognitoTokenAndGroups(tokens: AuthTokens): void;
|
|
14
14
|
isUsernameAvailable(username: string): Observable<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InjectionToken } from
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
2
|
/** Token to inject the auth service */
|
|
3
3
|
export declare const SSO_LOGIN_SERVICE_TOKEN: InjectionToken<ISSOLoginService>;
|
|
4
4
|
export interface ISSOLoginService {
|
|
5
|
-
defaultLoginPageUrl:
|
|
5
|
+
defaultLoginPageUrl: "co-pilot-login" | "login";
|
|
6
6
|
isSsoIntegrated: boolean;
|
|
7
7
|
loggedInViaSso: boolean;
|
|
8
8
|
isUserInvitedAndCanAccessANNA: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./spinner-button.directive";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from
|
|
1
|
+
import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpinnerButtonDirective implements OnInit, OnChanges {
|
|
4
4
|
private el;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { AuthTokens, SignInInput } from
|
|
4
|
-
import { ToastrService } from
|
|
5
|
-
import { IAuthService } from
|
|
6
|
-
import { AnnaLibAclService } from
|
|
7
|
-
import { ISSOLoginService } from
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { AuthTokens, SignInInput } from "aws-amplify/auth";
|
|
4
|
+
import { ToastrService } from "ngx-toastr";
|
|
5
|
+
import { IAuthService } from "../config/auth-service.token";
|
|
6
|
+
import { AnnaLibAclService } from "./acl.service";
|
|
7
|
+
import { ISSOLoginService } from "../config/sso-login-service.token";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class AnnaLibAuthService {
|
|
10
10
|
private router;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISSOLoginService } from
|
|
1
|
+
import { ISSOLoginService } from "../config/sso-login-service.token";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AnnaSSOLoginService {
|
|
4
4
|
consumingProjectSSOLoginService: ISSOLoginService;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
1
|
+
export * from "./lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component";
|
|
2
|
+
export * from "./lib/components/anna-login/anna-login.component";
|
|
3
|
+
export * from "./lib/components/sso-login/sso-login.component";
|
|
4
|
+
export * from "./lib/components/forgot-password/forgot-password.component";
|
|
5
|
+
export * from "./lib/components/set-new-password/set-new-password.component";
|
|
6
|
+
export * from "./lib/components/password-matching/password-matching.component";
|
|
7
|
+
export * from "./lib/components/verify-and-set-new-password/verify-and-set-new-password.component";
|
|
8
|
+
export * from "./lib/components/version-and-term-policy/version-and-term-policy.component";
|
|
9
|
+
export * from "./lib/components/powered-by-logo-template/powered-by-logo-template.component";
|
|
10
|
+
export * from "./lib/components/surewaves-year-logo/surewaves-year-logo.component";
|
|
11
|
+
export * from "./lib/services/auth.service";
|
|
12
|
+
export * from "./lib/services/acl.service";
|
|
13
|
+
export * from "./lib/config/auth-service.token";
|
|
14
|
+
export * from "./lib/config/acl-service.token";
|
|
15
|
+
export * from "./lib/config/config-service.token";
|
|
16
|
+
export * from "./lib/config/sso-login-service.token";
|
|
17
|
+
export * from "./lib/services/config.service";
|
|
18
|
+
export * from "./lib/services/sso-login.service";
|
|
19
|
+
export * from "./lib/directives/spinner-button";
|
|
20
|
+
export * from "./lib/constants/loginConstant";
|