@deriv-com/analytics 1.5.1 → 1.5.3

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 +31 -43
  2. package/package.json +1 -1
package/lib/types.d.ts CHANGED
@@ -116,46 +116,21 @@ type TradeTypesForm = {
116
116
  form_name?: string;
117
117
  subform_name?: string;
118
118
  };
119
- type BotDashboardForm = {
120
- action?: 'open' | 'close' | 'search' | 'delete' | 'yes' | 'no' | 'search_string' | 'choose_shortcut' | 'bot_last_modified_time' | 'delete_popup_respond' | 'push_open_button' | 'push_user_guide' | 'save_your_bot' | 'edit_your_bot' | 'choose_your_bot' | 'delete_your_bot';
121
- shortcut_name?: string;
122
- form_source?: string;
123
- form_name?: string;
124
- search_string?: string;
125
- delete_popup_respond?: string;
126
- bot_last_modified_time?: number;
127
- bot_name?: string;
128
- bot_status?: string;
129
- preview_mode?: string;
130
- };
131
- type BotQuickStrategyForm = {
132
- action?: 'open' | 'close' | 'choose_strategy_type' | 'switch_strategy_mode' | 'choose_asset' | 'choose_trade_type' | 'choose_trade_type_mode' | 'choose_duration' | 'change_parameter_value' | 'info_popup_open' | 'run_strategy' | 'loss_threshold_warning_popup' | 'learn_more_expansion' | 'learn_more_collapse' | 'edit_strategy';
133
- form_source?: 'ce_bot_dashboard_form' | 'ce_bot_builder_form';
134
- form_name?: 'ce_bot_quick_strategy_form';
135
- strategy_type?: `d'alembert` | `martingale` | `oscar's-grind` | `reverse martingale` | `reverse d'alembert` | `1-3-2-6`;
136
- strategy_switcher_mode?: 'learn more' | 'trade parameters';
137
- asset_type?: string;
119
+ type BotForm = {
120
+ action?: 'open' | 'close' | 'search' | 'run_bot' | 'run_quick_strategy' | 'edit_quick_strategy' | 'select_quick_strategy_guide' | 'switch_quick_strategy_tab' | 'choose_strategy_type';
121
+ form_name?: 'ce_bot_form';
122
+ subpage_source?: 'dashboard' | 'bot_builder';
123
+ subpage_name?: 'tutorials' | 'bot_builder' | 'charts' | 'dashboard';
124
+ subform_name?: 'quick_strategy';
125
+ subform_source?: 'dashboard' | 'bot_builder';
126
+ quick_strategy_tab?: 'learn more' | 'trade parameters';
127
+ strategy_name?: `d'alembert` | `martingale` | `oscar's-grind` | `reverse martingale` | `reverse d'alembert` | `1-3-2-6`;
128
+ strategy_type?: 'custom' | 'quick_strategy';
129
+ search_term?: string;
130
+ asset?: string;
138
131
  trade_type?: string;
139
- trade_type_mode?: string;
140
- duration_type?: 'ticks' | 'seconds' | 'minutes' | 'hours' | 'days';
141
- parameter_type?: 'initial-stake' | 'duration' | 'profit-threshold' | 'loss-threshold' | 'size-unit' | 'max-stake' | string;
142
- parameter_field_type?: 'input' | 'dropdown' | 'slider' | 'checkbox' | 'number';
143
- parameter_value?: string | number | boolean;
144
- plus_minus_push?: 'yes' | 'no';
145
- manual_parameter_input?: 'yes' | 'no';
146
- dont_show_checkbox?: 'yes' | 'no';
147
- cta_name?: 'edit_the_amount' | 'yes_continue';
148
- learn_more_title?: string;
149
- };
150
- type BotBuilderForm = {
151
- action?: 'open' | 'close' | 'search';
152
- form_source?: 'bot_header_form' | 'bot_dashboard_form';
153
- search_string?: string;
154
- };
155
- type BotTutorialForm = {
156
- action?: 'open' | 'close' | 'search';
157
- form_source?: 'bot_header_form' | 'bot_dashboard_form-shortcut' | 'bot_dashboard_form-edit' | 'bot_dashboard_form-open';
158
- search_string?: string;
132
+ purchase_condition?: string;
133
+ initial_stake?: string;
159
134
  };
160
135
  type IndicatorsTypesFormAction = {
161
136
  action: 'open' | 'close' | 'add_active' | 'clean_all_active' | 'delete_active' | 'edit_active' | 'search' | 'info_open' | 'info_close';
@@ -252,6 +227,20 @@ type TradersHubDashboardFormAction = {
252
227
  account_mode?: 'demo' | 'real';
253
228
  account_name?: string;
254
229
  };
230
+ type PassKeyEffortlessFormAction = {
231
+ action?: 'open' | 'close' | 'info_open' | 'info_back' | 'maybe_later' | 'get_started';
232
+ form_source?: 'ce_passkey_effortless_form' | 'ce_passkey_effortless_form_p2p' | 'ce_passkey_effortless_form_derivgo';
233
+ operating_system?: 'IOS' | 'Android' | 'other';
234
+ app_id?: string;
235
+ };
236
+ type PassKeyAccountSettingsFormAction = {
237
+ action?: 'open' | 'close' | 'info_open' | 'info_back' | 'create_passkey_started' | 'create_passkey_reminder_passed' | 'create_passkey_finished' | 'create_passkey_continue_trading' | 'error' | 'add_more_passkeys';
238
+ form_source?: 'ce_passkey_account_settings_form' | 'ce_passkey_account_settings_form_derivgo' | 'ce_passkey_account_settings_form_p2p';
239
+ subform_name?: 'passkey_main' | 'passkey_info' | 'passekey_rename' | 'passkey_remove' | 'success';
240
+ remove_verification_provider?: 'email' | 'device';
241
+ error_message?: string;
242
+ operating_system?: 'IOS' | 'Android' | 'other';
243
+ };
255
244
  export type TEvents = {
256
245
  ce_virtual_signup_form: VirtualSignupForm;
257
246
  ce_email_verification_form: EmailVerificationForm;
@@ -262,10 +251,7 @@ export type TEvents = {
262
251
  ce_questionnaire_form: QuestionnaireForm;
263
252
  ce_partner_account_signup_form: PartnerAccountSignupForm;
264
253
  ce_virtual_signup_email_confirmation: VirtualSignupEmailConfirmation;
265
- ce_bot_dashboard_form: BotDashboardForm;
266
- ce_bot_quick_strategy_form: BotQuickStrategyForm;
267
- ce_bot_builder_form: BotBuilderForm;
268
- ce_bot_tutorial_form: BotTutorialForm;
254
+ ce_bot_form: BotForm;
269
255
  ce_contracts_set_up_form: ContractsSetupForm;
270
256
  ce_indicators_types_form: IndicatorsTypesFormAction;
271
257
  ce_trade_types_form: TradeTypesForm;
@@ -275,5 +261,7 @@ export type TEvents = {
275
261
  ce_tradershub_onboarding_form: TradersHubOnboardingFormAction;
276
262
  ce_upgrade_mt5_banner: UpgradeMT5BannerAction;
277
263
  ce_tradershub_dashboard_form: TradersHubDashboardFormAction;
264
+ ce_passkey_effortless_form: PassKeyEffortlessFormAction;
265
+ ce_passkey_account_settings_form: PassKeyAccountSettingsFormAction;
278
266
  };
279
267
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/analytics",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
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",