1 import { Debug, SendDebugCommand } from '@shared/models'
2 import { HttpStatusCode } from '@shared/models'
3 import { AbstractCommand, OverrideCommandOptions } from '../shared'
5 export class DebugCommand extends AbstractCommand {
7 getDebug (options: OverrideCommandOptions = {}) {
8 const path = '/api/v1/server/debug'
10 return this.getRequestBody<Debug>({
15 defaultExpectedStatus: HttpStatusCode.OK_200
19 sendCommand (options: OverrideCommandOptions & {
20 body: SendDebugCommand
22 const { body } = options
23 const path = '/api/v1/server/debug/run-command'
25 return this.postBodyRequest({
31 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204