Files
rclone-ui/types/cron.d.ts
T
FTCHDandGitHub 7a62659323 v3
can’t innovate my ass 

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
2025-12-07 18:42:44 +01:00

45 lines
909 B
TypeScript

import type {
startBisync,
startCopy,
startDelete,
startMove,
startPurge,
startSync,
} from '../lib/rclone/api'
export type ScheduledTask = {
id: string
cron: string
isRunning: boolean
isEnabled: boolean
currentRunId?: string
lastRun?: string
lastRunError?: string
configId: string
} & (
| {
operation: 'delete'
args: Parameters<typeof startDelete>[0]
}
| {
operation: 'sync'
args: Parameters<typeof startSync>[0]
}
| {
operation: 'copy'
args: Parameters<typeof startCopy>[0]
}
| {
operation: 'move'
args: Parameters<typeof startMove>[0]
}
| {
operation: 'purge'
args: Parameters<typeof startPurge>[0]
}
| {
operation: 'bisync'
args: Parameters<typeof startBisync>[0]
}
)