🖥️ Onlyoffice connector moved into the TwakeDrive repository (#366)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export type FileType = {
|
||||
id: string;
|
||||
filename: string;
|
||||
company_id: string;
|
||||
user_id: string;
|
||||
metadata: {
|
||||
name: string;
|
||||
mime: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type FileRequestParams = {
|
||||
file_id: string;
|
||||
company_id: string;
|
||||
url?: string;
|
||||
user_id?: string;
|
||||
create_new?: boolean;
|
||||
};
|
||||
|
||||
export interface IFileService {
|
||||
get: (params: FileRequestParams) => Promise<FileType>;
|
||||
download: (params: FileRequestParams) => Promise<any>;
|
||||
}
|
||||
Reference in New Issue
Block a user