UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

36 lines (35 loc) 883 B
import { ILocalization } from "../Globalization/ILocalization.js"; import { TimePeriod } from "./TimePeriod.js"; /** * Provides options for the {@link CronJob `CronJob`} class. */ export interface ICronJobOptions { /** * The name of the cron-job. */ Name: string; /** * The class-name of the cron-job. */ ClassName: string; /** * The description of the cron-job. */ Description?: ILocalization; /** * A value indicating whether the cron-job can be disabled. */ AllowDisable?: boolean; /** * A value indicating whether the cron-job can be edited. */ AllowEdit?: boolean; /** * A set of options of which at least one must be enabled in order to execute the cron-job. */ Options?: string[]; /** * The period to execute the cron-job. */ Period: TimePeriod; }