mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-08 18:04:06 +00:00
Save queries
This commit is contained in:
10
frontend/wailsjs/go/app/App.d.ts
vendored
10
frontend/wailsjs/go/app/App.d.ts
vendored
@ -17,7 +17,7 @@ export function DropIndex(arg1:string,arg2:string,arg3:string,arg4:string):Promi
|
||||
|
||||
export function Environment():Promise<app.EnvironmentInfo>;
|
||||
|
||||
export function FindItems(arg1:string,arg2:string,arg3:string,arg4:string):Promise<app.findResult>;
|
||||
export function FindItems(arg1:string,arg2:string,arg3:string,arg4:string):Promise<app.QueryResult>;
|
||||
|
||||
export function GetIndexes(arg1:string,arg2:string,arg3:string):Promise<Array<primitive.M>>;
|
||||
|
||||
@ -43,10 +43,16 @@ export function RemoveItemById(arg1:string,arg2:string,arg3:string,arg4:string):
|
||||
|
||||
export function RemoveItems(arg1:string,arg2:string,arg3:string,arg4:string,arg5:boolean):Promise<number>;
|
||||
|
||||
export function RemoveQuery(arg1:string):Promise<void>;
|
||||
|
||||
export function RemoveView(arg1:string):Promise<void>;
|
||||
|
||||
export function RenameCollection(arg1:string,arg2:string,arg3:string,arg4:string):Promise<boolean>;
|
||||
|
||||
export function SaveQuery(arg1:string):Promise<string>;
|
||||
|
||||
export function SavedQueries():Promise<map[string]app.SavedQuery>;
|
||||
|
||||
export function Settings():Promise<app.Settings>;
|
||||
|
||||
export function TruncateCollection(arg1:string,arg2:string,arg3:string):Promise<boolean>;
|
||||
@ -55,6 +61,8 @@ export function UpdateHost(arg1:string,arg2:string):Promise<void>;
|
||||
|
||||
export function UpdateItems(arg1:string,arg2:string,arg3:string,arg4:string):Promise<number>;
|
||||
|
||||
export function UpdateQueries(arg1:string):Promise<boolean>;
|
||||
|
||||
export function UpdateSettings(arg1:string):Promise<app.Settings>;
|
||||
|
||||
export function UpdateViewStore(arg1:string):Promise<void>;
|
||||
|
@ -78,6 +78,10 @@ export function RemoveItems(arg1, arg2, arg3, arg4, arg5) {
|
||||
return window['go']['app']['App']['RemoveItems'](arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
export function RemoveQuery(arg1) {
|
||||
return window['go']['app']['App']['RemoveQuery'](arg1);
|
||||
}
|
||||
|
||||
export function RemoveView(arg1) {
|
||||
return window['go']['app']['App']['RemoveView'](arg1);
|
||||
}
|
||||
@ -86,6 +90,14 @@ export function RenameCollection(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['app']['App']['RenameCollection'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
export function SaveQuery(arg1) {
|
||||
return window['go']['app']['App']['SaveQuery'](arg1);
|
||||
}
|
||||
|
||||
export function SavedQueries() {
|
||||
return window['go']['app']['App']['SavedQueries']();
|
||||
}
|
||||
|
||||
export function Settings() {
|
||||
return window['go']['app']['App']['Settings']();
|
||||
}
|
||||
@ -102,6 +114,10 @@ export function UpdateItems(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['app']['App']['UpdateItems'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
export function UpdateQueries(arg1) {
|
||||
return window['go']['app']['App']['UpdateQueries'](arg1);
|
||||
}
|
||||
|
||||
export function UpdateSettings(arg1) {
|
||||
return window['go']['app']['App']['UpdateSettings'](arg1);
|
||||
}
|
||||
|
@ -26,6 +26,20 @@ export namespace app {
|
||||
this.logDirectory = source["logDirectory"];
|
||||
}
|
||||
}
|
||||
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;
|
||||
@ -44,20 +58,6 @@ export namespace app {
|
||||
this.defaultExportDirectory = source["defaultExportDirectory"];
|
||||
}
|
||||
}
|
||||
export class findResult {
|
||||
total: number;
|
||||
results: string[];
|
||||
|
||||
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"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user