fleek-track-analytics 1.1.17 → 1.1.19

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.
@@ -1,12 +1,15 @@
1
1
  interface IOrderDetails extends Record<string, unknown> {
2
2
  }
3
- export interface IFirstOrderDiscount {
3
+ export interface IFirstOrderDiscountWeb {
4
4
  source: string;
5
- copyFrom?: 'MODAL' | 'HEADER';
6
- code?: string;
7
- order_value?: string | number;
8
- discount_value?: string | number;
9
- email?: string;
10
- orderDetails?: IOrderDetails;
5
+ copyFrom: 'MODAL' | 'HEADER';
6
+ code: string;
7
+ }
8
+ export interface IFirstOrderDiscountShopify {
9
+ source: string;
10
+ code: string;
11
+ order_value: string | number;
12
+ discount_value: string | number;
13
+ orderDetails: IOrderDetails;
11
14
  }
12
15
  export {};
@@ -16,7 +16,7 @@ import { IScheduleVideoCall } from './event-data-types/schedule-video-call-click
16
16
  import { ICollectionScrollClicked } from './event-data-types/collection-scroll-clicked';
17
17
  import { IPromoteAppBanner } from './event-data-types/promote-app-banner';
18
18
  import { IChatChannelLoad, IChatMessage } from './event-data-types/chat-events';
19
- import { IFirstOrderDiscount } from './event-data-types/first-order-discount-experiment';
19
+ import { IFirstOrderDiscountWeb, IFirstOrderDiscountShopify } from './event-data-types/first-order-discount-experiment';
20
20
  export declare enum EVENT_NAMES {
21
21
  HOME_SCREEN_VIEWED = "homescreen_viewed",
22
22
  PRODUCT_TILE_CLICKED = "product_tile_clicked",
@@ -80,8 +80,8 @@ export interface EVENT_MAP {
80
80
  [EVENT_NAMES.CHANNEL_LOAD_CONCLUDED]: IChatChannelLoad;
81
81
  [EVENT_NAMES.CHAT_MESSAGE_SENT]: IChatMessage;
82
82
  [EVENT_NAMES.CHAT_SEND_MESSAGE_CLOSED]: IChatMessage;
83
- [EVENT_NAMES.FIRST_ORDER_DISCOUNT_BANNER_SHOW]: IFirstOrderDiscount;
84
- [EVENT_NAMES.FIRST_ORDER_DISCOUNT_BANNER_CLOSE]: IFirstOrderDiscount;
85
- [EVENT_NAMES.FIRST_ORDER_DISCOUNT_CODE_COPIED]: IFirstOrderDiscount;
86
- [EVENT_NAMES.DISCOUNT_CODE_APPLIED]: IFirstOrderDiscount;
83
+ [EVENT_NAMES.FIRST_ORDER_DISCOUNT_BANNER_SHOW]: IFirstOrderDiscountWeb;
84
+ [EVENT_NAMES.FIRST_ORDER_DISCOUNT_BANNER_CLOSE]: IFirstOrderDiscountWeb;
85
+ [EVENT_NAMES.FIRST_ORDER_DISCOUNT_CODE_COPIED]: IFirstOrderDiscountWeb;
86
+ [EVENT_NAMES.DISCOUNT_CODE_APPLIED]: IFirstOrderDiscountShopify;
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleek-track-analytics",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {