refactoring and adding capability to recognize more schedules
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
11
server/types/scheduledEventTypes.ts
Normal file
11
server/types/scheduledEventTypes.ts
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
export interface RepetitonInfo {
|
||||
startDate?: Date, // If defined will take precedence over repetitonAmount
|
||||
endDate?: Date,// If defined will take precedence over repetitonAmount
|
||||
totalAmount: number,
|
||||
alreadyOccured: number,
|
||||
schedule: supportedSchedule
|
||||
numberOfDays?: number
|
||||
}
|
||||
export const scheduleNames = ['daily', 'weekly', 'monthly', 'everyTwoWeeks', 'everyNDays']
|
||||
export type supportedSchedule = typeof scheduleNames[number]
|
Reference in New Issue
Block a user