mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
17 lines
687 B
TypeScript
17 lines
687 B
TypeScript
import {
|
|
SyncCipherNotification,
|
|
SyncFolderNotification,
|
|
} from '../models/response/notificationResponse';
|
|
|
|
export abstract class SyncService {
|
|
syncInProgress: boolean;
|
|
|
|
getLastSync: () => Promise<Date>;
|
|
setLastSync: (date: Date) => Promise<any>;
|
|
fullSync: (forceSync: boolean) => Promise<boolean>;
|
|
syncUpsertFolder: (notification: SyncFolderNotification, isEdit: boolean) => Promise<boolean>;
|
|
syncDeleteFolder: (notification: SyncFolderNotification) => Promise<boolean>;
|
|
syncUpsertCipher: (notification: SyncCipherNotification, isEdit: boolean) => Promise<boolean>;
|
|
syncDeleteCipher: (notification: SyncFolderNotification) => Promise<boolean>;
|
|
}
|