@sunrise-upc/mobile-prod-card 5.0.3 → 5.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,14 @@
1
1
  import { SetStateAction } from 'react';
2
+ import { PegaProductRequestBase } from '../lineTable/lineTable.types';
2
3
  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;
3
5
  export declare const checkGiftOrCashback: (data: any) => any;
4
6
  export declare const staticCreateCart: (setShowLoader: {
5
7
  (value: SetStateAction<boolean>): void;
6
8
  (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, lineCheckCallBack: any, enableP2P: any, P2PData: any, content: any, tvOptions?: any) => any;
9
+ }, cartEndPoint: string, giftItem: any, uniqueProductData: any, mainContent: any, showPrice: any, isMobileFlow: boolean, radioValue: any, eligibleBundle: any, address: any, setShowLinecheck: any, showLinecheck: any, lineCheckCallBack: any, enableP2P: any, P2PData: any, content: any, tvOptions?: any, discountRef?: string) => any;
8
10
  export declare const findHeight: (tabIndex: number, cardsLength: number) => void;
9
11
  export declare const combineWithSmartPhone: (showPrice: any, storyContent: any, uniqueProductData: any, responseData?: any, product?: any) => void;
10
12
  export declare const fetchServiceOptions: (entitlement: any, isMobileFlow: boolean) => any;
11
- export declare const fetchPrice: (product: any, isMobileFlow: boolean, pageType?: string, isConfigurator?: boolean, tvOptions?: any[]) => any;
13
+ export declare const fetchPrice: (product: any, isMobileFlow: boolean, pageType?: string, isConfigurator?: boolean, tvOptions?: any[], pegaIntegration?: boolean) => any;
12
14
  export declare const fetchFilteredProducts: (productList: any, toggleState: any) => any[];
@@ -15,6 +15,9 @@ export interface StaticLinetableSchema {
15
15
  deviceFlowCallBack?: any;
16
16
  ubRatePlanObj?: any;
17
17
  lineCheckOnClear?: any;
18
+ pegaIntegration?: boolean;
19
+ pegaCustomerInterest?: string;
20
+ useStoryblokOrder?: boolean;
18
21
  }
19
22
  export interface StaticProductSchema {
20
23
  content: any;
@@ -46,6 +49,7 @@ export interface StaticProductSchema {
46
49
  selectedRP?: any;
47
50
  continueCart?: any;
48
51
  lineCheckOnClear?: any;
52
+ pegaIntegration?: boolean;
49
53
  }
50
54
  export interface DynamicPriceSchema {
51
55
  priceCollection: any;
@@ -80,6 +84,11 @@ export interface StaticProductContainerSchema {
80
84
  deviceFlowCallBack?: any;
81
85
  ubRatePlanObj?: any;
82
86
  lineCheckOnClear?: any;
87
+ pegaIntegration?: boolean;
88
+ pegaCustomerInterest?: string;
89
+ useStoryblokOrder?: boolean;
90
+ isFetching?: boolean;
91
+ setIsFetching?: any;
83
92
  }
84
93
  export interface StaticProductDetailsSchema {
85
94
  content: any;
@@ -13,6 +13,19 @@ 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
+ }
16
29
  export interface ProductContainerSchema extends ProductTableSchema {
17
30
  activeIndex: any;
18
31
  sbStaticConstants: any;