1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-19 07:35:48 +02:00
bitwarden-browser/src/abstractions/sync.service.ts

17 lines
716 B
TypeScript
Raw Normal View History

2018-08-20 22:01:26 +02:00
import {
SyncCipherNotification,
SyncFolderNotification,
} from '../models/response/notificationResponse';
2018-02-08 16:49:00 +01:00
export abstract class SyncService {
2018-01-10 05:25:59 +01:00
syncInProgress: boolean;
2018-02-08 16:49:00 +01:00
getLastSync: () => Promise<Date>;
setLastSync: (date: Date) => Promise<any>;
2019-10-15 17:06:55 +02:00
fullSync: (forceSync: boolean, allowThrowOnError?: boolean) => Promise<boolean>;
syncUpsertFolder: (notification: SyncFolderNotification, isEdit: boolean) => Promise<boolean>;
2018-08-20 22:01:26 +02:00
syncDeleteFolder: (notification: SyncFolderNotification) => Promise<boolean>;
syncUpsertCipher: (notification: SyncCipherNotification, isEdit: boolean) => Promise<boolean>;
2018-08-20 22:01:26 +02:00
syncDeleteCipher: (notification: SyncFolderNotification) => Promise<boolean>;
2018-01-10 05:25:59 +01:00
}