@sunrise-upc/mobile-prod-card 1.3.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/dist/cjs/Analytics/AnalyticsConstants.d.ts +21 -0
  2. package/dist/cjs/components/BenefitWrapper/BenefitValidate.d.ts +3 -0
  3. package/dist/cjs/components/BenefitWrapper/BenefitWrapper.d.ts +3 -0
  4. package/dist/cjs/components/BenefitWrapper/Benefits.d.ts +1 -0
  5. package/dist/cjs/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +3 -0
  6. package/dist/cjs/components/BenefitWrapper/index.d.ts +1 -0
  7. package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
  8. package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +6 -0
  9. package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +18 -0
  10. package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
  11. package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +3 -0
  12. package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +9 -0
  13. package/dist/cjs/components/LineCheckV3/LineCheckV3.d.ts +3 -0
  14. package/dist/cjs/components/LineCheckV3/LinecheckModal.d.ts +3 -0
  15. package/dist/cjs/components/LineCheckV3/LinecheckService.d.ts +10 -0
  16. package/dist/cjs/components/LineCheckV3/Success.d.ts +16 -0
  17. package/dist/cjs/components/LineCheckV3/api-constants.d.ts +1 -0
  18. package/dist/cjs/components/LineCheckV3/index.d.ts +1 -0
  19. package/dist/cjs/components/StaticLineTable/CheckoutButton.d.ts +4 -0
  20. package/dist/cjs/components/StaticLineTable/DynamicPriceSection.d.ts +4 -0
  21. package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +11 -0
  22. package/dist/cjs/components/StaticLineTable/StaticBenefit.d.ts +4 -0
  23. package/dist/cjs/components/StaticLineTable/StaticLineTable.d.ts +4 -0
  24. package/dist/cjs/components/StaticLineTable/StaticProduct.d.ts +4 -0
  25. package/dist/cjs/components/StaticLineTable/StaticProductContainer.d.ts +4 -0
  26. package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +81 -0
  27. package/dist/cjs/components/StaticLineTable/StaticProductDetails.d.ts +4 -0
  28. package/dist/cjs/components/StaticLineTable/StaticProductDetailsModal.d.ts +14 -0
  29. package/dist/cjs/components/StaticLineTable/StaticProductEntitlement.d.ts +3 -0
  30. package/dist/cjs/components/StaticLineTable/TVChannelModal.d.ts +3 -0
  31. package/dist/cjs/components/StaticLineTable/index.d.ts +1 -0
  32. package/dist/cjs/components/index.d.ts +3 -0
  33. package/dist/cjs/components/lineTable/lineTable.types.d.ts +2 -1
  34. package/dist/cjs/index.js +8 -1
  35. package/dist/cjs/services/LineTableService.d.ts +1 -0
  36. package/dist/cjs/services/LinecheckBasicPropConfig.d.ts +12 -0
  37. package/dist/cjs/services/index.d.ts +1 -0
  38. package/dist/cjs/utils/AnalyticsUtils.d.ts +17 -0
  39. package/dist/cjs/utils/utils.d.ts +1 -0
  40. package/dist/esm/Analytics/AnalyticsConstants.d.ts +21 -0
  41. package/dist/esm/components/BenefitWrapper/BenefitValidate.d.ts +3 -0
  42. package/dist/esm/components/BenefitWrapper/BenefitWrapper.d.ts +3 -0
  43. package/dist/esm/components/BenefitWrapper/Benefits.d.ts +1 -0
  44. package/dist/esm/components/BenefitWrapper/BenefitsValidateWrapper.d.ts +3 -0
  45. package/dist/esm/components/BenefitWrapper/index.d.ts +1 -0
  46. package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
  47. package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +6 -0
  48. package/dist/esm/components/LineCheckV3/GenericModal.d.ts +18 -0
  49. package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
  50. package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +3 -0
  51. package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +9 -0
  52. package/dist/esm/components/LineCheckV3/LineCheckV3.d.ts +3 -0
  53. package/dist/esm/components/LineCheckV3/LinecheckModal.d.ts +3 -0
  54. package/dist/esm/components/LineCheckV3/LinecheckService.d.ts +10 -0
  55. package/dist/esm/components/LineCheckV3/Success.d.ts +16 -0
  56. package/dist/esm/components/LineCheckV3/api-constants.d.ts +1 -0
  57. package/dist/esm/components/LineCheckV3/index.d.ts +1 -0
  58. package/dist/esm/components/StaticLineTable/CheckoutButton.d.ts +4 -0
  59. package/dist/esm/components/StaticLineTable/DynamicPriceSection.d.ts +4 -0
  60. package/dist/esm/components/StaticLineTable/Product.utils.d.ts +11 -0
  61. package/dist/esm/components/StaticLineTable/StaticBenefit.d.ts +4 -0
  62. package/dist/esm/components/StaticLineTable/StaticLineTable.d.ts +4 -0
  63. package/dist/esm/components/StaticLineTable/StaticProduct.d.ts +4 -0
  64. package/dist/esm/components/StaticLineTable/StaticProductContainer.d.ts +4 -0
  65. package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +81 -0
  66. package/dist/esm/components/StaticLineTable/StaticProductDetails.d.ts +4 -0
  67. package/dist/esm/components/StaticLineTable/StaticProductDetailsModal.d.ts +14 -0
  68. package/dist/esm/components/StaticLineTable/StaticProductEntitlement.d.ts +3 -0
  69. package/dist/esm/components/StaticLineTable/TVChannelModal.d.ts +3 -0
  70. package/dist/esm/components/StaticLineTable/index.d.ts +1 -0
  71. package/dist/esm/components/index.d.ts +3 -0
  72. package/dist/esm/components/lineTable/lineTable.types.d.ts +2 -1
  73. package/dist/esm/index.js +8 -1
  74. package/dist/esm/services/LineTableService.d.ts +1 -0
  75. package/dist/esm/services/LinecheckBasicPropConfig.d.ts +12 -0
  76. package/dist/esm/services/index.d.ts +1 -0
  77. package/dist/esm/utils/AnalyticsUtils.d.ts +17 -0
  78. package/dist/esm/utils/utils.d.ts +1 -0
  79. package/dist/index.d.ts +35 -1
  80. package/package.json +3 -2
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const BenefitWrapper: ({ content, metadata, setGenericErrorModalDetails, loginSuccess, basicConfigUrl, setLoginSuccess }: any) => JSX.Element;
3
+ export default BenefitWrapper;
@@ -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,8 @@
1
+ export declare const apiResConstants: {
2
+ X_SUN_CHAL: string;
3
+ CUSTOMER: string;
4
+ ADDR_ENDPOINT: string;
5
+ LINE_CHECK: string;
6
+ CONSTANTSKEYS: string;
7
+ X_SUN_SITEID: string;
8
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A candidate for common component.
3
+ */
4
+ import React from 'react';
5
+ declare const AutoComplete: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
6
+ export default AutoComplete;
@@ -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,2 @@
1
+ import React from 'react';
2
+ export declare const IndividualLineCheck: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const LineCheckInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
3
+ export default LineCheckInput;
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ declare const LineCheckV3: FC<any>;
3
+ export default LineCheckV3;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const LincheckModal: FC<any>;
3
+ export default LincheckModal;
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ import { CheckoutButtonSchema } from './StaticProductDatatypes';
3
+ declare const CheckoutButton: FC<CheckoutButtonSchema>;
4
+ export default CheckoutButton;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { DynamicPriceSchema } from './StaticProductDatatypes';
3
+ declare const DynamicPriceSection: FC<DynamicPriceSchema>;
4
+ export default DynamicPriceSection;
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ import { StaticBenefitsSchema } from './StaticProductDatatypes';
3
+ declare const StaticBenefit: FC<StaticBenefitsSchema>;
4
+ export default StaticBenefit;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { StaticLinetableSchema } from './StaticProductDatatypes';
3
+ declare const StaticLineTable: FC<StaticLinetableSchema>;
4
+ export default StaticLineTable;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { StaticProductSchema } from './StaticProductDatatypes';
3
+ declare const StaticProduct: FC<StaticProductSchema>;
4
+ export default StaticProduct;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { StaticProductContainerSchema } from './StaticProductDatatypes';
3
+ declare const StaticProductContainer: FC<StaticProductContainerSchema>;
4
+ export default StaticProductContainer;
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ import { StaticProductDetailsSchema } from './StaticProductDatatypes';
3
+ declare const StaticProductDetails: FC<StaticProductDetailsSchema>;
4
+ export default StaticProductDetails;
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ declare const StaticProductEntitlement: FC<any>;
3
+ export default StaticProductEntitlement;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const TVChannelModal: FC<any>;
3
+ export default TVChannelModal;
@@ -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: boolean;
13
+ checkVoucher?: boolean;
13
14
  promoIds: string[];
14
15
  }
15
16
  export interface ProductContainerSchema extends ProductTableSchema {