forked from Ivasoft/mattermost-mobile
Co-authored-by: Daniel Espino García <larkox@gmail.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
41 lines
847 B
TypeScript
41 lines
847 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
type FileInfo = {
|
|
id?: string;
|
|
bytesRead?: number;
|
|
clientId?: string;
|
|
create_at?: number;
|
|
delete_at?: number;
|
|
extension: string;
|
|
failed?: boolean;
|
|
has_preview_image: boolean;
|
|
height: number;
|
|
localPath?: string;
|
|
mime_type: string;
|
|
mini_preview?: string;
|
|
name: string;
|
|
post_id: string;
|
|
size: number;
|
|
update_at?: number;
|
|
uri?: string;
|
|
user_id: string;
|
|
width: number;
|
|
};
|
|
|
|
type FilesState = {
|
|
files: Dictionary<FileInfo>;
|
|
fileIdsByPostId: Dictionary<string[]>;
|
|
filePublicLink?: string;
|
|
};
|
|
|
|
type FileUploadResponse = {
|
|
file_infos: FileInfo[];
|
|
client_ids: string[];
|
|
};
|
|
|
|
type FileSearchParams = {
|
|
terms: string;
|
|
is_or_search: boolean;
|
|
};
|