@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.
@@ -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;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ dataLayer: any;
4
+ }
5
+ }
6
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunrise-upc/mobile-prod-card",
3
- "version": "1.0.26-beta.6",
3
+ "version": "1.0.26-beta.8",
4
4
  "description": "Starter project to create reusable functional component",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",