1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-19 13:27:58 +00:00
rolens/frontend/wailsjs/go/models.ts

64 lines
1.8 KiB
TypeScript
Raw Normal View History

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-02-11 20:57:52 +00:00
logDirectory: 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-02-11 20:57:52 +00:00
this.logDirectory = source["logDirectory"];
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
}