standardnotes-app/app/assets/javascripts/Device/DesktopWebCommunication.ts
Mo bce8c5fcba
feat: option to sign out all workspaces (#1005)
* feat: option to sign out all workspaces

* style: prettier width 120

* chore: bump snjs
2022-04-26 15:28:30 -05:00

45 lines
950 B
TypeScript

import { DecryptedTransferPayload } from '@standardnotes/snjs'
export interface WebClientRequiresDesktopMethods {
localBackupsCount(): Promise<number>
viewlocalBackups(): void
deleteLocalBackups(): Promise<void>
syncComponents(payloads: unknown[]): void
onMajorDataChange(): void
onInitialDataLoad(): void
/**
* Destroys all sensitive storage data, such as localStorage, IndexedDB, and other log files.
*/
destroyAllData(): void
onSearch(text?: string): void
downloadBackup(): void | Promise<void>
get extensionsServerHost(): string
}
export interface DesktopClientRequiresWebMethods {
updateAvailable(): void
windowGainedFocus(): void
windowLostFocus(): void
onComponentInstallationComplete(
componentData: DecryptedTransferPayload,
error: unknown,
): Promise<void>
requestBackupFile(): Promise<string | undefined>
didBeginBackup(): void
didFinishBackup(success: boolean): void
}