2022-01-11 13:51:48 +00:00
|
|
|
import Model from '@nozbe/watermelondb/Model';
|
2021-12-03 19:27:57 +00:00
|
|
|
|
2022-01-11 13:51:48 +00:00
|
|
|
import { IServedBy } from './IServedBy';
|
2022-01-17 16:10:39 +00:00
|
|
|
import { SubscriptionType } from './ISubscription';
|
2021-12-03 19:27:57 +00:00
|
|
|
|
2022-01-11 13:51:48 +00:00
|
|
|
export interface IRoom {
|
|
|
|
id: string;
|
2022-01-17 16:10:39 +00:00
|
|
|
rid: string;
|
|
|
|
prid: string;
|
|
|
|
t: SubscriptionType;
|
|
|
|
name: string;
|
|
|
|
teamMain: boolean;
|
|
|
|
alert?: boolean;
|
2022-01-11 13:51:48 +00:00
|
|
|
customFields: string[];
|
|
|
|
broadcast: boolean;
|
|
|
|
encrypted: boolean;
|
|
|
|
ro: boolean;
|
|
|
|
v?: string[];
|
|
|
|
servedBy?: IServedBy;
|
|
|
|
departmentId?: string;
|
|
|
|
livechatData?: any;
|
|
|
|
tags?: string[];
|
|
|
|
e2eKeyId?: string;
|
|
|
|
avatarETag?: string;
|
2021-12-03 19:27:57 +00:00
|
|
|
}
|
2022-01-11 13:51:48 +00:00
|
|
|
|
|
|
|
export type TRoomModel = IRoom & Model;
|