@sunrise-upc/mobile-prod-card 1.0.26-beta.6 → 1.0.26-beta.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +12 -0
- package/dist/cjs/Analytics/items.d.ts +30 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/models/Analytics/items.d.ts +40 -0
- 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 +12 -0
- package/dist/esm/Analytics/items.d.ts +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/Analytics/items.d.ts +40 -0
- package/dist/esm/utils/AnalyticsUtils.d.ts +1 -0
- package/dist/esm/utils/global.d.ts +6 -0
- package/package.json +1 -1
@@ -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) => itemInfoEvent;
|
34
|
+
export declare const getEcomInfo: (items: any, category?: any, location?: 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) => ecomAddCartInfo;
|
37
|
+
export declare const trackEligibleItem: (type: string, prodData?: any, category?: any, location?: 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;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const trackNewDatalayerEvent: (event: string, eventName: string, eventInfo?: any) => void;
|
package/package.json
CHANGED