@cto.ai/ops
Version:
💻 CTO.ai Ops - The CLI built for Teams 🚀
28 lines (27 loc) • 764 B
TypeScript
/**
* @author: JP Lew (jp@cto.ai)
* @date: Sunday, 28th April 2019 1:16:46 am
* @lastModifiedBy: JP Lew (jp@cto.ai)
* @lastModifiedTime: Wednesday, 4th September 2019 3:08:35 pm
* @copyright (c) 2019 CTO.ai
*/
import Analytics from 'analytics-node';
import { ApiService } from '../types';
interface AnalyticsTrack {
userId?: string | number;
teamId?: string | number;
anonymousId?: string | number;
event: string;
cliEvent?: string;
properties?: any;
timestamp?: Date;
context?: any;
integrations?: any;
}
export declare class AnalyticsService {
segmentClient: Analytics;
api: ApiService;
constructor(writeKey?: string);
track(payload: AnalyticsTrack, accessToken?: string): Analytics | null;
}
export {};