@sunrise-upc/mobile-prod-card 1.3.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +21 -0
- package/dist/cjs/components/BenefitWrapper/BenefitValidate.d.ts +3 -0
- package/dist/cjs/components/BenefitWrapper/BenefitWrapper.d.ts +3 -0
- package/dist/cjs/components/BenefitWrapper/Benefits.d.ts +1 -0
- package/dist/cjs/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +3 -0
- package/dist/cjs/components/BenefitWrapper/index.d.ts +1 -0
- package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +6 -0
- package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +18 -0
- package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +9 -0
- package/dist/cjs/components/LineCheckV3/LineCheckV3.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LinecheckService.d.ts +10 -0
- package/dist/cjs/components/LineCheckV3/Success.d.ts +16 -0
- package/dist/cjs/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/cjs/components/LineCheckV3/index.d.ts +1 -0
- package/dist/cjs/components/StaticLineTable/CheckoutButton.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/DynamicPriceSection.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +11 -0
- package/dist/cjs/components/StaticLineTable/StaticBenefit.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/StaticLineTable.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/StaticProduct.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/StaticProductContainer.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +81 -0
- package/dist/cjs/components/StaticLineTable/StaticProductDetails.d.ts +4 -0
- package/dist/cjs/components/StaticLineTable/StaticProductDetailsModal.d.ts +14 -0
- package/dist/cjs/components/StaticLineTable/StaticProductEntitlement.d.ts +3 -0
- package/dist/cjs/components/StaticLineTable/TVChannelModal.d.ts +3 -0
- package/dist/cjs/components/StaticLineTable/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +2 -1
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/services/LineTableService.d.ts +1 -0
- package/dist/cjs/services/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/utils/AnalyticsUtils.d.ts +17 -0
- package/dist/cjs/utils/utils.d.ts +1 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +21 -0
- package/dist/esm/components/BenefitWrapper/BenefitValidate.d.ts +3 -0
- package/dist/esm/components/BenefitWrapper/BenefitWrapper.d.ts +3 -0
- package/dist/esm/components/BenefitWrapper/Benefits.d.ts +1 -0
- package/dist/esm/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +3 -0
- package/dist/esm/components/BenefitWrapper/index.d.ts +1 -0
- package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +6 -0
- package/dist/esm/components/LineCheckV3/GenericModal.d.ts +18 -0
- package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +9 -0
- package/dist/esm/components/LineCheckV3/LineCheckV3.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LinecheckService.d.ts +10 -0
- package/dist/esm/components/LineCheckV3/Success.d.ts +16 -0
- package/dist/esm/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/esm/components/LineCheckV3/index.d.ts +1 -0
- package/dist/esm/components/StaticLineTable/CheckoutButton.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/DynamicPriceSection.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/Product.utils.d.ts +11 -0
- package/dist/esm/components/StaticLineTable/StaticBenefit.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/StaticLineTable.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/StaticProduct.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/StaticProductContainer.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +81 -0
- package/dist/esm/components/StaticLineTable/StaticProductDetails.d.ts +4 -0
- package/dist/esm/components/StaticLineTable/StaticProductDetailsModal.d.ts +14 -0
- package/dist/esm/components/StaticLineTable/StaticProductEntitlement.d.ts +3 -0
- package/dist/esm/components/StaticLineTable/TVChannelModal.d.ts +3 -0
- package/dist/esm/components/StaticLineTable/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/components/lineTable/lineTable.types.d.ts +2 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/services/LineTableService.d.ts +1 -0
- package/dist/esm/services/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/utils/AnalyticsUtils.d.ts +17 -0
- package/dist/esm/utils/utils.d.ts +1 -0
- package/dist/index.d.ts +35 -1
- package/package.json +3 -2
@@ -4,3 +4,4 @@ export declare const createCartV2: (productData: any, radioValue: string, defaul
|
|
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
6
|
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean) => Promise<any>;
|
7
|
+
export declare const fetchSubscriptionData: (category: any, endpoint: any) => Promise<any>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface LinecheckBasicPropConfigSchema {
|
2
|
+
baseURL: string | '';
|
3
|
+
}
|
4
|
+
export declare class LinecheckBasicPropConfig {
|
5
|
+
private static instance;
|
6
|
+
config: LinecheckBasicPropConfigSchema;
|
7
|
+
private constructor();
|
8
|
+
getConfig: () => LinecheckBasicPropConfigSchema;
|
9
|
+
getBaseUrl: () => string;
|
10
|
+
static getInstance: () => LinecheckBasicPropConfig;
|
11
|
+
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
12
|
+
}
|
@@ -1 +1,18 @@
|
|
1
1
|
export declare const trackNewDatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
2
|
+
declare global {
|
3
|
+
interface Window {
|
4
|
+
appEventData: any;
|
5
|
+
dataLayer: any;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
export declare const trackGADatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
9
|
+
export declare const trackLineEvent: (address: string, eventAction: string, eventValue: string | number, id: string | undefined, type: string) => void;
|
10
|
+
export declare const trackEvent: (eventAction: string, eventValue: string | number, type: string) => void;
|
11
|
+
export declare const trackMessageEvent: (description: string, source: string, title: string, type: string, guid?: string, errorID?: string) => void;
|
12
|
+
export interface ErrorEventInfoInterface {
|
13
|
+
message_type: string;
|
14
|
+
message_title: string;
|
15
|
+
message_source: string;
|
16
|
+
message_reason: string;
|
17
|
+
}
|
18
|
+
export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
|
@@ -10,3 +10,4 @@ export declare const viewport: () => string;
|
|
10
10
|
export declare const getCookies: (cname: string) => any;
|
11
11
|
export declare const isTouchScreen: () => boolean;
|
12
12
|
export declare const replacePlaceholder: (source: string, params: any) => string;
|
13
|
+
export declare const isModemPresent: () => boolean;
|
@@ -17,3 +17,24 @@ export declare const MOBILEORDER = "MOBILE_ORDER";
|
|
17
17
|
export declare const HOMEORDER = "HOME_ORDER";
|
18
18
|
export declare const MOBILESUBSCRIPTION = "Mobile Subscription Only";
|
19
19
|
export declare const INTERNETSUBSCRIPTION = "Internet Subscription Only";
|
20
|
+
export declare const TYPE = "click";
|
21
|
+
export declare const SBLINECHECKSTART = "line_check_start";
|
22
|
+
export declare const SBLINECHECKRESULT = "line_check_results";
|
23
|
+
export declare const LINETABLERESULT = "lineCheckResult";
|
24
|
+
export declare const VIEW = "view";
|
25
|
+
export declare const LINECHECKSTART = "lineCheckStart";
|
26
|
+
export declare const CHECKADDRESS = "Check address";
|
27
|
+
export declare const LINEADDRESS = "lineTableView Address";
|
28
|
+
export declare const CHANGE = "Change";
|
29
|
+
export declare const ERRORMESSAGE = "Missing or Invalid Error";
|
30
|
+
export declare const ERRORTYPE = "error";
|
31
|
+
export declare const FIXNET = "fixnet";
|
32
|
+
export declare const AUTHCOOKIE = "sunriseAuth";
|
33
|
+
export declare const EXISTINGCUSTOMER = "existing-customer";
|
34
|
+
export declare const NEWCUSTOMER = "new-customer";
|
35
|
+
export declare const DEFAULT = "default";
|
36
|
+
export declare const SUNRISEINTERNET = "Internet";
|
37
|
+
export declare const SUNRISEMOBILE = "Mobile";
|
38
|
+
export declare const SUNRISEBOTHSUBSCRIPTION = "Mobile,Internet";
|
39
|
+
export declare const POSTPAID = "POSTPAID";
|
40
|
+
export declare const CAPSINTERNET = "INTERNET";
|
@@ -0,0 +1,3 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const BenefitsValidate: ({ content, authData, loginContent, metadata, afterLoginContent, createCartCall, extraContent, basicConfigUrl, selectedExistingOption, setShowBenefit, setLoginSuccess }: any) => JSX.Element;
|
3
|
+
export default BenefitsValidate;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CheckBenefitsMatch: (userBenefitsSelectedCheckBox: any[], userSubscriptionData: any[]) => boolean;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const BenefitsValidateWrapper: ({ content, loginContent, metadata, createCartCall, fetchOfferData, basicConfigUrl, selectedExistingOption, setShowBenefit, setLoginSuccess }: any) => JSX.Element;
|
3
|
+
export default BenefitsValidateWrapper;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './BenefitWrapper';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface GenericModalSchema {
|
3
|
+
modalState: boolean;
|
4
|
+
handler: () => void;
|
5
|
+
children: React.ReactNode;
|
6
|
+
showFooter: boolean;
|
7
|
+
footerNode?: React.ReactNode;
|
8
|
+
height?: string;
|
9
|
+
width?: string;
|
10
|
+
noCloseButton?: boolean;
|
11
|
+
backDrop?: boolean;
|
12
|
+
fixedWidth?: string;
|
13
|
+
backgroundColor?: string;
|
14
|
+
bodyPadding?: string;
|
15
|
+
id?: string;
|
16
|
+
}
|
17
|
+
declare const GenericModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backDrop, fixedWidth, backgroundColor, bodyPadding, id }: GenericModalSchema) => JSX.Element;
|
18
|
+
export default GenericModal;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface LineCheckOverlaySchema {
|
3
|
+
props: any;
|
4
|
+
productName: string;
|
5
|
+
handleModalClick: any;
|
6
|
+
onSuccess: any;
|
7
|
+
}
|
8
|
+
declare const LineCheckOverlay: ({ props, productName, handleModalClick, onSuccess }: LineCheckOverlaySchema) => JSX.Element;
|
9
|
+
export default LineCheckOverlay;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const getLineCheckService: (selectedAdd: any) => unknown;
|
2
|
+
export declare const fetchLineCheck: (payload: any) => Promise<{
|
3
|
+
corelationaId: any;
|
4
|
+
lineCheckResponse: any;
|
5
|
+
eligibleBundle: any;
|
6
|
+
maxUploadDownloadSpeed: any;
|
7
|
+
configEligibleBundle: string[];
|
8
|
+
plannedUpgrade: any;
|
9
|
+
}>;
|
10
|
+
export declare const fetchAddress: (address: any, isValid: boolean) => Promise<any>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
interface successInterface {
|
3
|
+
content: string | JSX.Element;
|
4
|
+
isLoading: boolean;
|
5
|
+
uploadDownload: MaxDownloadUploadSpeed | Partial<MaxDownloadUploadSpeed>;
|
6
|
+
textContent: any;
|
7
|
+
eligibleBundle: any;
|
8
|
+
tooltipcontent: string | JSX.Element;
|
9
|
+
onSuccess?: any;
|
10
|
+
}
|
11
|
+
interface MaxDownloadUploadSpeed {
|
12
|
+
maxBandwidthDown: number;
|
13
|
+
maxBandwidthUp: number;
|
14
|
+
}
|
15
|
+
declare const Success: ({ content, uploadDownload, textContent, eligibleBundle, tooltipcontent, onSuccess }: successInterface) => JSX.Element;
|
16
|
+
export default Success;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const API_BASE_BASEPOINT: any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './LinecheckModal';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SetStateAction } from 'react';
|
2
|
+
export declare const fetchStaticProductIds: (productList: any, productId: any) => any;
|
3
|
+
export declare const checkGiftOrCashback: (data: any) => any;
|
4
|
+
export declare const staticCreateCart: (setShowLoader: {
|
5
|
+
(value: SetStateAction<boolean>): void;
|
6
|
+
(arg0: boolean): void;
|
7
|
+
}, cartEndPoint: string, giftItem: any, uniqueProductData: any, mainContent: any, showPrice: any, isMobileFlow: boolean, radioValue: any, eligibleBundle: any, address: any, setShowLinecheck: any, showLinecheck: any) => any;
|
8
|
+
export declare const findHeight: (tabIndex: number, cardsLength: number) => void;
|
9
|
+
export declare const combineWithSmartPhone: (showPrice: any, storyContent: any, uniqueProductData: any) => void;
|
10
|
+
export declare const fetchServiceOptions: (entitlement: any, isMobileFlow: boolean) => any;
|
11
|
+
export declare const fetchPrice: (product: any, isMobileFlow: boolean, pageType?: string, isConfigurator?: boolean) => any;
|
@@ -0,0 +1,81 @@
|
|
1
|
+
export interface StaticLinetableSchema {
|
2
|
+
content: any;
|
3
|
+
tabCheckCallBack?: any;
|
4
|
+
setGenericErrorModalDetails: any;
|
5
|
+
metadata: any;
|
6
|
+
loginSuccess?: boolean;
|
7
|
+
changeAddressClicked?: any;
|
8
|
+
linecheckSuccessCallBack?: any;
|
9
|
+
selectedOption?: string;
|
10
|
+
basicConfigUrl?: string;
|
11
|
+
selectedExistingOption?: any;
|
12
|
+
setLoginSuccess?: any;
|
13
|
+
}
|
14
|
+
export interface StaticProductSchema {
|
15
|
+
content: any;
|
16
|
+
offeringData: any;
|
17
|
+
uniqueId: number | string | symbol;
|
18
|
+
storyContent: any;
|
19
|
+
metadata: any;
|
20
|
+
tabIndex: number;
|
21
|
+
cardsLength: number;
|
22
|
+
indexKey: number;
|
23
|
+
constants: any;
|
24
|
+
mainContent?: any;
|
25
|
+
address?: any;
|
26
|
+
linecheckSuccessCallBack?: any;
|
27
|
+
eligibleBundle?: any;
|
28
|
+
selectedOption?: string;
|
29
|
+
fetchOfferData?: any;
|
30
|
+
basicConfigUrl?: string;
|
31
|
+
selectedExistingOption?: any;
|
32
|
+
setLoginSuccess?: any;
|
33
|
+
}
|
34
|
+
export interface DynamicPriceSchema {
|
35
|
+
priceCollection: any;
|
36
|
+
constants: any;
|
37
|
+
promoText?: string;
|
38
|
+
}
|
39
|
+
export interface StaticProductContainerSchema {
|
40
|
+
content: any;
|
41
|
+
setGenericErrorModalDetails: any;
|
42
|
+
metadata: any;
|
43
|
+
tabIndex: number;
|
44
|
+
constants: any;
|
45
|
+
loginSuccess?: any;
|
46
|
+
activeIndex: number;
|
47
|
+
mainContent?: any;
|
48
|
+
address?: any;
|
49
|
+
eligibleBundle?: any;
|
50
|
+
linecheckSuccessCallBack?: any;
|
51
|
+
selectedOption?: string;
|
52
|
+
basicConfigUrl?: string;
|
53
|
+
selectedExistingOption?: any;
|
54
|
+
setLoginSuccess?: any;
|
55
|
+
}
|
56
|
+
export interface StaticProductDetailsSchema {
|
57
|
+
content: any;
|
58
|
+
showProductDetail: any;
|
59
|
+
setShowProductDetail: any;
|
60
|
+
constants: any;
|
61
|
+
showPrice: any;
|
62
|
+
isMobileFlow: boolean;
|
63
|
+
createCartCall: any;
|
64
|
+
storyContent: any;
|
65
|
+
isAvailable?: boolean;
|
66
|
+
address?: any;
|
67
|
+
}
|
68
|
+
export interface StaticBenefitsSchema {
|
69
|
+
content: any;
|
70
|
+
benefitData: any;
|
71
|
+
constants: any;
|
72
|
+
}
|
73
|
+
export interface CheckoutButtonSchema {
|
74
|
+
isMobileFlow: boolean;
|
75
|
+
createCartCall: any;
|
76
|
+
constants: any;
|
77
|
+
storyContent: any;
|
78
|
+
showPrice: any;
|
79
|
+
isAvailable?: boolean;
|
80
|
+
address?: any;
|
81
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface GenericModalSchema {
|
3
|
+
modalState: boolean;
|
4
|
+
handler: () => void;
|
5
|
+
children: React.ReactNode;
|
6
|
+
showFooter: boolean;
|
7
|
+
footerNode?: React.ReactNode;
|
8
|
+
height?: string;
|
9
|
+
width?: string;
|
10
|
+
backDrop?: boolean;
|
11
|
+
backButton?: string;
|
12
|
+
}
|
13
|
+
declare const ProductDetailsModal: ({ modalState, handler, showFooter, footerNode, children, width, height, backButton }: GenericModalSchema) => any;
|
14
|
+
export default ProductDetailsModal;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './StaticLineTable';
|
@@ -6,3 +6,6 @@ export { default as CarouselComp } from './CarouselComp';
|
|
6
6
|
export { default as ProductTeaser } from './ProductTeaser';
|
7
7
|
export { default as ProductTableV3 } from './lineTable';
|
8
8
|
export { default as StickyProductAnchor } from './StickyProductAnchor';
|
9
|
+
export { default as StaticLineTable } from './StaticLineTable';
|
10
|
+
export { default as LinecheckModal } from './LineCheckV3';
|
11
|
+
export { default as BenefitWrapper } from './BenefitWrapper';
|
@@ -6,10 +6,11 @@ export interface ProductTableSchema {
|
|
6
6
|
lineCheckCallBack?: () => void;
|
7
7
|
changeAddressClicked?: any;
|
8
8
|
tabCheckCallBack?: (tabId: string) => void;
|
9
|
+
ratePlansToRemove?: string[];
|
9
10
|
}
|
10
11
|
export interface ProductRequestBase {
|
11
12
|
id: string;
|
12
|
-
checkVoucher
|
13
|
+
checkVoucher?: boolean;
|
13
14
|
promoIds: string[];
|
14
15
|
}
|
15
16
|
export interface ProductContainerSchema extends ProductTableSchema {
|