@deriv-com/analytics 1.5.0 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/types.d.ts +23 -0
  2. package/package.json +1 -1
package/lib/types.d.ts CHANGED
@@ -246,6 +246,26 @@ type TradersHubOnboardingFormAction = {
246
246
  type UpgradeMT5BannerAction = {
247
247
  action: 'open' | 'push_cta_upgrade';
248
248
  };
249
+ type TradersHubDashboardFormAction = {
250
+ action?: 'open' | 'close' | 'switch_account_mode' | 'account_open' | 'account_get' | 'account_logo_push' | 'reset_balance' | 'deposit_balance' | 'compare_accounts_push';
251
+ form_source?: 'deriv_apps_dashboard' | 'tradershub_onboarding_form' | 'deriv_trader' | 'dtrader_account_form';
252
+ account_mode?: 'demo' | 'real';
253
+ account_name?: string;
254
+ };
255
+ type PassKeyEffortlessFormAction = {
256
+ action?: 'open' | 'close' | 'info_open' | 'info_back' | 'maybe_later' | 'get_started';
257
+ form_source?: 'ce_passkey_effortless_form' | 'ce_passkey_effortless_form_p2p' | 'ce_passkey_effortless_form_derivgo';
258
+ operating_system?: 'IOS' | 'Android' | 'other';
259
+ app_id?: string;
260
+ };
261
+ type PassKeyAccountSettingsFormAction = {
262
+ 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';
263
+ form_source?: 'ce_passkey_account_settings_form' | 'ce_passkey_account_settings_form_derivgo' | 'ce_passkey_account_settings_form_p2p';
264
+ subform_name?: 'passkey_main' | 'passkey_info' | 'passekey_rename' | 'passkey_remove' | 'success';
265
+ remove_verification_provider?: 'email' | 'device';
266
+ error_message?: string;
267
+ operating_system?: 'IOS' | 'Android' | 'other';
268
+ };
249
269
  export type TEvents = {
250
270
  ce_virtual_signup_form: VirtualSignupForm;
251
271
  ce_email_verification_form: EmailVerificationForm;
@@ -268,5 +288,8 @@ export type TEvents = {
268
288
  ce_reports_form: ReportsFormAction;
269
289
  ce_tradershub_onboarding_form: TradersHubOnboardingFormAction;
270
290
  ce_upgrade_mt5_banner: UpgradeMT5BannerAction;
291
+ ce_tradershub_dashboard_form: TradersHubDashboardFormAction;
292
+ ce_passkey_effortless_form: PassKeyEffortlessFormAction;
293
+ ce_passkey_account_settings_form: PassKeyAccountSettingsFormAction;
271
294
  };
272
295
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/analytics",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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",