2023-01-14 19:47:29 +00:00
|
|
|
export namespace app {
|
2023-01-11 19:41:15 +00:00
|
|
|
|
2023-01-20 14:35:16 +00:00
|
|
|
export class Settings {
|
|
|
|
defaultLimit: number;
|
|
|
|
defaultSort: string;
|
|
|
|
autosubmitQuery: boolean;
|
|
|
|
|
|
|
|
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-01-11 19:41:15 +00:00
|
|
|
export class findResult {
|
|
|
|
total: number;
|
|
|
|
results: any;
|
|
|
|
|
|
|
|
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"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|