@sunrise-upc/mobile-prod-card 1.2.4-beta.0 → 1.2.4-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +7 -0
- package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +17 -0
- package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/cjs/components/LineCheckV3/LineCheck.types.d.ts +46 -0
- package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
- package/dist/cjs/components/LineCheckV3/LineCheckV3.d.ts +5 -0
- package/dist/cjs/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/cjs/components/LineCheckV3/LinecheckService.d.ts +12 -0
- package/dist/cjs/components/LineCheckV3/Success.d.ts +18 -0
- package/dist/cjs/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -1
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +12 -0
- package/dist/cjs/components/StaticLineTable/TVChannelModal.d.ts +3 -0
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/services/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
- package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +7 -0
- package/dist/esm/components/LineCheckV3/GenericModal.d.ts +17 -0
- package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
- package/dist/esm/components/LineCheckV3/LineCheck.types.d.ts +46 -0
- package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
- package/dist/esm/components/LineCheckV3/LineCheckV3.d.ts +5 -0
- package/dist/esm/components/LineCheckV3/LinecheckModal.d.ts +3 -0
- package/dist/esm/components/LineCheckV3/LinecheckService.d.ts +12 -0
- package/dist/esm/components/LineCheckV3/Success.d.ts +18 -0
- package/dist/esm/components/LineCheckV3/api-constants.d.ts +1 -0
- package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -1
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +12 -0
- package/dist/esm/components/StaticLineTable/TVChannelModal.d.ts +3 -0
- package/dist/esm/index.js +8 -1
- package/dist/esm/services/LinecheckBasicPropConfig.d.ts +12 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/index.d.ts +16 -1
- package/package.json +3 -2
@@ -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
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* A candidate for common component.
|
3
|
+
*/
|
4
|
+
import React from "react";
|
5
|
+
import "./LineCheck.css";
|
6
|
+
declare const AutoComplete: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
7
|
+
export default AutoComplete;
|
@@ -0,0 +1,17 @@
|
|
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
|
+
}
|
16
|
+
declare const GenericModal: ({ modalState, handler, showFooter, footerNode, children, width, height, noCloseButton, backDrop, fixedWidth, backgroundColor, bodyPadding }: GenericModalSchema) => JSX.Element;
|
17
|
+
export default GenericModal;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
export interface LineCheckProps {
|
2
|
+
checkoutButtonUrl: any;
|
3
|
+
linecheck: any;
|
4
|
+
showModemTitle: string;
|
5
|
+
modemTitle: string;
|
6
|
+
component: 'linecheck';
|
7
|
+
shouldAutomateLineCheck: boolean;
|
8
|
+
regexp: string;
|
9
|
+
uploadText: string;
|
10
|
+
downloadText: string;
|
11
|
+
title: string;
|
12
|
+
placeholder: string;
|
13
|
+
buttonvalue: string;
|
14
|
+
errorMsg: string;
|
15
|
+
noAddressFoundErrorMsg: string;
|
16
|
+
changeText?: string;
|
17
|
+
requiredFieldText: string;
|
18
|
+
changeTextMob?: string;
|
19
|
+
linecheckIcons?: any;
|
20
|
+
speedTooltip: string;
|
21
|
+
dataText: string;
|
22
|
+
speedUpgradeToolTip: string;
|
23
|
+
upgradeText: string;
|
24
|
+
reference?: any;
|
25
|
+
maximumSpeedText?: string;
|
26
|
+
checkoutButtonLabel?: string;
|
27
|
+
}
|
28
|
+
interface ShippingAddressProps {
|
29
|
+
address: string;
|
30
|
+
address2: string;
|
31
|
+
building: string;
|
32
|
+
city: string;
|
33
|
+
country: string;
|
34
|
+
countryCode: string;
|
35
|
+
floor: string;
|
36
|
+
room: string;
|
37
|
+
zipcode: string;
|
38
|
+
}
|
39
|
+
export interface LineCheckSchema {
|
40
|
+
content: LineCheckProps;
|
41
|
+
metadata?: any;
|
42
|
+
shippingAddress?: ShippingAddressProps;
|
43
|
+
onSuccess: () => void;
|
44
|
+
onModemDetailsClick?: () => any;
|
45
|
+
}
|
46
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const fetchAddress: (address: any, isValid: boolean) => Promise<any>;
|
2
|
+
export declare const getLineCheckService: (selectedAdd: any) => unknown;
|
3
|
+
export declare const fetchLineCheck: (payload: any) => Promise<{
|
4
|
+
corelationaId: any;
|
5
|
+
lineCheckResponse: any;
|
6
|
+
eligibleBundle: any;
|
7
|
+
maxUploadDownloadSpeed: any;
|
8
|
+
configEligibleBundle: string[];
|
9
|
+
plannedUpgrade: any;
|
10
|
+
}>;
|
11
|
+
export declare const getCustomerData: () => string | Promise<any>;
|
12
|
+
export declare const automateLineCheck: (setFetchingLineCheck: any, setlinecheckResponse: any, shippingAddress: any, onSuccess?: () => void) => Promise<any>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./LineCheck.css";
|
3
|
+
interface successInterface {
|
4
|
+
content: string | JSX.Element;
|
5
|
+
isLoading: boolean;
|
6
|
+
uploadDownload: MaxDownloadUploadSpeed | Partial<MaxDownloadUploadSpeed>;
|
7
|
+
textContent: any;
|
8
|
+
eligibleBundle: any;
|
9
|
+
tooltipcontent: string | JSX.Element;
|
10
|
+
onModemDetailsClick?: () => any;
|
11
|
+
onSuccess?: any;
|
12
|
+
}
|
13
|
+
interface MaxDownloadUploadSpeed {
|
14
|
+
maxBandwidthDown: number;
|
15
|
+
maxBandwidthUp: number;
|
16
|
+
}
|
17
|
+
declare const Success: ({ content, uploadDownload, textContent, eligibleBundle, tooltipcontent, onModemDetailsClick, onSuccess, }: successInterface) => JSX.Element;
|
18
|
+
export default Success;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const API_BASE_BASEPOINT: any;
|
@@ -4,6 +4,7 @@ export declare const checkGiftOrCashback: (data: any) => any;
|
|
4
4
|
export declare const staticCreateCart: (setShowLoader: {
|
5
5
|
(value: SetStateAction<boolean>): void;
|
6
6
|
(arg0: boolean): void;
|
7
|
-
}, cartEndPoint: string, giftItem: any, uniqueProductData: any, mainContent: any, showPrice: any) => any;
|
7
|
+
}, cartEndPoint: string, giftItem: any, uniqueProductData: any, mainContent: any, showPrice: any, isMobileFlow: boolean, radioValue: any, eligibleBundle: any, address: any, setShowLinecheck: any) => any;
|
8
8
|
export declare const findHeight: (tabIndex: number, cardsLength: number) => void;
|
9
9
|
export declare const combineWithSmartPhone: (showPrice: any, storyContent: any, uniqueProductData: any) => void;
|
10
|
+
export declare const fetchServiceOptions: (entitlement: any, isMobileFlow: boolean) => any;
|
@@ -4,6 +4,8 @@ export interface StaticLinetableSchema {
|
|
4
4
|
setGenericErrorModalDetails: any;
|
5
5
|
metadata: any;
|
6
6
|
loginSuccess?: boolean;
|
7
|
+
changeAddressClicked?: any;
|
8
|
+
linecheckSuccessCallBack?: any;
|
7
9
|
}
|
8
10
|
export interface StaticProductSchema {
|
9
11
|
content: any;
|
@@ -16,6 +18,9 @@ export interface StaticProductSchema {
|
|
16
18
|
indexKey: number;
|
17
19
|
constants: any;
|
18
20
|
mainContent?: any;
|
21
|
+
address?: any;
|
22
|
+
linecheckSuccessCallBack?: any;
|
23
|
+
eligibleBundle?: any;
|
19
24
|
}
|
20
25
|
export interface DynamicPriceSchema {
|
21
26
|
priceCollection: any;
|
@@ -31,6 +36,9 @@ export interface StaticProductContainerSchema {
|
|
31
36
|
loginSuccess?: any;
|
32
37
|
activeIndex: number;
|
33
38
|
mainContent?: any;
|
39
|
+
address?: any;
|
40
|
+
eligibleBundle?: any;
|
41
|
+
linecheckSuccessCallBack?: any;
|
34
42
|
}
|
35
43
|
export interface StaticProductDetailsSchema {
|
36
44
|
content: any;
|
@@ -41,6 +49,8 @@ export interface StaticProductDetailsSchema {
|
|
41
49
|
isMobileFlow: boolean;
|
42
50
|
createCartCall: any;
|
43
51
|
storyContent: any;
|
52
|
+
isAvailable?: boolean;
|
53
|
+
address?: any;
|
44
54
|
}
|
45
55
|
export interface StaticBenefitsSchema {
|
46
56
|
content: any;
|
@@ -53,4 +63,6 @@ export interface CheckoutButtonSchema {
|
|
53
63
|
constants: any;
|
54
64
|
storyContent: any;
|
55
65
|
showPrice: any;
|
66
|
+
isAvailable?: boolean;
|
67
|
+
address?: any;
|
56
68
|
}
|