fix: automatically convert Super notes to Markdown for the Plaintext Backups feature
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { OnChunkCallback } from '../Chunker/OnChunkCallback'
|
||||
import { DesktopWatchedDirectoriesChanges } from '../Device/DesktopWatchedChanges'
|
||||
import { FileBackupRecord } from '../Device/FileBackupsMapping'
|
||||
import { SuperConverterServiceInterface } from './SuperConverterServiceInterface'
|
||||
|
||||
export interface BackupServiceInterface {
|
||||
openAllDirectoriesContainingBackupFiles(): void
|
||||
prependWorkspacePathForPath(path: string): string
|
||||
importWatchedDirectoryChanges(changes: DesktopWatchedDirectoriesChanges): Promise<void>
|
||||
setSuperConverter(converter: SuperConverterServiceInterface): void
|
||||
|
||||
getFileBackupInfo(file: { uuid: string }): Promise<FileBackupRecord | undefined>
|
||||
readEncryptedFileFromBackup(uuid: string, onChunk: OnChunkCallback): Promise<'success' | 'failed' | 'aborted'>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface SuperConverterServiceInterface {
|
||||
convertString: (superString: string, toFormat: 'txt' | 'md' | 'html' | 'json') => string
|
||||
}
|
||||
@@ -17,6 +17,7 @@ export * from './Device/FileBackupsMapping'
|
||||
export * from './Operations/DownloadAndDecrypt'
|
||||
export * from './Operations/EncryptAndUpload'
|
||||
export * from './Service/BackupServiceInterface'
|
||||
export * from './Service/SuperConverterServiceInterface'
|
||||
export * from './Service/FilesClientInterface'
|
||||
export * from './Service/ReadAndDecryptBackupFileFileSystemAPI'
|
||||
export * from './Service/ReadAndDecryptBackupFileUsingBackupService'
|
||||
|
||||
Reference in New Issue
Block a user