The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/ISubscription.ts

49 lines
1008 B

import { IRocketChatRecord } from './IRocketChatRecord';
import { IUser } from './IUser';
type RoomType = 'c' | 'd' | 'p' | 'l';
type RoomID = string;
export interface ISubscription extends IRocketChatRecord {
u: Pick<IUser, '_id' | 'username' | 'name'>;
rid: RoomID;
open: boolean;
ts: Date;
name: string;
alert?: boolean;
unread: number;
t: RoomType;
ls: Date;
f?: true;
lr: Date;
hideUnreadStatus?: true;
teamMain?: boolean;
teamId?: string;
userMentions: number;
groupMentions: number;
tunread: Array<string>;
tunreadGroup: Array<string>;
tunreadUser: Array<string>;
prid?: RoomID;
roles?: string[];
onHold?: boolean;
encrypted?: boolean;
E2EKey?: string;
unreadAlert?: 'default' | 'all' | 'mentions' | 'nothing';
}
export interface IOmnichannelSubscription extends ISubscription {
department?: string; // TODO REMOVE/DEPRECATE no need keeo in both room and subscription
}
export interface ISubscriptionDirectMessage extends Omit<ISubscription, 'name'> {
t: 'd';
}