2023-01-14 20:47:29 +01:00
|
|
|
export namespace app {
|
2023-01-11 20:41:15 +01:00
|
|
|
|
2023-06-07 21:30:22 +02:00
|
|
|
export class DatabaseInfo {
|
|
|
|
collections: string[];
|
|
|
|
stats: {[key: string]: any};
|
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new DatabaseInfo(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.collections = source["collections"];
|
|
|
|
this.stats = source["stats"];
|
|
|
|
}
|
|
|
|
}
|
2023-01-28 13:25:14 +01:00
|
|
|
export class EnvironmentInfo {
|
|
|
|
arch: string;
|
|
|
|
buildType: string;
|
|
|
|
platform: string;
|
2023-06-06 21:52:02 +02:00
|
|
|
version: string;
|
2023-01-28 13:25:14 +01:00
|
|
|
hasMongoExport: boolean;
|
|
|
|
hasMongoDump: boolean;
|
2023-02-11 11:22:02 +01:00
|
|
|
homeDirectory: string;
|
|
|
|
dataDirectory: string;
|
2023-02-11 21:57:52 +01:00
|
|
|
logDirectory: string;
|
2023-05-28 21:54:40 +02:00
|
|
|
downloadDirectory: string;
|
2023-01-28 13:25:14 +01:00
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new EnvironmentInfo(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.arch = source["arch"];
|
|
|
|
this.buildType = source["buildType"];
|
|
|
|
this.platform = source["platform"];
|
2023-06-06 21:52:02 +02:00
|
|
|
this.version = source["version"];
|
2023-01-28 13:25:14 +01:00
|
|
|
this.hasMongoExport = source["hasMongoExport"];
|
|
|
|
this.hasMongoDump = source["hasMongoDump"];
|
2023-02-11 11:22:02 +01:00
|
|
|
this.homeDirectory = source["homeDirectory"];
|
|
|
|
this.dataDirectory = source["dataDirectory"];
|
2023-02-11 21:57:52 +01:00
|
|
|
this.logDirectory = source["logDirectory"];
|
2023-05-28 21:54:40 +02:00
|
|
|
this.downloadDirectory = source["downloadDirectory"];
|
2023-01-28 13:25:14 +01:00
|
|
|
}
|
|
|
|
}
|
2023-06-07 21:52:43 +02:00
|
|
|
export class HostInfo {
|
|
|
|
databases: string[];
|
|
|
|
status: {[key: string]: any};
|
|
|
|
systemInfo: {[key: string]: any};
|
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new HostInfo(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.databases = source["databases"];
|
|
|
|
this.status = source["status"];
|
|
|
|
this.systemInfo = source["systemInfo"];
|
|
|
|
}
|
|
|
|
}
|
2023-02-15 17:00:53 +01:00
|
|
|
export class QueryResult {
|
|
|
|
total: number;
|
|
|
|
results: string[];
|
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new QueryResult(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.total = source["total"];
|
|
|
|
this.results = source["results"];
|
|
|
|
}
|
|
|
|
}
|
2023-01-20 15:35:16 +01:00
|
|
|
export class Settings {
|
|
|
|
defaultLimit: number;
|
|
|
|
defaultSort: string;
|
|
|
|
autosubmitQuery: boolean;
|
2023-02-11 11:22:02 +01:00
|
|
|
defaultExportDirectory: string;
|
2023-01-20 15:35:16 +01:00
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new Settings(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.defaultLimit = source["defaultLimit"];
|
|
|
|
this.defaultSort = source["defaultSort"];
|
|
|
|
this.autosubmitQuery = source["autosubmitQuery"];
|
2023-02-11 11:22:02 +01:00
|
|
|
this.defaultExportDirectory = source["defaultExportDirectory"];
|
2023-01-20 15:35:16 +01:00
|
|
|
}
|
|
|
|
}
|
2023-01-11 20:41:15 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|