forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Akmal / add rudderstack metrics for reports package (deriv-com#10183)
* feat: add rudderstack metrics for reports package * feat: add account_type and device_type to each call * fix: prettier suggestions * feat: replace null with undefined to match rudderstack sdk * feat: unit test cases for formatDate * fix: incorrect test case and function refactor * feat: add rudderstack config * fix: resolve merge issues * fix: merge conflict * chore: resolve conflicts * chore: fix broken test cases
- Loading branch information
1 parent
b6acdcb
commit bf89ae2
Showing
15 changed files
with
338 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"typescript": "^4.6.3" | ||
}, | ||
"dependencies": { | ||
"@deriv/shared": "^1.0.0", | ||
"rudder-sdk-js": "^2.35.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export const getRudderstackConfig = () => ({ | ||
action_names: { | ||
choose_report_type: 'choose_report_type', | ||
close: 'close', | ||
close_contract: 'close_contract', | ||
filter_dates: 'filter_dates', | ||
filter_growth_rate: 'filter_growth_rate', | ||
filter_trade_type: 'filter_trade_type', | ||
filter_transaction_type: 'filter_transaction_type', | ||
open_contract_details: 'open_contract_details', | ||
open: 'open', | ||
}, | ||
event_names: { | ||
chart_types: 'ce_chart_types_form', | ||
drawing_tools: 'ce_drawing_tools_form', | ||
indicators_types: 'ce_indicators_types_form', | ||
market_types: 'ce_market_types_form', | ||
recent_positions: 'ce_recent_positions_form', | ||
reports: 'ce_reports_form', | ||
template: 'ce_template_form', | ||
trade_types: 'ce_trade_types_form', | ||
} , | ||
form_names: { | ||
default: 'default', | ||
}, | ||
form_sources: { | ||
deriv_trader: 'deriv_trader', | ||
other: 'other', | ||
}, | ||
subform_names: { | ||
contract_details: 'contract_details_form', | ||
open_positions: 'open_positions_form', | ||
statement: 'statement_form', | ||
trade_table: 'trade_table_form', | ||
}, | ||
} as const); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as RudderStack } from './rudderstack'; | ||
export type { TEvents } from './rudderstack'; | ||
export * from './Constants/rudderstack-events'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.