diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 79afed38..c19ed19a 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -27,6 +27,19 @@ interface RobotAttributes { google_refresh_token?: string | null; } +interface ScheduleConfig { + enabled: boolean; + runEvery: number; + runEveryUnit: 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS'; + startFrom: 'SUNDAY' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY'; + atTimeStart?: string; + atTimeEnd?: string; + timezone: string; + lastRunAt?: Date; + nextRunAt?: Date; + cronExpression?: string; +} + interface RobotCreationAttributes extends Optional { } class Robot extends Model implements RobotAttributes {