pterowrap
Version:
A node.js wrapper for Pterodactyl API
32 lines (31 loc) • 927 B
TypeScript
import * as Types from "../../../utils/Types";
import ClientInstance from "../../../instance/ClientInstance";
import Server from "../Server";
import TaskManager from "../../../managers/client/server/TaskManager";
export default class Schedule {
private _client;
_parentServer: Server;
id: number;
name: string;
cron: {
day_of_week: string;
day_of_month: string;
month: string;
hour: string;
minute: string;
};
is_active: boolean;
is_processing: boolean;
last_run_at?: string;
next_run_at: string;
created_at: string;
updated_at: string;
relationships: {
[key: string]: any;
};
tasks: TaskManager;
raw: any;
constructor(_client: ClientInstance, data: any, _parentServer: Server);
update(params: Types.updateScheduleParams): Promise<Schedule>;
delete(): Promise<unknown>;
}