fleek-track-analytics 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ export interface IInformationInquired {
2
+ customer_id: string;
3
+ email: string;
4
+ billing_country: string;
5
+ billing_city?: string;
6
+ access_country: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=information-inquired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"information-inquired.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/information-inquired.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface IMessageClicked {
2
+ customer_id: string;
3
+ email: string;
4
+ billing_country: string;
5
+ billing_city?: string;
6
+ access_country: string;
7
+ vendor_handle: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=message-clicked.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-clicked.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/message-clicked.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface ISaleFilterClick {
2
+ filter_state: boolean;
3
+ customer_id: string;
4
+ email: string;
5
+ billing_country: string;
6
+ billing_city?: string;
7
+ access_country: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sale-filter-click.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sale-filter-click.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/sale-filter-click.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface ISearchInitiated {
2
+ searchTerm?: string;
3
+ customer_id: string;
4
+ email: string;
5
+ billing_country: string;
6
+ billing_city?: string;
7
+ access_country: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=search-initiated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-initiated.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/search-initiated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface ISupplierClick {
2
+ customer_id: string;
3
+ email: string;
4
+ billing_country: string;
5
+ billing_city?: string;
6
+ access_country: string;
7
+ vendor_handle: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=supplier-click.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-click.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/supplier-click.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface ITopNavSupplyPageClick {
2
+ customer_id: string;
3
+ email: string;
4
+ billing_country: string;
5
+ billing_city?: string;
6
+ access_country: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=top-nav-supply-page-click.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-nav-supply-page-click.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/top-nav-supply-page-click.ts"],"names":[],"mappings":""}
@@ -2,9 +2,15 @@ import { IAddToCart } from './event-data-types/add-to-cart';
2
2
  import { ICartViewed } from './event-data-types/cart-viewed';
3
3
  import { ICheckoutClicked } from './event-data-types/checkout-clicked';
4
4
  import { IHomeScreenViewed } from './event-data-types/home-screen-viewed';
5
- import { INotificationClicked } from './event-data-types/notification-clicked';
5
+ import { IMessageClicked } from './event-data-types/message-clicked';
6
6
  import { IProductDetailPageViewed } from './event-data-types/product-detail-page-viewed';
7
7
  import { IProductTileClicked } from './event-data-types/product-tile-clicked';
8
+ import { ISaleFilterClick } from './event-data-types/sale-filter-click';
9
+ import { IInformationInquired } from './event-data-types/information-inquired';
10
+ import { ISearchInitiated } from './event-data-types/search-initiated';
11
+ import { ISupplierClick } from './event-data-types/supplier-click';
12
+ import { ITopNavSupplyPageClick } from './event-data-types/top-nav-supply-page-click';
13
+ import { INotificationClicked } from './event-data-types/notification-clicked';
8
14
  import { IShopifyCheckoutEvent } from './event-data-types/shopify-checkout';
9
15
  export declare enum EVENT_NAMES {
10
16
  HOME_SCREEN_VIEWED = "homescreen_viewed",
@@ -14,6 +20,12 @@ export declare enum EVENT_NAMES {
14
20
  ADD_TO_CART = "add_to_cart",
15
21
  CART_VIEWED = "cart_viewed",
16
22
  CHECKOUT_CLICKED = "checkout_clicked",
23
+ SUPPLIER_CLICK = "supplier_click",
24
+ MESSAGE_CLICKED = "message_clicked",
25
+ SEARCH_INITIATED = "search_initiated",
26
+ SALE_FILTER_CLICK = "sale_filter_click",
27
+ INFORMATION_INQUIRED = "information_inquired",
28
+ TOP_NAV_SUPPLY_PAGE_CLICK = "top_nav_supply_page_click",
17
29
  SHOPIFY_CHECKOUT_LOADED = "shopify-checkout-loaded",
18
30
  SHOPIFY_CHECKOUT_SUCCESS = "shopify-purchase-success",
19
31
  SHOPIFY_CHECKIUT_STOCK_PROBLEM = "shopify-stock=problem",
@@ -27,6 +39,12 @@ export interface EVENT_MAP {
27
39
  [EVENT_NAMES.ADD_TO_CART]: IAddToCart;
28
40
  [EVENT_NAMES.CART_VIEWED]: ICartViewed;
29
41
  [EVENT_NAMES.CHECKOUT_CLICKED]: ICheckoutClicked;
42
+ [EVENT_NAMES.SUPPLIER_CLICK]: ISupplierClick;
43
+ [EVENT_NAMES.MESSAGE_CLICKED]: IMessageClicked;
44
+ [EVENT_NAMES.SEARCH_INITIATED]: ISearchInitiated;
45
+ [EVENT_NAMES.SALE_FILTER_CLICK]: ISaleFilterClick;
46
+ [EVENT_NAMES.INFORMATION_INQUIRED]: IInformationInquired;
47
+ [EVENT_NAMES.TOP_NAV_SUPPLY_PAGE_CLICK]: ITopNavSupplyPageClick;
30
48
  [EVENT_NAMES.ADD_TO_CART_INTIATED]: IAddToCart;
31
49
  [EVENT_NAMES.SHOPIFY_CHECKOUT_LOADED]: IShopifyCheckoutEvent;
32
50
  [EVENT_NAMES.SHOPIFY_CHECKOUT_SUCCESS]: IShopifyCheckoutEvent;
@@ -10,6 +10,12 @@ var EVENT_NAMES;
10
10
  EVENT_NAMES["ADD_TO_CART"] = "add_to_cart";
11
11
  EVENT_NAMES["CART_VIEWED"] = "cart_viewed";
12
12
  EVENT_NAMES["CHECKOUT_CLICKED"] = "checkout_clicked";
13
+ EVENT_NAMES["SUPPLIER_CLICK"] = "supplier_click";
14
+ EVENT_NAMES["MESSAGE_CLICKED"] = "message_clicked";
15
+ EVENT_NAMES["SEARCH_INITIATED"] = "search_initiated";
16
+ EVENT_NAMES["SALE_FILTER_CLICK"] = "sale_filter_click";
17
+ EVENT_NAMES["INFORMATION_INQUIRED"] = "information_inquired";
18
+ EVENT_NAMES["TOP_NAV_SUPPLY_PAGE_CLICK"] = "top_nav_supply_page_click";
13
19
  EVENT_NAMES["SHOPIFY_CHECKOUT_LOADED"] = "shopify-checkout-loaded";
14
20
  EVENT_NAMES["SHOPIFY_CHECKOUT_SUCCESS"] = "shopify-purchase-success";
15
21
  EVENT_NAMES["SHOPIFY_CHECKIUT_STOCK_PROBLEM"] = "shopify-stock=problem";
@@ -1 +1 @@
1
- {"version":3,"file":"event-map.js","sourceRoot":"","sources":["../../src/event-map/event-map.ts"],"names":[],"mappings":";;;AASA,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,uDAAwC,CAAA;IACxC,4DAA6C,CAAA;IAC7C,wEAAyD,CAAA;IACzD,4DAA6C,CAAA;IAC7C,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,oDAAqC,CAAA;IACrC,kEAAmD,CAAA;IACnD,oEAAqD,CAAA;IACrD,uEAAwD,CAAA;IACxD,4DAA6C,CAAA;IAC7C,sEAAuD,CAAA;AACzD,CAAC,EAbW,WAAW,2BAAX,WAAW,QAatB"}
1
+ {"version":3,"file":"event-map.js","sourceRoot":"","sources":["../../src/event-map/event-map.ts"],"names":[],"mappings":";;;AAeA,IAAY,WAoBX;AApBD,WAAY,WAAW;IACrB,uDAAwC,CAAA;IACxC,4DAA6C,CAAA;IAC7C,wEAAyD,CAAA;IACzD,4DAA6C,CAAA;IAC7C,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,oDAAqC,CAAA;IAErC,gDAAiC,CAAA;IACjC,kDAAmC,CAAA;IACnC,oDAAqC,CAAA;IACrC,sDAAuC,CAAA;IACvC,4DAA6C,CAAA;IAC7C,sEAAuD,CAAA;IACvD,kEAAmD,CAAA;IACnD,oEAAqD,CAAA;IACrD,uEAAwD,CAAA;IACxD,4DAA6C,CAAA;IAC7C,sEAAuD,CAAA;AACzD,CAAC,EApBW,WAAW,2BAAX,WAAW,QAoBtB"}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "fleek-track-analytics",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {
7
7
  ".": "./lib/index.js",
8
8
  "./react-native": "./lib/react-native/index.js",
9
9
  "./lib/web": "./lib/web/index.js",
10
- "./lib/node": "./lib/node/index.js"
10
+ "./lib/node": "./lib/node/index.js",
11
+ "./lib/segment-exports": "./lib/segment-exports"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",