@sunrise-upc/mobile-prod-card 4.7.7-beta.7 → 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/StaticLineTable/Product.utils.d.ts +0 -2
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -8
- package/dist/cjs/components/index.d.ts +1 -1
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +0 -13
- 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 -4
- package/dist/cjs/services/LineTableService.d.ts +1 -2
- package/dist/cjs/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/cjs/services/LoginServiceV2.d.ts +35 -0
- package/dist/cjs/services/api-constants.d.ts +0 -2
- 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/StaticLineTable/Product.utils.d.ts +0 -2
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +0 -8
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/lineTable/lineTable.types.d.ts +0 -13
- 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 -4
- package/dist/esm/services/LineTableService.d.ts +1 -2
- package/dist/esm/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/esm/services/LoginServiceV2.d.ts +35 -0
- package/dist/esm/services/api-constants.d.ts +0 -2
- 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 -7
- package/package.json +2 -5
- package/dist/cjs/components/login/LoginModal.d.ts +0 -5
- package/dist/esm/components/login/LoginModal.d.ts +0 -5
@@ -3,10 +3,9 @@ export declare const fetchOfferingDataV2: (requestBody: any, url: any, returnPro
|
|
3
3
|
export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string, chooseGift?: any, enabledP2P?: any, P2PData?: any, isQoqaFlow?: boolean, qVoucher?: any, deviceDetails?: any, tvOptions?: any) => Promise<any>;
|
4
4
|
export declare const fetchLinetableContent: (slugurl: string, params: any) => Promise<any>;
|
5
5
|
export declare const getStaticContent: (language: any, endPoints: any) => Promise<any>;
|
6
|
-
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean, P2PEnabled?: boolean
|
6
|
+
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean, P2PEnabled?: boolean) => Promise<any>;
|
7
7
|
export declare const fetchSubscriptionData: (category: any, endpoint: any) => Promise<any>;
|
8
8
|
export declare const getVocherPromotion: (productID: string, voucher: string) => Promise<void>;
|
9
9
|
export declare const validateP2P: (msisdn: any, endpoint: any) => Promise<any>;
|
10
10
|
export declare const getDeviceDetails: (deviceID: any, endpoint: any) => Promise<any>;
|
11
11
|
export declare const getDeviceModelsList: (brandId: any, endpoint: any) => Promise<any>;
|
12
|
-
export declare const trackPegaEvents: (endpoint: any, payload: {} | undefined, prospectId: string) => Promise<any>;
|
@@ -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;
|
@@ -2,13 +2,11 @@ export declare const API_BASE_BASEPOINT: any;
|
|
2
2
|
export declare const APIResourceConstants: {
|
3
3
|
X_SUN_CHAL: string;
|
4
4
|
LINE_TABLEV2: string;
|
5
|
-
LINE_TABLEV3: string;
|
6
5
|
CREATE_CARTV2: string;
|
7
6
|
SUBSCRIPTION: string;
|
8
7
|
VOUCHER_PROMOTIONS: string;
|
9
8
|
HARDWARES: string;
|
10
9
|
HARDWARE_DEVICES: string;
|
11
10
|
TV_SERVICE_OPTIONS_V2: string;
|
12
|
-
CUSTOMER_EVENTS: string;
|
13
11
|
};
|
14
12
|
export declare const SBENDPOINT: any;
|
@@ -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,7 +1,5 @@
|
|
1
1
|
import { SetStateAction } from 'react';
|
2
|
-
import { PegaProductRequestBase } from '../lineTable/lineTable.types';
|
3
2
|
export declare const fetchStaticProductIds: (productList: any, productId: any, bundle4PProduct?: boolean, tvOptionIds?: any) => any;
|
4
|
-
export declare const fetchPegaProducts: (content: any, pegaCustomerInterest?: string, placements?: string) => PegaProductRequestBase;
|
5
3
|
export declare const checkGiftOrCashback: (data: any) => any;
|
6
4
|
export declare const staticCreateCart: (setShowLoader: {
|
7
5
|
(value: SetStateAction<boolean>): void;
|
@@ -15,9 +15,6 @@ export interface StaticLinetableSchema {
|
|
15
15
|
deviceFlowCallBack?: any;
|
16
16
|
ubRatePlanObj?: any;
|
17
17
|
lineCheckOnClear?: any;
|
18
|
-
pegaIntegration?: boolean;
|
19
|
-
pegaCustomerInterest?: string;
|
20
|
-
useStoryblokOrder?: boolean;
|
21
18
|
}
|
22
19
|
export interface StaticProductSchema {
|
23
20
|
content: any;
|
@@ -80,11 +77,6 @@ export interface StaticProductContainerSchema {
|
|
80
77
|
deviceFlowCallBack?: any;
|
81
78
|
ubRatePlanObj?: any;
|
82
79
|
lineCheckOnClear?: any;
|
83
|
-
pegaIntegration?: boolean;
|
84
|
-
pegaCustomerInterest?: string;
|
85
|
-
useStoryblokOrder?: boolean;
|
86
|
-
isFetching?: boolean;
|
87
|
-
setIsFetching?: any;
|
88
80
|
}
|
89
81
|
export interface StaticProductDetailsSchema {
|
90
82
|
content: any;
|
@@ -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';
|
@@ -13,19 +13,6 @@ export interface ProductRequestBase {
|
|
13
13
|
checkVoucher?: boolean;
|
14
14
|
promoIds: string[];
|
15
15
|
}
|
16
|
-
export interface OfferValidation {
|
17
|
-
key: string;
|
18
|
-
type: string;
|
19
|
-
value: string;
|
20
|
-
}
|
21
|
-
export interface AtlOffer {
|
22
|
-
index?: number;
|
23
|
-
placements?: string;
|
24
|
-
offerValidations: OfferValidation[];
|
25
|
-
}
|
26
|
-
export interface PegaProductRequestBase {
|
27
|
-
atlOffers: AtlOffer[];
|
28
|
-
}
|
29
16
|
export interface ProductContainerSchema extends ProductTableSchema {
|
30
17
|
activeIndex: any;
|
31
18
|
sbStaticConstants: any;
|
@@ -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';
|