@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.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +27 -0
- package/dist/cjs/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
- package/dist/cjs/components/index.d.ts +1 -1
- package/dist/cjs/components/login/Login.types.d.ts +27 -5
- package/dist/cjs/components/login/LoginModalV2.d.ts +5 -0
- package/dist/cjs/components/login/LoginV2.d.ts +4 -0
- package/dist/cjs/components/login/MFA/MfaChannelSelection.d.ts +3 -0
- package/dist/cjs/components/login/MFA/MfaOtp.d.ts +3 -0
- package/dist/cjs/components/login/TemporaryPasswordV2.d.ts +3 -0
- package/dist/cjs/components/login/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/cjs/services/LoginServiceV2.d.ts +35 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/utils/AnalyticsUtils.d.ts +11 -1
- package/dist/cjs/utils/constants.d.ts +2 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +27 -0
- package/dist/esm/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/login/Login.types.d.ts +27 -5
- package/dist/esm/components/login/LoginModalV2.d.ts +5 -0
- package/dist/esm/components/login/LoginV2.d.ts +4 -0
- package/dist/esm/components/login/MFA/MfaChannelSelection.d.ts +3 -0
- package/dist/esm/components/login/MFA/MfaOtp.d.ts +3 -0
- package/dist/esm/components/login/TemporaryPasswordV2.d.ts +3 -0
- package/dist/esm/components/login/index.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/esm/services/LoginServiceV2.d.ts +35 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/utils/AnalyticsUtils.d.ts +11 -1
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/index.d.ts +24 -4
- package/package.json +1 -1
- package/dist/cjs/components/login/LoginModal.d.ts +0 -5
- 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;
|
@@ -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";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export { default as Button } from './button';
|
2
|
-
export { default as
|
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
|
-
|
2
|
-
|
3
|
-
|
1
|
+
export interface LoginModalSchema {
|
2
|
+
content: any;
|
3
|
+
closeLogin: () => void;
|
4
|
+
metadata: any;
|
5
|
+
onSuccess: () => void;
|
4
6
|
}
|
5
|
-
export
|
6
|
-
|
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
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export { default } from './
|
1
|
+
export { default } from './LoginModalV2';
|