fleek-track-analytics 1.8.0 → 1.8.2
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.
- package/lib/event-map/event-data-types/bnpl/bnpl-order-intent.d.ts +1 -1
- package/lib/event-map/event-data-types/{add-to-cart.d.ts → cart/add-to-cart.d.ts} +2 -0
- package/lib/event-map/event-data-types/cart/add-to-cart.js.map +1 -0
- package/lib/event-map/event-data-types/{cart-viewed.d.ts → cart/cart-viewed.d.ts} +2 -0
- package/lib/event-map/event-data-types/cart/cart-viewed.js.map +1 -0
- package/lib/event-map/event-data-types/{checkout-clicked.d.ts → cart/checkout-clicked.d.ts} +2 -0
- package/lib/event-map/event-data-types/cart/checkout-clicked.js.map +1 -0
- package/lib/event-map/event-data-types/{payment-method-selected.d.ts → cart/payment-method-selected.d.ts} +2 -0
- package/lib/event-map/event-data-types/cart/payment-method-selected.js.map +1 -0
- package/lib/event-map/event-data-types/cart/types.d.ts +10 -0
- package/lib/event-map/event-data-types/cart/types.js +3 -0
- package/lib/event-map/event-data-types/cart/types.js.map +1 -0
- package/lib/event-map/event-data-types/first-order-discount-experiment.d.ts +3 -0
- package/lib/event-map/event-map.d.ts +7 -5
- package/lib/event-map/event-map.js +1 -0
- package/lib/event-map/event-map.js.map +1 -1
- package/lib/track-analytics-types.d.ts +5 -0
- package/package.json +1 -1
- package/lib/event-map/event-data-types/add-to-cart.js.map +0 -1
- package/lib/event-map/event-data-types/cart-viewed.js.map +0 -1
- package/lib/event-map/event-data-types/checkout-clicked.js.map +0 -1
- package/lib/event-map/event-data-types/payment-method-selected.js.map +0 -1
- /package/lib/event-map/event-data-types/{add-to-cart.js → cart/add-to-cart.js} +0 -0
- /package/lib/event-map/event-data-types/{cart-viewed.js → cart/cart-viewed.js} +0 -0
- /package/lib/event-map/event-data-types/{checkout-clicked.js → cart/checkout-clicked.js} +0 -0
- /package/lib/event-map/event-data-types/{payment-method-selected.js → cart/payment-method-selected.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICheckoutClicked } from '../checkout-clicked';
|
|
1
|
+
import { ICheckoutClicked } from '../cart/checkout-clicked';
|
|
2
2
|
export interface IBNPLOrderIntent extends ICheckoutClicked {
|
|
3
3
|
status: 'validation_failed' | 'verification_failed' | 'error_occurred' | 'payment_url_created';
|
|
4
4
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CartAttributes } from './types';
|
|
1
2
|
export interface IAddToCart {
|
|
2
3
|
vendor?: string;
|
|
3
4
|
product_id: string;
|
|
@@ -11,4 +12,5 @@ export interface IAddToCart {
|
|
|
11
12
|
bnpl_enabled?: boolean;
|
|
12
13
|
bnpl_onboarded?: boolean;
|
|
13
14
|
bnpl_credit_limit?: number;
|
|
15
|
+
cart_attributes?: CartAttributes;
|
|
14
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-to-cart.js","sourceRoot":"","sources":["../../../../src/event-map/event-data-types/cart/add-to-cart.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CartAttributes } from "./types";
|
|
1
2
|
export interface ICartViewed {
|
|
2
3
|
cart_id: string;
|
|
3
4
|
number_of_items: number;
|
|
@@ -6,4 +7,5 @@ export interface ICartViewed {
|
|
|
6
7
|
bnpl_onboarded?: boolean;
|
|
7
8
|
bnpl_credit_limit?: number;
|
|
8
9
|
fleek_domain_referrer?: string;
|
|
10
|
+
cart_attributes?: CartAttributes;
|
|
9
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-viewed.js","sourceRoot":"","sources":["../../../../src/event-map/event-data-types/cart/cart-viewed.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPaymentMethod } from './payment-method-selected';
|
|
2
|
+
import { CartAttributes } from './types';
|
|
2
3
|
interface ICheckoutProducts {
|
|
3
4
|
id?: string;
|
|
4
5
|
title: string;
|
|
@@ -22,5 +23,6 @@ export interface ICheckoutClicked {
|
|
|
22
23
|
paymentMethod?: IPaymentMethod;
|
|
23
24
|
qc_opted_out_products?: Array<string>;
|
|
24
25
|
fleek_domain_referrer?: string;
|
|
26
|
+
cart_attributes?: CartAttributes;
|
|
25
27
|
}
|
|
26
28
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-clicked.js","sourceRoot":"","sources":["../../../../src/event-map/event-data-types/cart/checkout-clicked.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CartAttributes } from './types';
|
|
1
2
|
export declare enum IPaymentMethod {
|
|
2
3
|
FleekCredit = "FleekCredit",
|
|
3
4
|
Card = "Card"
|
|
@@ -10,4 +11,5 @@ export interface IPaymentMethodSelected {
|
|
|
10
11
|
bnpl_onboarded?: boolean;
|
|
11
12
|
bnpl_credit_limit?: number;
|
|
12
13
|
methodType?: IPaymentMethod;
|
|
14
|
+
cart_attributes?: CartAttributes;
|
|
13
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-selected.js","sourceRoot":"","sources":["../../../../src/event-map/event-data-types/cart/payment-method-selected.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AnyDataObject, AnyDataType, tAPP } from 'src/track-analytics-types';
|
|
2
|
+
export interface CartAttributes {
|
|
3
|
+
platform?: tAPP;
|
|
4
|
+
analytics_identifier?: string;
|
|
5
|
+
ads_params?: AnyDataObject;
|
|
6
|
+
url_params?: AnyDataObject;
|
|
7
|
+
first_order_promo_code?: string;
|
|
8
|
+
device_uid?: string;
|
|
9
|
+
[key: string]: AnyDataType;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/event-map/event-data-types/cart/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { IAddToCart } from './event-data-types/add-to-cart';
|
|
2
|
-
import { ICartViewed } from './event-data-types/cart-viewed';
|
|
3
|
-
import { ICheckoutClicked } from './event-data-types/checkout-clicked';
|
|
1
|
+
import { IAddToCart } from './event-data-types/cart/add-to-cart';
|
|
4
2
|
import { IHomeScreenViewed } from './event-data-types/home-screen-viewed';
|
|
5
3
|
import { IMessageClicked } from './event-data-types/message-clicked';
|
|
6
4
|
import { IProductDetailPageViewed } from './event-data-types/product-detail-page-viewed';
|
|
@@ -16,11 +14,10 @@ import { IScheduleVideoCall } from './event-data-types/schedule-video-call-click
|
|
|
16
14
|
import { ICollectionScrollClicked } from './event-data-types/collection-scroll-clicked';
|
|
17
15
|
import { IPromoteAppBanner } from './event-data-types/promote-app-banner';
|
|
18
16
|
import { IChatChannelLoad, IChatIconClicked, IChatMessage } from './event-data-types/chat-events';
|
|
19
|
-
import { IFirstOrderDiscount, IFirstOrderDiscoutCopy, IFirstOrderDiscountShopify, IFirstOrderDiscountApplyFail, IEmailEntered } from './event-data-types/first-order-discount-experiment';
|
|
17
|
+
import { IFirstOrderDiscount, IFirstOrderDiscoutCopy, IFirstOrderDiscountShopify, IFirstOrderDiscountApplyFail, IEmailEntered, IBannerAppDownloadButtonClick } from './event-data-types/first-order-discount-experiment';
|
|
20
18
|
import { IVendorPageViewed, IVendorPageVisit } from './event-data-types/vendor-page-visit';
|
|
21
19
|
import { IFollowClick, IUnFollowClick } from './event-data-types/follow-click';
|
|
22
20
|
import { IInitiate, IViewMyOffers } from './event-data-types/make-an-offer';
|
|
23
|
-
import { IPaymentMethodSelected } from './event-data-types/payment-method-selected';
|
|
24
21
|
import { IAccountScreenViewed } from './event-data-types/account-screen-viewed';
|
|
25
22
|
import { IBNPLBannerClicked } from './event-data-types/bnpl/bnpl-banner-clicked';
|
|
26
23
|
import { IBNPLBannerShown } from './event-data-types/bnpl/bnpl-banner-shown';
|
|
@@ -59,6 +56,9 @@ import { IBuyerReferralHowItWorksClicked } from './event-data-types/buyer-referr
|
|
|
59
56
|
import { IBuyerReferralRedemptionCodeCopyClicked } from './event-data-types/buyer-referral/buyer-referral-redemption-code-copy-clicked';
|
|
60
57
|
import { IBuyerReferralScreenViewed } from './event-data-types/buyer-referral/buyer-referral-screen-viewed';
|
|
61
58
|
import { IBuyerReferralShareCodeClicked } from './event-data-types/buyer-referral/buyer-referral-share-code-clicked';
|
|
59
|
+
import { ICartViewed } from './event-data-types/cart/cart-viewed';
|
|
60
|
+
import { ICheckoutClicked } from './event-data-types/cart/checkout-clicked';
|
|
61
|
+
import { IPaymentMethodSelected } from './event-data-types/cart/payment-method-selected';
|
|
62
62
|
export declare enum EVENT_NAMES {
|
|
63
63
|
HOME_SCREEN_VIEWED = "homescreen_viewed",
|
|
64
64
|
PRODUCT_TILE_CLICKED = "product_tile_clicked",
|
|
@@ -106,6 +106,7 @@ export declare enum EVENT_NAMES {
|
|
|
106
106
|
DISCOUNT_CODE_APPLIED = "discount_code_applied",
|
|
107
107
|
DISCOUNT_CODE_APPLY_FAILED = "discount_code_apply_failed",
|
|
108
108
|
EMAIL_ENTERED = "email_entered",
|
|
109
|
+
BANNER_APP_DOWNLOAD_BUTTON_CLICK = "banner_app_download_button_click",
|
|
109
110
|
TOP_NAV_SUPPLY_PAGE_CLICK = "top_nav_supply_page_click",
|
|
110
111
|
SHOPIFY_CHECKOUT_LOADED = "shopify-checkout-loaded",
|
|
111
112
|
SHOPIFY_CHECKOUT_SUCCESS = "shopify-purchase-success",
|
|
@@ -229,4 +230,5 @@ export interface EVENT_MAP {
|
|
|
229
230
|
[EVENT_NAMES.BUYER_REFERRAL_REDEMPTION_CODE_COPY_CLICKED]: IBuyerReferralRedemptionCodeCopyClicked;
|
|
230
231
|
[EVENT_NAMES.BUYER_REFERRAL_SCREEN_VIEWED]: IBuyerReferralScreenViewed;
|
|
231
232
|
[EVENT_NAMES.BUYER_REFERRAL_SHARE_CODE_CLICKED]: IBuyerReferralShareCodeClicked;
|
|
233
|
+
[EVENT_NAMES.BANNER_APP_DOWNLOAD_BUTTON_CLICK]: IBannerAppDownloadButtonClick;
|
|
232
234
|
}
|
|
@@ -49,6 +49,7 @@ var EVENT_NAMES;
|
|
|
49
49
|
EVENT_NAMES["DISCOUNT_CODE_APPLIED"] = "discount_code_applied";
|
|
50
50
|
EVENT_NAMES["DISCOUNT_CODE_APPLY_FAILED"] = "discount_code_apply_failed";
|
|
51
51
|
EVENT_NAMES["EMAIL_ENTERED"] = "email_entered";
|
|
52
|
+
EVENT_NAMES["BANNER_APP_DOWNLOAD_BUTTON_CLICK"] = "banner_app_download_button_click";
|
|
52
53
|
EVENT_NAMES["TOP_NAV_SUPPLY_PAGE_CLICK"] = "top_nav_supply_page_click";
|
|
53
54
|
EVENT_NAMES["SHOPIFY_CHECKOUT_LOADED"] = "shopify-checkout-loaded";
|
|
54
55
|
EVENT_NAMES["SHOPIFY_CHECKOUT_SUCCESS"] = "shopify-purchase-success";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-map.js","sourceRoot":"","sources":["../../src/event-map/event-map.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"event-map.js","sourceRoot":"","sources":["../../src/event-map/event-map.ts"],"names":[],"mappings":";;;AAqEA,IAAY,WAyHX;AAzHD,WAAY,WAAW;IACrB,uDAAwC,CAAA;IACxC,4DAA6C,CAAA;IAC7C,wEAAyD,CAAA;IACzD,4DAA6C,CAAA;IAC7C,0CAA2B,CAAA;IAC3B,sEAAuD,CAAA;IACvD,sDAAuC,CAAA;IACvC,wEAAyD,CAAA;IACzD,8DAA+C,CAAA;IAG/C,0CAA2B,CAAA;IAC3B,oDAAqC,CAAA;IACrC,kEAAmD,CAAA;IAGnD,8DAA+C,CAAA;IAC/C,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GjD,8CAA+B,CAAA;IAC/B,0CAA2B,CAAA;IAC3B,gDAAiC,CAAA;IACjC,0CAA2B,CAAA;IAC3B,gDAAiC,CAAA;IACjC,wDAAyC,CAAA;IACzC,0CAA2B,CAAA;IAG3B,4EAA6D,CAAA;IAC7D,0FAA2E,CAAA;IAC3E,sFAAuE,CAAA;IACvE,oFAAqE,CAAA;IACrE,0GAA2F,CAAA;AAC7F,CAAC,EAzHW,WAAW,2BAAX,WAAW,QAyHtB"}
|
|
@@ -9,3 +9,8 @@ export interface IAnalyticsInit {
|
|
|
9
9
|
debug?: boolean;
|
|
10
10
|
errorHandler: (e: unknown) => void;
|
|
11
11
|
}
|
|
12
|
+
export type AnyDataType = string | boolean | number | null | undefined | AnyDataArray | AnyDataObject;
|
|
13
|
+
export interface AnyDataArray extends Array<AnyDataType> {
|
|
14
|
+
}
|
|
15
|
+
export interface AnyDataObject extends Record<string, AnyDataType> {
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-to-cart.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/add-to-cart.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart-viewed.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/cart-viewed.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-clicked.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/checkout-clicked.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-selected.js","sourceRoot":"","sources":["../../../src/event-map/event-data-types/payment-method-selected.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|