mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
66 lines
1.9 KiB
TypeScript
Executable File
Generated
66 lines
1.9 KiB
TypeScript
Executable File
Generated
export namespace app {
|
|
|
|
export class EnvironmentInfo {
|
|
arch: string;
|
|
buildType: string;
|
|
platform: string;
|
|
hasMongoExport: boolean;
|
|
hasMongoDump: boolean;
|
|
homeDirectory: string;
|
|
dataDirectory: string;
|
|
logDirectory: string;
|
|
downloadDirectory: string;
|
|
|
|
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"];
|
|
this.homeDirectory = source["homeDirectory"];
|
|
this.dataDirectory = source["dataDirectory"];
|
|
this.logDirectory = source["logDirectory"];
|
|
this.downloadDirectory = source["downloadDirectory"];
|
|
}
|
|
}
|
|
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"];
|
|
}
|
|
}
|
|
export class Settings {
|
|
defaultLimit: number;
|
|
defaultSort: string;
|
|
autosubmitQuery: boolean;
|
|
defaultExportDirectory: string;
|
|
|
|
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"];
|
|
this.defaultExportDirectory = source["defaultExportDirectory"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|