RocketChat/Rocket.Chat

View on GitHub
packages/core-typings/src/ee/IAuditLog.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ILivechatAgent } from '../ILivechatAgent';
import type { ILivechatVisitor } from '../ILivechatVisitor';
import type { IMessage } from '../IMessage';
import type { IRocketChatRecord } from '../IRocketChatRecord';
import type { IRoom } from '../IRoom';
import type { IUser } from '../IUser';

export interface IAuditLog extends IRocketChatRecord {
    ts: Date;
    results: number;
    u: Pick<IUser, '_id' | 'username' | 'name' | 'avatarETag'>;
    fields: {
        type: string;
        msg: IMessage['msg'];
        startDate?: Date;
        endDate?: Date;
        rids?: IRoom['_id'][];
        room: IRoom['name'];
        users?: IUser['username'][];
        visitor?: ILivechatVisitor['_id'];
        agent?: ILivechatAgent['_id'];
        filters?: string;
    };
}