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>;
|
|
|
|
fullSync: (forceSync: boolean) => Promise<boolean>;
|
2018-08-21 14:20:43 +02:00
|
|
|
syncUpsertFolder: (notification: SyncFolderNotification, isEdit: boolean) => Promise<boolean>;
|
2018-08-20 22:01:26 +02:00
|
|
|
syncDeleteFolder: (notification: SyncFolderNotification) => Promise<boolean>;
|
2018-08-21 14:20:43 +02:00
|
|
|
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
|
|
|
}
|