Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRO] CRO-504/NikitK add types for tradershub banner #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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
}
Loading