@sunrise-upc/mobile-prod-card 4.7.17 → 4.7.18-beta.1
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.
- package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -0
- package/dist/cjs/components/StaticLineTable/StaticLineTableStore/StaticLineTableProvider.d.ts +21 -0
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
- package/dist/cjs/components/StaticLineTable/TvOptionsContainer.d.ts +1 -1
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +13 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/services/LineTableService.d.ts +3 -1
- package/dist/cjs/services/api-constants.d.ts +2 -0
- package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -0
- package/dist/esm/components/StaticLineTable/StaticLineTableStore/StaticLineTableProvider.d.ts +21 -0
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
- package/dist/esm/components/StaticLineTable/TvOptionsContainer.d.ts +1 -1
- package/dist/esm/components/lineTable/lineTable.types.d.ts +13 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/services/LineTableService.d.ts +3 -1
- package/dist/esm/services/api-constants.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/package.json +5 -2
|
@@ -1,5 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface AppProviderSchema {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface ActionSchema {
|
|
6
|
+
type: string;
|
|
7
|
+
payload: any;
|
|
8
|
+
}
|
|
9
|
+
interface AppContextType {
|
|
10
|
+
store: StaticLineTableProviderSchema;
|
|
11
|
+
dispatch: React.Dispatch<ActionSchema>;
|
|
12
|
+
}
|
|
13
|
+
export interface StaticLineTableProviderSchema {
|
|
14
|
+
ottOptionsApi: [];
|
|
15
|
+
}
|
|
16
|
+
export declare const actionTypes: {
|
|
17
|
+
ottOptionsApi: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const AppContext: React.Context<AppContextType | undefined>;
|
|
20
|
+
declare const StaticLineTableProvider: ({ children }: AppProviderSchema) => JSX.Element;
|
|
21
|
+
export default StaticLineTableProvider;
|
|
@@ -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;
|
|
@@ -77,6 +80,11 @@ export interface StaticProductContainerSchema {
|
|
|
77
80
|
deviceFlowCallBack?: any;
|
|
78
81
|
ubRatePlanObj?: any;
|
|
79
82
|
lineCheckOnClear?: any;
|
|
83
|
+
pegaIntegration?: boolean;
|
|
84
|
+
pegaCustomerInterest?: string;
|
|
85
|
+
useStoryblokOrder?: boolean;
|
|
86
|
+
isFetching?: boolean;
|
|
87
|
+
setIsFetching?: any;
|
|
80
88
|
}
|
|
81
89
|
export interface StaticProductDetailsSchema {
|
|
82
90
|
content: any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const TvOptionsContainer: ({ content,
|
|
2
|
+
declare const TvOptionsContainer: ({ content, constants, metadata, setTvOptionsData }: any) => JSX.Element;
|
|
3
3
|
export default TvOptionsContainer;
|
|
@@ -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;
|