import type { BaseApiApp } from "@discloudapp/api-types/v2"; import type { UpdateAppOptions } from "../@types"; import type DiscloudApp from "../discloudApp/DiscloudApp"; import Base from "./Base"; /** * Base for app structures */ export default abstract class BaseSharedApp extends Base { /** * Your app id */ readonly id: string; constructor(discloudApp: DiscloudApp, data: BaseApiApp); protected _patch(data: Partial): this; /** * Get backups for the app of your team on Discloud */ backup(): Promise; /** * Set the quantity of ram to application of your team * * @param quantity - Minimum values is `100` to `bot` or `512` for `site` */ setRam(quantity: number): Promise; /** * Get logs for the app of your team on Discloud */ terminal(): Promise; /** * Update an of your team apps on Discloud * * @param options - Options to update your app. */ update(options: UpdateAppOptions): Promise; /** * Restart your team application on Discloud */ restart(): Promise; /** * Start your team application on Discloud */ start(): Promise; /** * Stop your team application on Discloud */ stop(): Promise; /** */ toString(): string; }