Skip to content

Commit

Permalink
Merge pull request #139 from vinu-deriv/Vinu/dtra-2156/add-event-trac…
Browse files Browse the repository at this point in the history
…king

feat: add types for dtrader tracking
  • Loading branch information
prince-deriv authored Oct 30, 2024
2 parents 48af902 + 3dfb3ce commit f00ea79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ type ContractsSetupForm = {
action: 'run_contract'
switcher_duration_mode_name?: string
switcher_stakepayout_mode_name?: string
market_name?: string
trade_name?: string
contract_id?: number
}
)
type TradersHubOnboardingFormAction = {
Expand Down Expand Up @@ -385,7 +388,7 @@ type TCashierDepositOnboardingFormAction = {
login_id?: string
}

type TNewDtraderTradeForm = {
type TDtraderTradeForm = {
action?: 'open' | 'select_trade_type' | 'select_market_type' | 'open_guide' | 'run_contract' | 'close_contract'
trade_name?: string
market_name?: string
Expand Down Expand Up @@ -420,5 +423,5 @@ export type TEvents = {
ce_wallets_homepage_form: WalletsHomepageFormAction
ce_notification_form: TNotificationsTrayForm
ce_cashier_deposit_onboarding_form: TCashierDepositOnboardingFormAction
ce_new_dtrader_trade_form: TNewDtraderTradeForm
ce_dtrader_trade_form: TDtraderTradeForm
}

0 comments on commit f00ea79

Please sign in to comment.