2023-01-14 19:47:29 +00:00
|
|
|
export namespace app {
|
2023-01-11 19:41:15 +00:00
|
|
|
|
2023-06-07 19:30:22 +00: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 12:25:14 +00:00
|
|
|
export class EnvironmentInfo {
|
|
|
|
arch: string;
|
|
|
|
buildType: string;
|
|
|
|
platform: string;
|
2023-06-06 19:52:02 +00:00
|
|
|
version: string;
|
2023-01-28 12:25:14 +00:00
|
|
|
hasMongoExport: boolean;
|
|
|
|
hasMongoDump: boolean;
|
2023-02-11 10:22:02 +00:00
|
|
|
homeDirectory: string;
|
|
|
|
dataDirectory: string;
|
2023-02-11 20:57:52 +00:00
|
|
|
logDirectory: string;
|
2023-05-28 19:54:40 +00:00
|
|
|
downloadDirectory: string;
|
2023-01-28 12:25:14 +00: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 19:52:02 +00:00
|
|
|
this.version = source["version"];
|
2023-01-28 12:25:14 +00:00
|
|
|
this.hasMongoExport = source["hasMongoExport"];
|
|
|
|
this.hasMongoDump = source["hasMongoDump"];
|
2023-02-11 10:22:02 +00:00
|
|
|
this.homeDirectory = source["homeDirectory"];
|
|
|
|
this.dataDirectory = source["dataDirectory"];
|
2023-02-11 20:57:52 +00:00
|
|
|
this.logDirectory = source["logDirectory"];
|
2023-05-28 19:54:40 +00:00
|
|
|
this.downloadDirectory = source["downloadDirectory"];
|
2023-01-28 12:25:14 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-15 16:00:53 +00: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 14:35:16 +00:00
|
|
|
export class Settings {
|
|
|
|
defaultLimit: number;
|
|
|
|
defaultSort: string;
|
|
|
|
autosubmitQuery: boolean;
|
2023-02-11 10:22:02 +00:00
|
|
|
defaultExportDirectory: string;
|
2023-01-20 14:35:16 +00: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 10:22:02 +00:00
|
|
|
this.defaultExportDirectory = source["defaultExportDirectory"];
|
2023-01-20 14:35:16 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-11 19:41:15 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|