verdnatura-chat/app/definitions/IRoom.ts

31 lines
591 B
TypeScript
Raw Normal View History

import { IRocketChatRecord } from './IRocketChatRecord';
export enum RoomType {
GROUP = 'p',
DIRECT = 'd',
CHANNEL = 'c',
OMNICHANNEL = 'l',
THREAD = 'thread',
E2E_MESSAGE_TYPE = 'e2e'
}
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-07 18:13:30 +00:00
lastOpen?: Date;
}