2022-03-10 23:08:29 +01:00
|
|
|
export interface IncomingChatMessage {
|
|
|
|
|
msg: string;
|
|
|
|
|
collection: string;
|
|
|
|
|
id: string;
|
|
|
|
|
fields: {
|
|
|
|
|
args: {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
localReference: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
file?: any;
|
|
|
|
|
ts: {
|
|
|
|
|
$date: number;
|
|
|
|
|
};
|
|
|
|
|
u: {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
_updatedAt: {
|
|
|
|
|
$date: number;
|
|
|
|
|
};
|
|
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
} [];
|
|
|
|
|
}
|
|
|
|
|
eventName: string;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export interface ChatMessageInterface {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
localReference: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
file?: any;
|
|
|
|
|
ts: number;
|
|
|
|
|
u: {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
_updatedAt: number;
|
|
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
2022-03-14 14:16:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface falseTypingMethod{
|
|
|
|
|
method: 'viewMessage' | 'deleteMessage'
|
2022-03-15 15:49:59 +01:00
|
|
|
params: object
|
2022-03-14 14:16:23 +01:00
|
|
|
}
|