mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
54 lines
863 B
TypeScript
54 lines
863 B
TypeScript
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[];
|
|
};
|
|
|
|
|
|
|
|
|
|
export interface falseTypingMethod{
|
|
method: 'viewMessage' | 'deleteMessage'
|
|
params: object
|
|
} |