23 lines
593 B
TypeScript
23 lines
593 B
TypeScript
export type TaskRecurrence = {
|
|
id: number
|
|
'@id'?: string
|
|
type: 'daily' | 'weekly' | 'monthly' | 'yearly'
|
|
interval: number
|
|
daysOfWeek: string[] | null
|
|
dayOfMonth: number | null
|
|
weekOfMonth: number | null
|
|
endDate: string | null
|
|
maxOccurrences: number | null
|
|
occurrenceCount: number
|
|
}
|
|
|
|
export type TaskRecurrenceWrite = {
|
|
type: 'daily' | 'weekly' | 'monthly' | 'yearly'
|
|
interval: number
|
|
daysOfWeek?: string[] | null
|
|
dayOfMonth?: number | null
|
|
weekOfMonth?: number | null
|
|
endDate?: string | null
|
|
maxOccurrences?: number | null
|
|
}
|