verdnatura-chat/app/definitions/IRoom.ts

37 lines
750 B
TypeScript
Raw Normal View History

2021-12-14 23:44:49 +00:00
import { Observable } from 'rxjs';
import Model from '@nozbe/watermelondb/Model';
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;
2021-12-14 23:44:49 +00:00
observe?(): Observable<Model>;
2021-12-07 02:16:26 +00:00
usedCannedResponse?: string;
bannerClosed?: boolean;
2021-12-07 18:13:30 +00:00
lastOpen?: Date;
2021-12-15 03:26:26 +00:00
draftMessage?: string;
}
2021-12-15 03:26:26 +00:00
export type IRoomModel = IRoom & Model;