mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
20 lines
910 B
TypeScript
20 lines
910 B
TypeScript
import {
|
|
SyncCipherNotification,
|
|
SyncFolderNotification,
|
|
SyncSendNotification,
|
|
} from "../../models/response/notification.response";
|
|
|
|
export abstract class SyncService {
|
|
syncInProgress: boolean;
|
|
|
|
getLastSync: () => Promise<Date>;
|
|
setLastSync: (date: Date, userId?: string) => Promise<any>;
|
|
fullSync: (forceSync: boolean, allowThrowOnError?: 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>;
|
|
syncUpsertSend: (notification: SyncSendNotification, isEdit: boolean) => Promise<boolean>;
|
|
syncDeleteSend: (notification: SyncSendNotification) => Promise<boolean>;
|
|
}
|