2023-01-14 19:47:29 +00:00
|
|
|
export namespace app {
|
2023-01-11 19:41:15 +00:00
|
|
|
|
2023-01-28 12:25:14 +00:00
|
|
|
export class EnvironmentInfo {
|
|
|
|
arch: string;
|
|
|
|
buildType: string;
|
|
|
|
platform: string;
|
|
|
|
hasMongoExport: boolean;
|
|
|
|
hasMongoDump: boolean;
|
2023-02-11 10:22:02 +00:00
|
|
|
homeDirectory: string;
|
|
|
|
dataDirectory: 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"];
|
|
|
|
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-01-28 12:25:14 +00:00
|
|
|
}
|
|
|
|
}
|
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
|
|
|
export class findResult {
|
|
|
|
total: number;
|
2023-01-24 19:55:53 +00:00
|
|
|
results: string[];
|
2023-01-11 19:41:15 +00:00
|
|
|
|
|
|
|
static createFrom(source: any = {}) {
|
|
|
|
return new findResult(source);
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(source: any = {}) {
|
|
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
|
|
this.total = source["total"];
|
|
|
|
this.results = source["results"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|