mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
102 lines
1.4 KiB
TypeScript
102 lines
1.4 KiB
TypeScript
|
|
export interface Ts {
|
||
|
|
$date: any;
|
||
|
|
}
|
||
|
|
|
||
|
|
export 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;
|
||
|
|
_updatedAt: UpdatedAt2;
|
||
|
|
mentions: any[];
|
||
|
|
channels: any[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface Message {
|
||
|
|
_id: string;
|
||
|
|
rid: string;
|
||
|
|
msg: string;
|
||
|
|
ts: Ts;
|
||
|
|
u: U;
|
||
|
|
_updatedAt: UpdatedAt;
|
||
|
|
mentions: any[];
|
||
|
|
channels: any[];
|
||
|
|
attachments: Attachment[];
|
||
|
|
file: File;
|
||
|
|
editedAt: EditedAt;
|
||
|
|
editedBy: EditedBy;
|
||
|
|
urls: any[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ChatMessage {
|
||
|
|
msg: string;
|
||
|
|
id: string;
|
||
|
|
result: Message
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export interface chatHistory {
|
||
|
|
msg: string;
|
||
|
|
id: string;
|
||
|
|
result: {
|
||
|
|
messages: Message[];
|
||
|
|
firstUnread: FirstUnread;
|
||
|
|
unreadNotLoaded: number;
|
||
|
|
};
|
||
|
|
}
|