File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { apiObject } from '@rudderstack/rudder-sdk-node' ;
21import { ConfigService } from './config.service' ;
3- //import packageJSON from '../../package.json';
4- //import os from 'os';
52
63export const AnalyticsEvents = {
74 CLILogin : 'CLI Login' ,
@@ -14,43 +11,11 @@ export class AnalyticsService {
1411
1512 constructor ( private readonly config : ConfigService ) { }
1613
17- /*private getRudderstack() {
18- return new Rudderstack(this.config.get('RUDDERSTACK_WRITE_KEY'), {
19- dataPlaneUrl: this.config.get('RUDDERSTACK_DATAPLANE_URL'),
20- });
21- }
22-
23- private platformShortName(platform: string) {
24- switch (platform) {
25- case 'darwin':
26- return 'MAC';
27- case 'win32':
28- return 'WIN';
29- case 'linux':
30- return 'LINUX';
31- default:
32- return '';
33- }
34- }
35-
36- private platformFamily(platform: string) {
37- switch (platform) {
38- case 'darwin':
39- return 'Mac';
40- case 'win32':
41- return 'Windows';
42- case 'linux':
43- return 'Linux';
44- default:
45- return 'Unknown';
46- }
47- }*/
48-
49- track (
14+ async track (
5015 eventKey : keyof typeof AnalyticsEvents ,
5116 options : { app : 'internxt-cli' | 'internxt-webdav' ; userId : string } ,
52- params : apiObject = { } ,
17+ params : object = { } ,
5318 ) {
54- return ;
19+ return { eventKey , options , params } ;
5520 }
5621}
You can’t perform that action at this time.
0 commit comments