@deriv-com/analytics 1.4.11 → 1.4.12

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.
Files changed (2) hide show
  1. package/lib/types.d.ts +16 -0
  2. package/package.json +1 -1
package/lib/types.d.ts CHANGED
@@ -196,6 +196,21 @@ type ChartTypesFormAction = {
196
196
  chart_type_name?: string;
197
197
  time_interval_name?: string;
198
198
  };
199
+ type ContractsSetupForm = {
200
+ form_name: string;
201
+ trade_type_name: string;
202
+ } & ({
203
+ action: 'change_parameter_value';
204
+ duration_type?: string;
205
+ input_type?: string;
206
+ parameter_field_type?: string;
207
+ parameter_type?: string;
208
+ parameter_value?: string;
209
+ } | {
210
+ action: 'run_contract';
211
+ switcher_duration_mode_name?: string;
212
+ switcher_stakepayout_mode_name?: string;
213
+ });
199
214
  type TradersHubOnboardingFormAction = {
200
215
  action?: 'open' | 'close' | 'step_passed' | 'step_back' | 'choose_step_navigation';
201
216
  form_source?: 'tradershub_dashboard_form' | 'tradershub_first_entrance' | 'repeat_tour';
@@ -219,6 +234,7 @@ export type TEvents = {
219
234
  ce_bot_quick_strategy_form: BotQuickStrategyForm;
220
235
  ce_bot_builder_form: BotBuilderForm;
221
236
  ce_bot_tutorial_form: BotTutorialForm;
237
+ ce_contracts_set_up_form: ContractsSetupForm;
222
238
  ce_indicators_types_form: IndicatorsTypesFormAction;
223
239
  ce_trade_types_form: TradeTypesForm;
224
240
  ce_chart_types_form: ChartTypesFormAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/analytics",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "description": "The analytics package contains all the utility functions used for tracking user events and sending them to the respective platform such as Rudderstack.",
5
5
  "keywords": [
6
6
  "rudderstack",