2021-12-03 19:27:57 +00:00
|
|
|
import { IRocketChatRecord } from './IRocketChatRecord';
|
|
|
|
|
|
|
|
export enum RoomType {
|
|
|
|
GROUP = 'p',
|
|
|
|
DIRECT = 'd',
|
|
|
|
CHANNEL = 'c',
|
|
|
|
OMNICHANNEL = 'l',
|
2021-12-07 00:30:49 +00:00
|
|
|
THREAD = 'thread',
|
|
|
|
E2E_MESSAGE_TYPE = 'e2e'
|
2021-12-03 19:27:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IRoom extends IRocketChatRecord {
|
|
|
|
rid: string;
|
|
|
|
t: RoomType;
|
|
|
|
name: string;
|
|
|
|
fname: string;
|
|
|
|
prid?: string;
|
|
|
|
tmid?: string;
|
|
|
|
topic?: string;
|
|
|
|
teamMain?: boolean;
|
|
|
|
teamId?: string;
|
|
|
|
encrypted?: boolean;
|
|
|
|
visitor?: boolean;
|
|
|
|
autoTranslateLanguage?: boolean;
|
|
|
|
autoTranslate?: boolean;
|
|
|
|
observe?: Function;
|
2021-12-07 02:16:26 +00:00
|
|
|
usedCannedResponse?: string;
|
|
|
|
bannerClosed?: boolean;
|
2021-12-03 19:27:57 +00:00
|
|
|
}
|