From f0ebf7fa71240bf1f731e143624636a0c468f182 Mon Sep 17 00:00:00 2001 From: deriv Date: Mon, 8 Apr 2024 11:24:58 +0300 Subject: [PATCH] feat: add types for tradershub banner --- package.json | 2 +- src/types.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fb56a9a..ee33fcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deriv-com/analytics", - "version": "1.4.13", + "version": "1.4.14", "description": "The analytics package contains all the utility functions used for tracking user events and sending them to the respective platform such as Rudderstack.", "keywords": [ "rudderstack", diff --git a/src/types.ts b/src/types.ts index 97f74e9..1bd9c8b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -342,6 +342,11 @@ type TradersHubOnboardingFormAction = { step_num?: number step_codename?: string } +type TradersHubBannerAction = { + action: 'open' | 'close' | 'click_download' + account_mode: 'demo' | 'real' + banner_name: 'forex-ebook' | 'stock-ebook' | 'cryptocurrencies-ebook' | 'synthetic-indices-ebook' | 'chart-patterns' +} type UpgradeMT5BannerAction = { action: 'open' | 'push_cta_upgrade' } @@ -367,5 +372,6 @@ export type TEvents = { ce_market_types_form: MarketTypesFormAction ce_reports_form: ReportsFormAction ce_tradershub_onboarding_form: TradersHubOnboardingFormAction + ce_tradershub_banner: TradersHubBannerAction ce_upgrade_mt5_banner: UpgradeMT5BannerAction }