The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/IAnalytic.ts

33 lines
706 B

import { IRocketChatRecord } from './IRocketChatRecord';
interface IAnalyticsBase extends IRocketChatRecord {
type: 'messages' | 'users' | 'seat-request';
date: number;
}
export interface IAnalyticsMessages extends IAnalyticsBase {
type: 'messages';
room: {
_id: string;
name?: string;
t: string;
usernames: string[];
};
}
export interface IAnalyticsUsers extends IAnalyticsBase {
type: 'users';
room: {
_id: string;
name?: string;
t: string;
usernames: string[];
};
}
export interface IAnalyticsSeatRequest extends IAnalyticsBase {
type: 'seat-request';
count: number;
}
export type IAnalytic = IAnalyticsBase | IAnalyticsMessages | IAnalyticsUsers | IAnalyticsSeatRequest;