2022-01-13 10:55:40 +01:00
|
|
|
interface Ts {
|
2022-01-13 10:52:03 +01:00
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-13 10:55:40 +01:00
|
|
|
interface U {
|
2022-01-13 10:52:03 +01:00
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface UpdatedAt {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface Attachment {
|
|
|
|
|
ts: Date;
|
|
|
|
|
title_link_download: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface File {
|
|
|
|
|
type: string;
|
|
|
|
|
guid: string;
|
|
|
|
|
image_url: string;
|
|
|
|
|
subject: string;
|
|
|
|
|
start_date?: Date;
|
|
|
|
|
end_date?: Date;
|
|
|
|
|
venue: string;
|
|
|
|
|
id: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface EditedAt {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface EditedBy {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Ts2 {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface U2 {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface UpdatedAt2 {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface FirstUnread {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts2;
|
|
|
|
|
u: U2;
|
2022-02-02 20:16:12 +01:00
|
|
|
_updatedAt: string;
|
2022-01-13 10:52:03 +01:00
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Message {
|
2022-01-13 21:24:43 +01:00
|
|
|
customFields:any;
|
2022-01-13 10:52:03 +01:00
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts;
|
|
|
|
|
u: U;
|
2022-01-17 11:27:25 +01:00
|
|
|
t: string;
|
2022-02-02 20:16:12 +01:00
|
|
|
_updatedAt: '';
|
2022-01-13 10:52:03 +01:00
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
attachments: Attachment[];
|
|
|
|
|
file: File;
|
|
|
|
|
editedAt: EditedAt;
|
|
|
|
|
editedBy: EditedBy;
|
|
|
|
|
urls: any[];
|
2022-02-07 15:51:21 +01:00
|
|
|
temporaryData: object
|
2022-02-10 18:07:06 +01:00
|
|
|
localReference?: string
|
2022-01-13 10:52:03 +01:00
|
|
|
}
|
|
|
|
|
|
2022-01-13 11:55:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface Lm {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface LastMessage {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts;
|
|
|
|
|
u: U;
|
|
|
|
|
_updatedAt: UpdatedAt2;
|
|
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
file: File;
|
|
|
|
|
attachments: Attachment[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CustomFields {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Update {
|
|
|
|
|
_id: string;
|
|
|
|
|
t: string;
|
|
|
|
|
usernames: string[];
|
|
|
|
|
usersCount: number;
|
|
|
|
|
uids: string[];
|
|
|
|
|
default: boolean;
|
|
|
|
|
ro: boolean;
|
|
|
|
|
sysMes: boolean;
|
|
|
|
|
_updatedAt: UpdatedAt;
|
|
|
|
|
lm: Lm;
|
|
|
|
|
lastMessage: LastMessage;
|
|
|
|
|
name: string;
|
|
|
|
|
fname: string;
|
|
|
|
|
u: U2;
|
|
|
|
|
customFields: CustomFields;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface DeletedAt {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Remove {
|
|
|
|
|
_id: string;
|
|
|
|
|
_deletedAt: DeletedAt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Result {
|
|
|
|
|
update: Update[];
|
|
|
|
|
remove: Remove[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Rooms {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: Result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-13 10:52:03 +01:00
|
|
|
export interface ChatMessage {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: Message
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface chatHistory {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: {
|
|
|
|
|
messages: Message[];
|
|
|
|
|
firstUnread: FirstUnread;
|
|
|
|
|
unreadNotLoaded: number;
|
|
|
|
|
};
|
|
|
|
|
}
|
2022-01-29 19:21:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Ts {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface U {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface UpdatedAt {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface Attachment {
|
|
|
|
|
ts: Date;
|
|
|
|
|
title_link_download: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface File {
|
|
|
|
|
type: string;
|
|
|
|
|
guid: string;
|
|
|
|
|
image_url: string;
|
|
|
|
|
subject: string;
|
|
|
|
|
start_date?: Date;
|
|
|
|
|
end_date?: Date;
|
|
|
|
|
venue: string;
|
|
|
|
|
id: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface EditedAt {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface EditedBy {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Ts2 {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface U2 {
|
|
|
|
|
_id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface UpdatedAt2 {
|
|
|
|
|
$date: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface FirstUnread {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts2;
|
|
|
|
|
u: U2;
|
2022-02-02 20:16:12 +01:00
|
|
|
_updatedAt: string;
|
2022-01-29 19:21:46 +01:00
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Message {
|
|
|
|
|
customFields:any;
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts;
|
|
|
|
|
u: U;
|
|
|
|
|
t: string;
|
2022-02-02 20:16:12 +01:00
|
|
|
_updatedAt: '';
|
2022-01-29 19:21:46 +01:00
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
attachments: Attachment[];
|
|
|
|
|
file: File;
|
|
|
|
|
editedAt: EditedAt;
|
|
|
|
|
editedBy: EditedBy;
|
|
|
|
|
urls: any[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface Lm {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface LastMessage {
|
|
|
|
|
_id: string;
|
|
|
|
|
rid: string;
|
|
|
|
|
msg: string;
|
|
|
|
|
ts: Ts;
|
|
|
|
|
u: U;
|
|
|
|
|
_updatedAt: UpdatedAt2;
|
|
|
|
|
mentions: any[];
|
|
|
|
|
channels: any[];
|
|
|
|
|
file: File;
|
|
|
|
|
attachments: Attachment[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CustomFields {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Update {
|
|
|
|
|
_id: string;
|
|
|
|
|
t: string;
|
|
|
|
|
usernames: string[];
|
|
|
|
|
usersCount: number;
|
|
|
|
|
uids: string[];
|
|
|
|
|
default: boolean;
|
|
|
|
|
ro: boolean;
|
|
|
|
|
sysMes: boolean;
|
|
|
|
|
_updatedAt: UpdatedAt;
|
|
|
|
|
lm: Lm;
|
|
|
|
|
lastMessage: LastMessage;
|
|
|
|
|
name: string;
|
|
|
|
|
fname: string;
|
|
|
|
|
u: U2;
|
|
|
|
|
customFields: CustomFields;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface DeletedAt {
|
|
|
|
|
$date: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Remove {
|
|
|
|
|
_id: string;
|
|
|
|
|
_deletedAt: DeletedAt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Result {
|
|
|
|
|
update: Update[];
|
|
|
|
|
remove: Remove[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Rooms {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: Result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface ChatMessage {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: Message
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface chatHistory {
|
|
|
|
|
msg: string;
|
|
|
|
|
id: string;
|
|
|
|
|
result: {
|
|
|
|
|
messages: Message[];
|
|
|
|
|
firstUnread: FirstUnread;
|
|
|
|
|
unreadNotLoaded: number;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface chatUser {
|
|
|
|
|
_id: string;
|
|
|
|
|
createdAt: Date;
|
|
|
|
|
emails: {
|
|
|
|
|
address: string;
|
|
|
|
|
verified: boolean;
|
|
|
|
|
}
|
|
|
|
|
type: string;
|
|
|
|
|
status: string;
|
|
|
|
|
active: boolean;
|
|
|
|
|
_updatedAt: Date;
|
|
|
|
|
roles: string[];
|
|
|
|
|
name: string;
|
|
|
|
|
lastLogin: Date;
|
|
|
|
|
statusConnection: string;
|
|
|
|
|
utcOffset: number;
|
|
|
|
|
username: string;
|
|
|
|
|
__rooms: string[];
|
|
|
|
|
requirePasswordChange?: boolean;
|
|
|
|
|
settings: {
|
|
|
|
|
preferences: {
|
|
|
|
|
language: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
nickname: string;
|
|
|
|
|
statusText: string;
|
|
|
|
|
banners: any;
|
|
|
|
|
statusDefault: string;
|
|
|
|
|
language: string;
|
|
|
|
|
avatarOrigin: string;
|
|
|
|
|
avatarETag?: any;
|
|
|
|
|
}
|