export declare enum EventType { CLICK = "click" } export declare enum EventCategory { SOCIAL_FEED = "socialFeed" } /** * The values are tied to the backend and how they are received on the frontend. * In the future, `custom_code` should be `customCode` */ export declare enum EventTarget { NEWS = "news", BANNER = "banner", INSTAGRAM = "instagram", YOUTUBE = "youtube", X = "x", PRODUCT = "product", CUSTOM_CODE = "custom_code" } export type AnalyticsEventHeader = { type: EventType; category: EventCategory; target: EventTarget; targetId: number | string | null; }; export type NewsBody = { url: string | null; }; export type BannerBody = { url: string | null; }; export type InstagramBody = { url: string | null; }; export type YoutubeBody = { url: string | null; }; export type XBody = { url: string | null; }; export type ProductBody = { url: string | null; }; export type CustomCodeBody = { url: string | null; }; export type AnalyticsEventBody = NewsBody | BannerBody | InstagramBody | YoutubeBody | XBody | ProductBody | CustomCodeBody; export type AnalyticsEvent = { header: AnalyticsEventHeader; body: AnalyticsEventBody | null; };