@sunrise-upc/mobile-prod-card 1.0.26-beta.6 → 1.0.26-beta.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ dataLayer: any;
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const ADDTOCART = "addtocart";
2
+ export declare const BRAND = "Sunrise";
3
+ export declare const CURRENCY = "CHF";
4
+ export declare const STICKYLINETABLE = "Sticky Line Table";
@@ -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;