@sunrise-upc/mobile-prod-card 1.0.26-beta.5 → 1.0.26-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +4 -0
- package/dist/cjs/Analytics/items.d.ts +30 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/global.d.ts +6 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +4 -0
- package/dist/esm/Analytics/items.d.ts +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/global.d.ts +6 -0
- package/package.json +1 -1
@@ -0,0 +1,30 @@
|
|
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
|
+
}
|
22
|
+
export interface ecomAddCartInfo {
|
23
|
+
currency: string;
|
24
|
+
value: string | number;
|
25
|
+
items: itemInfoEvent[];
|
26
|
+
}
|
27
|
+
export declare const getItemData: (item: any, data?: any) => itemInfoEvent;
|
28
|
+
export declare const getEcomInfo: (items: any, category?: any, location?: any) => any;
|
29
|
+
export declare const getEcomCartInfo: (items: any, category: any, location: any) => ecomAddCartInfo;
|
30
|
+
export declare const trackEligibleItem: (type: string, prodData?: any, category?: any, location?: any) => void;
|