This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dropbox, DropboxResponse, files as DropboxFiles, sharing } from 'dropbox'; | |
import { IFilesProvider, ProviderFileLink, FILE_MIME_DIRECTORY, ProviderFileUpload } from './files-providers.types'; | |
import mime from 'mime-types'; | |
import { AppLoggerService } from '../logger/app-logger.service'; | |
import 'isomorphic-fetch'; // fetch stuff for Dropbox | |
import { DropboxFile } from './dropbox-file.entity'; | |
import { Readable } from 'stream'; | |
import * as path from 'path'; | |
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const DropboxStream = require('dropbox-stream'); |