updating the IRoom and ISubscriptions
This commit is contained in:
parent
49e30dc723
commit
cdcfbe5f35
|
@ -1,7 +1,7 @@
|
||||||
import { Observable } from 'rxjs';
|
|
||||||
import Model from '@nozbe/watermelondb/Model';
|
import Model from '@nozbe/watermelondb/Model';
|
||||||
|
|
||||||
import { IRocketChatRecord } from './IRocketChatRecord';
|
import { IRocketChatRecord } from './IRocketChatRecord';
|
||||||
|
import { ISubscriptions } from './ISubscriptions';
|
||||||
|
|
||||||
export enum RoomType {
|
export enum RoomType {
|
||||||
GROUP = 'p',
|
GROUP = 'p',
|
||||||
|
@ -12,7 +12,7 @@ export enum RoomType {
|
||||||
E2E_MESSAGE_TYPE = 'e2e'
|
E2E_MESSAGE_TYPE = 'e2e'
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IRoom extends IRocketChatRecord {
|
export interface IRoom extends IRocketChatRecord, ISubscriptions {
|
||||||
rid: string;
|
rid: string;
|
||||||
t: RoomType;
|
t: RoomType;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -26,9 +26,8 @@ export interface IRoom extends IRocketChatRecord {
|
||||||
visitor?: boolean;
|
visitor?: boolean;
|
||||||
autoTranslateLanguage?: boolean;
|
autoTranslateLanguage?: boolean;
|
||||||
autoTranslate?: boolean;
|
autoTranslate?: boolean;
|
||||||
observe?(): Observable<Model>;
|
|
||||||
usedCannedResponse?: string;
|
usedCannedResponse?: string;
|
||||||
bannerClosed?: boolean;
|
bannerClosed: boolean;
|
||||||
lastOpen?: Date;
|
lastOpen?: Date;
|
||||||
draftMessage?: string;
|
draftMessage?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,16 @@ export interface ISubscriptions {
|
||||||
tunread: string;
|
tunread: string;
|
||||||
tunreadUser: string;
|
tunreadUser: string;
|
||||||
tunreadGroup: string;
|
tunreadGroup: string;
|
||||||
|
joinCodeRequired: boolean;
|
||||||
|
alert: boolean;
|
||||||
|
userMentions: object;
|
||||||
|
ls: Date;
|
||||||
|
jitsiTimeout: number;
|
||||||
|
ignored: any;
|
||||||
|
announcement: string;
|
||||||
|
sysMes: string;
|
||||||
|
archived: string;
|
||||||
|
broadcast: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TSubscriptionsModel = ISubscriptions & Model;
|
export type TSubscriptionsModel = ISubscriptions & Model;
|
||||||
|
|
Loading…
Reference in New Issue