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/IImportMessage.ts

53 lines
959 B

export type IImportedId = 'string';
export interface IImportMessageReaction {
name: string;
users: Array<IImportedId>;
}
export interface IImportPendingFile {
downloadUrl: string;
id: string;
size: number;
name: string;
external: boolean;
source: string;
original: Record<string, any>;
}
export interface IImportAttachment extends Record<string, any> {
text: string;
title: string;
fallback: string;
}
export interface IImportMessage {
_id?: IImportedId;
rid: IImportedId;
u: {
_id: IImportedId;
};
msg: string;
alias?: string;
ts: Date;
t?: string;
reactions?: Record<string, IImportMessageReaction>;
groupable?: boolean;
tmid?: IImportedId;
tlm?: Date;
tcount?: number;
replies?: Array<IImportedId>;
editedAt?: Date;
editedBy?: IImportedId;
mentions?: Array<IImportedId>;
channels?: Array<string>;
attachments?: IImportAttachment;
bot?: boolean;
emoji?: string;
url?: string;
_importFile?: IImportPendingFile;
}