mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* Revert "[PM-5277] Migrate Sync Service to State Provider (#7680)"
This reverts commit 78008a9e1e.
Includes a noop migration builder that allows us to bridge over the deleted migration
* Prefer revert migrations to noop
this revert avoids the need to change behavior between released vs unreleased migrations and keeps some dangerous code out of the repo :success:
* Update ordering of badge settings migrator to be consistent with `rc`, which was cut with only up to version 25
* Fix missing type import
20 lines
913 B
TypeScript
20 lines
913 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>;
|
|
}
|