2022-03-10 15:29:33 +00:00
|
|
|
import { IUser } from './IUser';
|
|
|
|
|
2021-12-03 19:27:57 +00:00
|
|
|
export interface IAttachment {
|
2022-03-18 10:01:30 +00:00
|
|
|
ts?: string | Date;
|
2022-03-29 20:06:50 +00:00
|
|
|
title?: string;
|
2022-03-18 10:01:30 +00:00
|
|
|
type?: string;
|
|
|
|
description?: string;
|
2021-12-03 19:27:57 +00:00
|
|
|
title_link?: string;
|
|
|
|
image_url?: string;
|
|
|
|
image_type?: string;
|
|
|
|
video_url?: string;
|
|
|
|
video_type?: string;
|
2022-03-21 20:44:06 +00:00
|
|
|
audio_url?: string;
|
2022-01-11 13:51:48 +00:00
|
|
|
title_link_download?: boolean;
|
2022-03-21 20:44:06 +00:00
|
|
|
attachments?: IAttachment[];
|
2022-01-11 13:51:48 +00:00
|
|
|
fields?: IAttachment[];
|
|
|
|
image_dimensions?: { width?: number; height?: number };
|
|
|
|
image_preview?: string;
|
|
|
|
image_size?: number;
|
|
|
|
author_name?: string;
|
|
|
|
author_icon?: string;
|
2022-03-21 20:44:06 +00:00
|
|
|
actions?: [];
|
2022-01-11 13:51:48 +00:00
|
|
|
message_link?: string;
|
|
|
|
text?: string;
|
|
|
|
short?: boolean;
|
|
|
|
value?: string;
|
|
|
|
author_link?: string;
|
|
|
|
color?: string;
|
|
|
|
thumb_url?: string;
|
2022-03-18 10:01:30 +00:00
|
|
|
collapsed?: boolean;
|
2021-12-03 19:27:57 +00:00
|
|
|
}
|
2022-03-10 15:29:33 +00:00
|
|
|
|
|
|
|
export interface IServerAttachment {
|
|
|
|
_id: string;
|
|
|
|
name: string;
|
|
|
|
size: number;
|
|
|
|
type: string;
|
|
|
|
rid: string;
|
|
|
|
userId: string;
|
|
|
|
AmazonS3: { path: string };
|
|
|
|
store: string;
|
|
|
|
identify: {
|
|
|
|
format: string;
|
|
|
|
size: {
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
complete: boolean;
|
|
|
|
etag: string;
|
|
|
|
path: string;
|
|
|
|
progress: boolean;
|
|
|
|
token: string;
|
|
|
|
uploadedAt: string | Date;
|
|
|
|
uploading: boolean;
|
|
|
|
url: string;
|
|
|
|
user: Pick<IUser, '_id' | 'username' | 'name'>;
|
|
|
|
}
|