mattermost-mobile/types/api/files.d.ts
Christopher Poile 2c1f318868
MM-54866 - Calls: Transcription support (#7703)
* captions on videos from posts and searches

* add the patch for react-native-video which fixes subtitle downloading

* improve spacing

* fix patch file

* upgrade compass-icons; use cc icon

* revert patch overwrite

* fix patch

* use useMemo

* fix hitslops on pressables

* use new Caption format; refactor for clarity

* simplify tracks creation and use
2023-12-21 16:20:21 -05:00

42 lines
909 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
type FileInfo = {
id?: string;
bytesRead?: number;
channel_id?: string;
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;
postProps?: Record<string, any>;
};
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;
};