Skip to content

Commit b82a3de

Browse files
committed
removed rudderstack
1 parent 3f09cbb commit b82a3de

1 file changed

Lines changed: 3 additions & 38 deletions

File tree

src/services/analytics.service.ts

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import { apiObject } from '@rudderstack/rudder-sdk-node';
21
import { ConfigService } from './config.service';
3-
//import packageJSON from '../../package.json';
4-
//import os from 'os';
52

63
export 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
}

0 commit comments

Comments
 (0)