1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-31 10:19:27 +00:00

62 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-01-14 20:47:29 +01:00
export namespace app {
2023-01-11 20:41:15 +01:00
2023-01-28 13:25:14 +01:00
export class EnvironmentInfo {
arch: string;
buildType: string;
platform: string;
hasMongoExport: boolean;
hasMongoDump: boolean;
2023-02-11 11:22:02 +01:00
homeDirectory: string;
dataDirectory: 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"];
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-01-28 13:25:14 +01:00
}
}
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
export class findResult {
total: number;
2023-01-24 20:55:53 +01:00
results: string[];
2023-01-11 20:41:15 +01: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"];
}
}
}