1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import Analytics from 'analytics-node';
|
9 | import { ApiService } from '../types';
|
10 | interface AnalyticsTrack {
|
11 | userId?: string | number;
|
12 | teamId?: string | number;
|
13 | anonymousId?: string | number;
|
14 | event: string;
|
15 | properties?: any;
|
16 | timestamp?: Date;
|
17 | context?: any;
|
18 | integrations?: any;
|
19 | }
|
20 | export declare class AnalyticsService {
|
21 | segmentClient: Analytics;
|
22 | api: ApiService;
|
23 | constructor(writeKey?: string);
|
24 | track(payload: AnalyticsTrack, accessToken?: string): Analytics | null;
|
25 | }
|
26 | export {};
|