@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.
Files changed (40) hide show
  1. package/dist/cjs/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
  2. package/dist/cjs/components/LineCheckV3/AutoComplete.d.ts +7 -0
  3. package/dist/cjs/components/LineCheckV3/GenericModal.d.ts +17 -0
  4. package/dist/cjs/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
  5. package/dist/cjs/components/LineCheckV3/LineCheck.types.d.ts +46 -0
  6. package/dist/cjs/components/LineCheckV3/LineCheckInput.d.ts +3 -0
  7. package/dist/cjs/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
  8. package/dist/cjs/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
  9. package/dist/cjs/components/LineCheckV3/LineCheckV3.d.ts +5 -0
  10. package/dist/cjs/components/LineCheckV3/LinecheckModal.d.ts +3 -0
  11. package/dist/cjs/components/LineCheckV3/LinecheckService.d.ts +12 -0
  12. package/dist/cjs/components/LineCheckV3/Success.d.ts +18 -0
  13. package/dist/cjs/components/LineCheckV3/api-constants.d.ts +1 -0
  14. package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -1
  15. package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +12 -0
  16. package/dist/cjs/components/StaticLineTable/TVChannelModal.d.ts +3 -0
  17. package/dist/cjs/index.js +8 -1
  18. package/dist/cjs/services/LinecheckBasicPropConfig.d.ts +12 -0
  19. package/dist/cjs/services/index.d.ts +1 -0
  20. package/dist/esm/components/LineCheckV3/APIResourceConstants.d.ts +8 -0
  21. package/dist/esm/components/LineCheckV3/AutoComplete.d.ts +7 -0
  22. package/dist/esm/components/LineCheckV3/GenericModal.d.ts +17 -0
  23. package/dist/esm/components/LineCheckV3/IndividualLineCheck.d.ts +2 -0
  24. package/dist/esm/components/LineCheckV3/LineCheck.types.d.ts +46 -0
  25. package/dist/esm/components/LineCheckV3/LineCheckInput.d.ts +3 -0
  26. package/dist/esm/components/LineCheckV3/LineCheckLoader.d.ts +3 -0
  27. package/dist/esm/components/LineCheckV3/LineCheckOverlay.d.ts +6 -0
  28. package/dist/esm/components/LineCheckV3/LineCheckV3.d.ts +5 -0
  29. package/dist/esm/components/LineCheckV3/LinecheckModal.d.ts +3 -0
  30. package/dist/esm/components/LineCheckV3/LinecheckService.d.ts +12 -0
  31. package/dist/esm/components/LineCheckV3/Success.d.ts +18 -0
  32. package/dist/esm/components/LineCheckV3/api-constants.d.ts +1 -0
  33. package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -1
  34. package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +12 -0
  35. package/dist/esm/components/StaticLineTable/TVChannelModal.d.ts +3 -0
  36. package/dist/esm/index.js +8 -1
  37. package/dist/esm/services/LinecheckBasicPropConfig.d.ts +12 -0
  38. package/dist/esm/services/index.d.ts +1 -0
  39. package/dist/index.d.ts +16 -1
  40. package/package.json +3 -2
@@ -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,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,2 @@
1
+ import React from "react";
2
+ export declare const IndividualLineCheck: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
@@ -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,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,3 @@
1
+ /// <reference types="react" />
2
+ declare const LineCheckLoader: () => JSX.Element;
3
+ export default LineCheckLoader;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface LineCheckOverlaySchema {
3
+ props: any;
4
+ }
5
+ declare const LineCheckOverlay: ({ props }: LineCheckOverlaySchema) => JSX.Element;
6
+ export default LineCheckOverlay;
@@ -0,0 +1,5 @@
1
+ import { FC } from "react";
2
+ import "./LineCheck.css";
3
+ import { LineCheckSchema } from "./LineCheck.types";
4
+ declare const LineCheckV3: FC<LineCheckSchema>;
5
+ 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,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
  }
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const TVChannelModal: FC<any>;
3
+ export default TVChannelModal;