mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-10 22:14:48 -05:00
feat(@vates/types): expose XoSchedule type
This commit is contained in:
committed by
Florent BEAUCHAMP
parent
748a2ff860
commit
11d78db88d
@@ -262,6 +262,19 @@ export type XoPool = BaseXapiXo & {
|
||||
zstdSupported: boolean
|
||||
}
|
||||
|
||||
export type XoJob = {
|
||||
id: Branded<'job'>
|
||||
}
|
||||
|
||||
export type XoSchedule = {
|
||||
cron: string
|
||||
enable: boolean
|
||||
id: Branded<'schedule'>
|
||||
jobId: XoJob['id']
|
||||
name?: string
|
||||
timezone?: string
|
||||
}
|
||||
|
||||
export type XoServer = {
|
||||
allowUnauthorized: boolean
|
||||
enabled: boolean
|
||||
@@ -448,6 +461,6 @@ export type XapiXoRecord =
|
||||
| XoVmTemplate
|
||||
| XoVtpm
|
||||
|
||||
export type NonXapiXoRecord = XoGroup | XoServer | XoUser
|
||||
export type NonXapiXoRecord = XoGroup | XoJob | XoSchedule | XoServer | XoUser
|
||||
|
||||
export type XoRecord = XapiXoRecord | NonXapiXoRecord
|
||||
|
||||
Reference in New Issue
Block a user