@sunrise-upc/mobile-prod-card 4.7.8 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/cjs/Analytics/AnalyticsConstants.d.ts +27 -0
  2. package/dist/cjs/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
  3. package/dist/cjs/components/index.d.ts +1 -1
  4. package/dist/cjs/components/login/Login.types.d.ts +27 -5
  5. package/dist/cjs/components/login/LoginModalV2.d.ts +5 -0
  6. package/dist/cjs/components/login/LoginV2.d.ts +4 -0
  7. package/dist/cjs/components/login/MFA/MfaChannelSelection.d.ts +3 -0
  8. package/dist/cjs/components/login/MFA/MfaOtp.d.ts +3 -0
  9. package/dist/cjs/components/login/TemporaryPasswordV2.d.ts +3 -0
  10. package/dist/cjs/components/login/index.d.ts +1 -1
  11. package/dist/cjs/index.js +2 -2
  12. package/dist/cjs/services/LoginBasicPropConfig.d.ts +16 -0
  13. package/dist/cjs/services/LoginServiceV2.d.ts +35 -0
  14. package/dist/cjs/services/index.d.ts +1 -0
  15. package/dist/cjs/utils/AnalyticsUtils.d.ts +11 -1
  16. package/dist/cjs/utils/constants.d.ts +2 -0
  17. package/dist/esm/Analytics/AnalyticsConstants.d.ts +27 -0
  18. package/dist/esm/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
  19. package/dist/esm/components/index.d.ts +1 -1
  20. package/dist/esm/components/login/Login.types.d.ts +27 -5
  21. package/dist/esm/components/login/LoginModalV2.d.ts +5 -0
  22. package/dist/esm/components/login/LoginV2.d.ts +4 -0
  23. package/dist/esm/components/login/MFA/MfaChannelSelection.d.ts +3 -0
  24. package/dist/esm/components/login/MFA/MfaOtp.d.ts +3 -0
  25. package/dist/esm/components/login/TemporaryPasswordV2.d.ts +3 -0
  26. package/dist/esm/components/login/index.d.ts +1 -1
  27. package/dist/esm/index.js +2 -2
  28. package/dist/esm/services/LoginBasicPropConfig.d.ts +16 -0
  29. package/dist/esm/services/LoginServiceV2.d.ts +35 -0
  30. package/dist/esm/services/index.d.ts +1 -0
  31. package/dist/esm/utils/AnalyticsUtils.d.ts +11 -1
  32. package/dist/esm/utils/constants.d.ts +2 -0
  33. package/dist/index.d.ts +24 -4
  34. package/package.json +1 -1
  35. package/dist/cjs/components/login/LoginModal.d.ts +0 -5
  36. package/dist/esm/components/login/LoginModal.d.ts +0 -5
@@ -0,0 +1,16 @@
1
+ import { ApiServiceV2 } from "@sunrise-upc/ajax-lib";
2
+ export interface LoginBasicPropConfigSchema {
3
+ baseURL: string | "";
4
+ }
5
+ export declare class LoginBasicPropConfig {
6
+ private static instance;
7
+ apiServiceObject?: ApiServiceV2;
8
+ prop: any;
9
+ config: LoginBasicPropConfigSchema;
10
+ private constructor();
11
+ getConfig: () => LoginBasicPropConfigSchema;
12
+ getBaseUrl: () => string;
13
+ static getInstance: () => LoginBasicPropConfig;
14
+ static create: (p_config: LoginBasicPropConfigSchema) => void;
15
+ getAPIServiceObject: () => ApiServiceV2;
16
+ }
@@ -0,0 +1,35 @@
1
+ export declare enum USERNAME_TYPE {
2
+ EMAIL = "Email_Id",
3
+ CLI = "CLI",
4
+ CUSTOMER_NUMBER = "SiteID",
5
+ MSISDN = "MSISDN"
6
+ }
7
+ export interface LoginResponse {
8
+ content: any;
9
+ status: string;
10
+ }
11
+ export interface LoginMethodsResponse {
12
+ ok: boolean;
13
+ segment: string;
14
+ username: string;
15
+ allowedMethods: string[];
16
+ isResidential: boolean;
17
+ isSohoSmall: boolean;
18
+ isMediumLargeCorporate: boolean;
19
+ isMsisdn: boolean;
20
+ errorCode?: string;
21
+ }
22
+ export declare const removeSpaces: (username: any) => string;
23
+ export declare const checkUsernameType: (username: string) => string | any;
24
+ export declare const getFormattedUsername: (username: string) => string;
25
+ export declare const isEmail: (text: string) => boolean;
26
+ export declare const isValidEmail: (email: string) => any;
27
+ export declare const isValidSiteId: (username: string) => any;
28
+ export declare const changeUserNameFormat: (username: string) => string;
29
+ export declare const insertToken: (originalString: string | undefined | null, token: string, tokenPositions: number[]) => string;
30
+ export declare const fetchLoginWithPassword: (username: string, password: string, lang: string, rememberMe: boolean) => Promise<LoginResponse>;
31
+ export declare const fetchLoginMethods: (username: string, lang: string, channel?: any) => Promise<unknown>;
32
+ export declare const channelselection: (channel: any, lang: string) => Promise<unknown>;
33
+ export declare const verifyOtp: (otp: any, lang: string) => Promise<unknown>;
34
+ export declare const resendOtp: (lang: string) => Promise<unknown>;
35
+ export declare const replacePlaceholder: (source: string, params: string[]) => string;
@@ -1,3 +1,4 @@
1
1
  export * from "./LineTableBasicPropConfig";
2
2
  export * from "./ProductTeaserPropsConfig";
3
3
  export * from "./LinecheckBasicPropConfig";
4
+ export * from './LoginBasicPropConfig';
@@ -14,8 +14,9 @@ export interface ErrorEventInfoInterface {
14
14
  message_title: string;
15
15
  message_source: string;
16
16
  message_reason: string;
17
+ message_guid?: string;
17
18
  }
18
- export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
19
+ export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string, message_guid?: string) => void;
19
20
  export interface DataLayerErrorEvent {
20
21
  event: string;
21
22
  event_name: string;
@@ -27,3 +28,12 @@ export interface DataLayerErrorEvent {
27
28
  message_apiinfo: string;
28
29
  }
29
30
  export declare const errorTrackingDataLayer: (response: any) => void;
31
+ export interface UserInterface {
32
+ loginType: string;
33
+ accountID?: string;
34
+ language?: string;
35
+ lastLoginDate?: string;
36
+ type?: string;
37
+ existingUser?: boolean;
38
+ }
39
+ export declare const trackUser: (loginType: string, accountID?: string, language?: string, lastLoginDate?: string, type?: string, existingUser?: boolean) => void;
@@ -45,3 +45,5 @@ export declare const BREADCRUMB = "...";
45
45
  export declare const PRE_TO_POST = "PRE_TO_POST";
46
46
  export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
47
47
  export declare const TV_SERVICE_OPTION = "TV_SERVICE_OPTION";
48
+ export declare const ERROR_BORDER = "#BF0760";
49
+ export declare const DISABLED_BACKGROUND = "#E6E3DF";
@@ -32,6 +32,33 @@ export declare const ERRORMESSAGE = "Missing or Invalid Error";
32
32
  export declare const ERRORTYPE = "error";
33
33
  export declare const FIXNET = "fixnet";
34
34
  export declare const AUTHCOOKIE = "sunriseAuth";
35
+ export declare const ERROR = "error";
36
+ export declare const LOGIN = "login";
37
+ export declare const LOGINSUCCESSFUL = "loginSuccessful";
38
+ export declare const PASSWORD = "Password";
39
+ export declare const PASSWORDSUCCESSFUL = "success via password";
40
+ export declare const REMMSELECTED = "Remember me | Selected";
41
+ export declare const REMMNOTSELECTED = "Remember me | not selected";
42
+ export declare const PASSWORDUNSUCCESSFUL = "unSuccess via password";
43
+ export declare const LOGINERROR = "LoginError";
44
+ export declare const SUCCESSFULL = "successful";
45
+ export declare const LOGINUNSUCCESSFUL = "loginUnSuccessful";
46
+ export declare const FAILED = "failed";
47
+ export declare const GETTEMPCODE = "get_temporary_code";
48
+ export declare const LOGINUSERVERIFIED = "userVerified";
49
+ export declare const SUCCESSFUL = "success";
50
+ export declare const LOGINUSERNOTVERIFIED = "userNotVerified";
51
+ export declare const UNSUCCESSFUL = "unSuccess";
52
+ export declare const OTP = "Enter the temporary code";
53
+ export declare const CHANNELSELECTION = "Get a temporary code via SMS/Email";
54
+ export declare const VIA = "via";
55
+ export declare const SENDOTP = "send_otp";
56
+ export declare const OTPLOGINSUCCESS = "otp_login_success";
57
+ export declare const OTPLOGINFAIL = "otp_login_fail";
58
+ export declare const VEIW = "view";
59
+ export declare const MTAN = "MTAN";
60
+ export declare const LOGINNEXT = "Next";
61
+ export declare const TEMPCODENEXT = "Login Get a temporary code";
35
62
  export declare const EXISTINGCUSTOMER = "existing-customer";
36
63
  export declare const NEWCUSTOMER = "new-customer";
37
64
  export declare const DEFAULT = "default";
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ReactInputSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
3
+ export default ReactInputSelect;
@@ -1,5 +1,5 @@
1
1
  export { default as Button } from './button';
2
- export { default as LoginModal } from './login';
2
+ export { default as LoginModalV2 } from './login';
3
3
  export { default as Card } from './CardComp';
4
4
  export { default as CardEntitlement } from './CardEntitlement';
5
5
  export { default as CarouselComp } from './CarouselComp';
@@ -1,12 +1,34 @@
1
- import { MouseEventHandler } from "react";
2
- export interface LoginModelProps {
3
- toggleFun: MouseEventHandler<HTMLButtonElement>;
1
+ export interface LoginModalSchema {
2
+ content: any;
3
+ closeLogin: () => void;
4
+ metadata: any;
5
+ onSuccess: () => void;
4
6
  }
5
- export type LinkTarget = "_self" | "_blank" | null;
6
- export type LinkType = "url" | "story" | "asset" | "email";
7
+ export interface LoginSchema {
8
+ content: any;
9
+ changeCurrentView: (view: string, userID: string, otpUseCase: number, response?: any, password?: any) => void;
10
+ metadata: any;
11
+ onSuccess: () => void;
12
+ loginIcons: any;
13
+ userID?: any;
14
+ password?: any;
15
+ otpUseCase?: any;
16
+ }
17
+ export type LinkTarget = '_self' | '_blank' | null;
18
+ export type LinkType = 'url' | 'story' | 'asset' | 'email';
7
19
  export declare interface LinkAttributes {
8
20
  href: string;
9
21
  uuid: string | null;
10
22
  target: LinkTarget;
11
23
  linktype: LinkType;
12
24
  }
25
+ export interface Mfa {
26
+ content: any;
27
+ changeCurrentView: (view: string, userID: string, otpUseCase: number, response?: any, password?: string) => void;
28
+ metadata: any;
29
+ onSuccess: () => void;
30
+ loginIcons: any;
31
+ userID?: any;
32
+ password?: any;
33
+ loginResponseMFA?: any;
34
+ }
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { LoginModalSchema } from './Login.types';
3
+ import './Login.css';
4
+ declare const LoginModal: FC<LoginModalSchema>;
5
+ export default LoginModal;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { LoginSchema } from './Login.types';
3
+ declare const Login: FC<LoginSchema>;
4
+ export default Login;
@@ -0,0 +1,3 @@
1
+ import { Mfa } from '../Login.types';
2
+ declare const MfaChannelSelection: ({ content, loginIcons, metadata, userID, changeCurrentView, password, onSuccess }: Mfa) => any;
3
+ export default MfaChannelSelection;
@@ -0,0 +1,3 @@
1
+ import { Mfa } from '../Login.types';
2
+ declare const MfaOtp: ({ content, loginIcons, changeCurrentView, userID, password, metadata, onSuccess, loginResponseMFA }: Mfa) => any;
3
+ export default MfaOtp;
@@ -0,0 +1,3 @@
1
+ import { LoginSchema } from './Login.types';
2
+ declare const TemporaryPassword: ({ content, metadata, onSuccess, loginIcons, userID, otpUseCase }: LoginSchema) => any;
3
+ export default TemporaryPassword;
@@ -1 +1 @@
1
- export { default } from './LoginModal';
1
+ export { default } from './LoginModalV2';