You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.9 KiB
109 lines
2.9 KiB
export namespace main {
|
|
|
|
export class CheckResult {
|
|
nodePath: string;
|
|
nodeVersion: string;
|
|
nodeOK: boolean;
|
|
dshPath: string;
|
|
dshVersion: string;
|
|
credFile: string;
|
|
credExists: boolean;
|
|
homeDshDir: string;
|
|
portBusy: boolean;
|
|
portBusyBy: string;
|
|
issues: string[];
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new CheckResult(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.nodePath = source["nodePath"];
|
|
this.nodeVersion = source["nodeVersion"];
|
|
this.nodeOK = source["nodeOK"];
|
|
this.dshPath = source["dshPath"];
|
|
this.dshVersion = source["dshVersion"];
|
|
this.credFile = source["credFile"];
|
|
this.credExists = source["credExists"];
|
|
this.homeDshDir = source["homeDshDir"];
|
|
this.portBusy = source["portBusy"];
|
|
this.portBusyBy = source["portBusyBy"];
|
|
this.issues = source["issues"];
|
|
}
|
|
}
|
|
export class InstallResult {
|
|
ok: boolean;
|
|
error: string;
|
|
output: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new InstallResult(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.ok = source["ok"];
|
|
this.error = source["error"];
|
|
this.output = source["output"];
|
|
}
|
|
}
|
|
export class StartResult {
|
|
ok: boolean;
|
|
url: string;
|
|
error: string;
|
|
output: string;
|
|
hidden: boolean;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new StartResult(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.ok = source["ok"];
|
|
this.url = source["url"];
|
|
this.error = source["error"];
|
|
this.output = source["output"];
|
|
this.hidden = source["hidden"];
|
|
}
|
|
}
|
|
export class StatusResult {
|
|
running: boolean;
|
|
url: string;
|
|
startedAt: string;
|
|
pid: number;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new StatusResult(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.running = source["running"];
|
|
this.url = source["url"];
|
|
this.startedAt = source["startedAt"];
|
|
this.pid = source["pid"];
|
|
}
|
|
}
|
|
export class UpdateInfo {
|
|
installed: string;
|
|
latest: string;
|
|
hasUpdate: boolean;
|
|
raw: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new UpdateInfo(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.installed = source["installed"];
|
|
this.latest = source["latest"];
|
|
this.hasUpdate = source["hasUpdate"];
|
|
this.raw = source["raw"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|