forked from sheepzh/time-tracker-4-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup.ts
More file actions
15 lines (8 loc) · 681 Bytes
/
Copy pathbackup.ts
File metadata and controls
15 lines (8 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { sendMsg2Runtime } from "./common"
export const syncData = () => sendMsg2Runtime('backup.sync', undefined, 120_000)
export const checkAuth = () => sendMsg2Runtime('backup.checkAuth')
export const clearBackup = (cid: string) => sendMsg2Runtime('backup.clear', cid, 60_000)
export const queryBackup = (param: tt4b.backup.RemoteQuery) => sendMsg2Runtime('backup.query', param, 120_000)
export const previewBackup = (param: tt4b.backup.RemoteQuery) => sendMsg2Runtime('backup.preview', param, 120_000)
export const getLastBackUp = (type: tt4b.backup.Type) => sendMsg2Runtime('backup.lastTs', type)
export const allBackupClients = () => sendMsg2Runtime('backup.clients')