feat: bridge permanent trash deletion to plugins
This commit is contained in:
Vendored
+6
-4
@@ -20,6 +20,8 @@ export function CreateWorkspace(arg1:string,arg2:string):Promise<workspace.Works
|
||||
|
||||
export function CreateWorkspaceNode(arg1:string,arg2:string,arg3:string):Promise<Record<string, any>>;
|
||||
|
||||
export function DeleteVaultTrash(arg1:string,arg2:string):Promise<string>;
|
||||
|
||||
export function DisablePlugin(arg1:string):Promise<string>;
|
||||
|
||||
export function EditWorkbenchResource(arg1:string,arg2:Record<string, any>):Promise<workbench.OpenResourceResult|string>;
|
||||
@@ -80,6 +82,10 @@ export function OpenVaultPathExternal(arg1:string,arg2:string):Promise<string>;
|
||||
|
||||
export function OpenWorkbenchResource(arg1:string,arg2:Record<string, any>):Promise<workbench.OpenResourceResult|string>;
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginSecretsCopyLink(arg1:string,arg2:string):Promise<string|string>;
|
||||
|
||||
export function PluginSecretsDelete(arg1:string,arg2:string):Promise<string>;
|
||||
@@ -94,10 +100,6 @@ export function PluginSecretsUnlock(arg1:string,arg2:string):Promise<string>;
|
||||
|
||||
export function PluginSecretsWrite(arg1:string,arg2:Record<string, any>):Promise<Record<string, any>|string>;
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginSyncConfigure(arg1:string,arg2:string,arg3:string,arg4:string):Promise<string>;
|
||||
|
||||
export function PluginSyncDisconnect(arg1:string):Promise<string>;
|
||||
|
||||
@@ -26,6 +26,10 @@ export function CreateWorkspaceNode(arg1, arg2, arg3) {
|
||||
return window['go']['api']['App']['CreateWorkspaceNode'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function DeleteVaultTrash(arg1, arg2) {
|
||||
return window['go']['api']['App']['DeleteVaultTrash'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function DisablePlugin(arg1) {
|
||||
return window['go']['api']['App']['DisablePlugin'](arg1);
|
||||
}
|
||||
@@ -146,6 +150,14 @@ export function OpenWorkbenchResource(arg1, arg2) {
|
||||
return window['go']['api']['App']['OpenWorkbenchResource'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1) {
|
||||
return window['go']['api']['App']['PluginBrowserReceiverPairing'](arg1);
|
||||
}
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1) {
|
||||
return window['go']['api']['App']['PluginRotateBrowserReceiverToken'](arg1);
|
||||
}
|
||||
|
||||
export function PluginSecretsCopyLink(arg1, arg2) {
|
||||
return window['go']['api']['App']['PluginSecretsCopyLink'](arg1, arg2);
|
||||
}
|
||||
@@ -174,14 +186,6 @@ export function PluginSecretsWrite(arg1, arg2) {
|
||||
return window['go']['api']['App']['PluginSecretsWrite'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1) {
|
||||
return window['go']['api']['App']['PluginBrowserReceiverPairing'](arg1);
|
||||
}
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1) {
|
||||
return window['go']['api']['App']['PluginRotateBrowserReceiverToken'](arg1);
|
||||
}
|
||||
|
||||
export function PluginSyncConfigure(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['api']['App']['PluginSyncConfigure'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
@@ -484,6 +484,7 @@ export namespace files {
|
||||
deletedAt: string;
|
||||
originalType: string;
|
||||
basename: string;
|
||||
size: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new TrashEntry(source);
|
||||
@@ -497,6 +498,7 @@ export namespace files {
|
||||
this.deletedAt = source["deletedAt"];
|
||||
this.originalType = source["originalType"];
|
||||
this.basename = source["basename"];
|
||||
this.size = source["size"];
|
||||
}
|
||||
}
|
||||
export class TrashResult {
|
||||
@@ -504,6 +506,7 @@ export namespace files {
|
||||
trashPath: string;
|
||||
trashId: string;
|
||||
deletedAt: string;
|
||||
size: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new TrashResult(source);
|
||||
@@ -515,6 +518,7 @@ export namespace files {
|
||||
this.trashPath = source["trashPath"];
|
||||
this.trashId = source["trashId"];
|
||||
this.deletedAt = source["deletedAt"];
|
||||
this.size = source["size"];
|
||||
}
|
||||
}
|
||||
export class WriteOptions {
|
||||
@@ -1315,4 +1319,3 @@ export namespace workspace {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user