@sunrise-upc/mobile-prod-card 1.0.26 → 1.0.27-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +15 -0
- package/dist/cjs/Analytics/items.d.ts +32 -0
- package/dist/cjs/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
- package/dist/cjs/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
- package/dist/cjs/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
- package/dist/cjs/components/ResponsiveRow/row.d.ts +1 -0
- package/dist/cjs/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/models/Analytics/items.d.ts +40 -0
- package/dist/cjs/services/LineTableService.d.ts +1 -1
- package/dist/cjs/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/cjs/utils/global.d.ts +6 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +15 -0
- package/dist/esm/Analytics/items.d.ts +32 -0
- package/dist/esm/components/ProductDetailsV3/CashBackV2/CashbackV2.d.ts +3 -0
- package/dist/esm/components/ProductDetailsV3/ProductDetailsModal/ProductDetailsV2.d.ts +2 -1
- package/dist/esm/components/ProductTeaser/ProductTeaserSlides.d.ts +1 -0
- package/dist/esm/components/ResponsiveRow/row.d.ts +1 -0
- package/dist/esm/components/lineTable/OrderButton.d.ts +1 -1
- package/dist/esm/components/lineTable/lineTable.types.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/Analytics/items.d.ts +40 -0
- package/dist/esm/services/LineTableService.d.ts +1 -1
- package/dist/esm/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/esm/utils/global.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/components/ProductDetailsV3/BundleEntitlementValueV3.d.ts +0 -3
- package/dist/esm/components/ProductDetailsV3/BundleEntitlementValueV3.d.ts +0 -3
@@ -0,0 +1,40 @@
|
|
1
|
+
export interface itemInfoEvent {
|
2
|
+
item_id: string;
|
3
|
+
item_name: string;
|
4
|
+
affiliation: string | number;
|
5
|
+
coupon: string | number;
|
6
|
+
discount: number;
|
7
|
+
index: number;
|
8
|
+
item_brand: string;
|
9
|
+
item_category: string;
|
10
|
+
item_category2: string;
|
11
|
+
item_category3: string;
|
12
|
+
item_category4: string;
|
13
|
+
item_category5: string;
|
14
|
+
item_list_id: string;
|
15
|
+
item_list_name: string;
|
16
|
+
item_variant: string;
|
17
|
+
location_id: string | number;
|
18
|
+
price: number;
|
19
|
+
quantity: number;
|
20
|
+
promotion_id: string;
|
21
|
+
item_available?: string;
|
22
|
+
}
|
23
|
+
export interface ecomViewCartInfo {
|
24
|
+
item_list_id: string;
|
25
|
+
item_list_name: string;
|
26
|
+
items: itemInfoEvent;
|
27
|
+
}
|
28
|
+
export interface ecomAddCartInfo {
|
29
|
+
currency: string;
|
30
|
+
value: string | number;
|
31
|
+
items: itemInfoEvent[];
|
32
|
+
}
|
33
|
+
export declare const getItemData: (item: any, data?: any, itemType?: any, isAvailable?: any) => itemInfoEvent;
|
34
|
+
export declare const getEcomInfo: (items: any, category?: any, location?: any, eligibleBundle?: any) => any;
|
35
|
+
export declare const getViewCartInfo: (items: any, category: any, location: any) => ecomViewCartInfo;
|
36
|
+
export declare const getEcomCartInfo: (items: any, category: any, location: any, eligibleBundle?: any) => any;
|
37
|
+
export declare const trackEligibleItem: (type: string, prodData?: any, category?: any, location?: any, eligibleBundle?: any) => void;
|
38
|
+
export declare const getItemInfo: (products: any, showPrice: any, isEligible?: any) => itemInfoEvent;
|
39
|
+
export declare const getBundleItemInfo: (products: any, showPrice: any, isEligible?: any) => any;
|
40
|
+
export declare const getItemEventValueArray: (products: any, showPrice: any, isEligible?: any) => void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const fetchCountryList: (name: string, lang: string, url: string, TTL: number) => Promise<any>;
|
2
2
|
export declare const fetchOfferingDataV2: (params: any, url: any) => Promise<any>;
|
3
|
-
export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string,
|
3
|
+
export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string, chooseGift?: any) => Promise<any>;
|
4
4
|
export declare const fetchLinetableContent: (slugurl: string, params: any) => Promise<any>;
|
5
5
|
export declare const getStaticContent: (language: any, endPoints: any) => Promise<any>;
|
6
6
|
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any) => Promise<any>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const trackNewDatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sunrise-upc/mobile-prod-card",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.27-beta.0",
|
4
4
|
"description": "Starter project to create reusable functional component",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"release:major": "npm version major && npm publish --access public --tag latest",
|
20
20
|
"release:minor": "npm version minor && npm publish --access public --tag latest",
|
21
21
|
"release:patch": "npm version patch && npm publish --access public --tag latest",
|
22
|
-
"release:prerelease": "npm version
|
22
|
+
"release:prerelease": "npm version prerelease --preid=beta && npm publish --access public --tag latest"
|
23
23
|
},
|
24
24
|
"repository": {
|
25
25
|
"type": "git",
|