@deriv-com/analytics 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/types.d.ts +15 -43
- 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
|
120
|
-
action?: 'open' | 'close' | 'search' | '
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
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
|
-
|
140
|
-
|
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';
|
@@ -276,10 +251,7 @@ export type TEvents = {
|
|
276
251
|
ce_questionnaire_form: QuestionnaireForm;
|
277
252
|
ce_partner_account_signup_form: PartnerAccountSignupForm;
|
278
253
|
ce_virtual_signup_email_confirmation: VirtualSignupEmailConfirmation;
|
279
|
-
|
280
|
-
ce_bot_quick_strategy_form: BotQuickStrategyForm;
|
281
|
-
ce_bot_builder_form: BotBuilderForm;
|
282
|
-
ce_bot_tutorial_form: BotTutorialForm;
|
254
|
+
ce_bot_form: BotForm;
|
283
255
|
ce_contracts_set_up_form: ContractsSetupForm;
|
284
256
|
ce_indicators_types_form: IndicatorsTypesFormAction;
|
285
257
|
ce_trade_types_form: TradeTypesForm;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@deriv-com/analytics",
|
3
|
-
"version": "1.5.
|
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",
|