diff --git a/frontend/wailsjs/go/api/App.d.ts b/frontend/wailsjs/go/api/App.d.ts index cae403d..ed1db93 100755 --- a/frontend/wailsjs/go/api/App.d.ts +++ b/frontend/wailsjs/go/api/App.d.ts @@ -46,6 +46,8 @@ export function GetCurrentWorkspace():Promise>; export function GetCurrentWorkspaceNode():Promise>; +export function GetFolderMetadata(arg1:string):Promise; + export function GetPermissions():Promise>; export function GetPluginAssetContent(arg1:string,arg2:string):Promise; @@ -86,6 +88,8 @@ export function ListWorkspaces():Promise|string>; export function MoveVaultPath(arg1:string,arg2:string,arg3:string,arg4:files.MoveOptions):Promise; +export function MoveWorkspace(arg1:string,arg2:string):Promise; + export function MoveWorkspaceNode(arg1:string,arg2:string):Promise; export function OpenExternalURL(arg1:string,arg2:string):Promise; @@ -172,8 +176,12 @@ export function SetCurrentWorkspace(arg1:string):Promise; export function SetCurrentWorkspaceNode(arg1:string):Promise; +export function SetFolderMetadata(arg1:string,arg2:workspace.FolderMetadata):Promise; + export function SetNotificationService(arg1:api.notificationService):Promise; +export function SetTrayReady(arg1:boolean):Promise; + export function ShowVaultPathInFolder(arg1:string,arg2:string):Promise; export function ShowWindow():Promise; diff --git a/frontend/wailsjs/go/api/App.js b/frontend/wailsjs/go/api/App.js index 315fc09..cf84db4 100755 --- a/frontend/wailsjs/go/api/App.js +++ b/frontend/wailsjs/go/api/App.js @@ -74,6 +74,10 @@ export function GetCurrentWorkspaceNode() { return window['go']['api']['App']['GetCurrentWorkspaceNode'](); } +export function GetFolderMetadata(arg1) { + return window['go']['api']['App']['GetFolderMetadata'](arg1); +} + export function GetPermissions() { return window['go']['api']['App']['GetPermissions'](); } @@ -154,6 +158,10 @@ export function MoveVaultPath(arg1, arg2, arg3, arg4) { return window['go']['api']['App']['MoveVaultPath'](arg1, arg2, arg3, arg4); } +export function MoveWorkspace(arg1, arg2) { + return window['go']['api']['App']['MoveWorkspace'](arg1, arg2); +} + export function MoveWorkspaceNode(arg1, arg2) { return window['go']['api']['App']['MoveWorkspaceNode'](arg1, arg2); } @@ -326,10 +334,18 @@ export function SetCurrentWorkspaceNode(arg1) { return window['go']['api']['App']['SetCurrentWorkspaceNode'](arg1); } +export function SetFolderMetadata(arg1, arg2) { + return window['go']['api']['App']['SetFolderMetadata'](arg1, arg2); +} + export function SetNotificationService(arg1) { return window['go']['api']['App']['SetNotificationService'](arg1); } +export function SetTrayReady(arg1) { + return window['go']['api']['App']['SetTrayReady'](arg1); +} + export function ShowVaultPathInFolder(arg1, arg2) { return window['go']['api']['App']['ShowVaultPathInFolder'](arg1, arg2); } diff --git a/frontend/wailsjs/go/models.ts b/frontend/wailsjs/go/models.ts index 48ca0c9..a646316 100755 --- a/frontend/wailsjs/go/models.ts +++ b/frontend/wailsjs/go/models.ts @@ -1,5 +1,19 @@ export namespace api { - + + export class FlatWorkspaceTree { + pluginId: string; + component: string; + + static createFrom(source: any = {}) { + return new FlatWorkspaceTree(source); + } + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.pluginId = source["pluginId"]; + this.component = source["component"]; + } + } export class FlatContextMenuEntry { pluginId: string; id: string; @@ -8,11 +22,11 @@ export namespace api { group?: string; capability?: string; handler?: string; - + static createFrom(source: any = {}) { return new FlatContextMenuEntry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -31,11 +45,11 @@ export namespace api { icon?: string; capability?: string; handler?: string; - + static createFrom(source: any = {}) { return new FlatAction(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -52,11 +66,11 @@ export namespace api { title: string; icon?: string; component: string; - + static createFrom(source: any = {}) { return new FlatWorkspaceItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -72,11 +86,11 @@ export namespace api { extensions?: string[]; contexts?: string[]; modes?: string[]; - + static createFrom(source: any = {}) { return new FlatOpenProviderSupport(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.kind = source["kind"]; @@ -93,11 +107,11 @@ export namespace api { priority?: number; component: string; supports: FlatOpenProviderSupport[]; - + static createFrom(source: any = {}) { return new FlatOpenProvider(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -107,7 +121,7 @@ export namespace api { this.component = source["component"]; this.supports = this.convertValues(source["supports"], FlatOpenProviderSupport); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -132,11 +146,11 @@ export namespace api { label: string; position?: string; handler?: string; - + static createFrom(source: any = {}) { return new FlatStatusBarItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -153,11 +167,11 @@ export namespace api { icon?: string; view: string; position?: number; - + static createFrom(source: any = {}) { return new FlatSidebarItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -174,11 +188,11 @@ export namespace api { title: string; icon?: string; component: string; - + static createFrom(source: any = {}) { return new FlatSettingsPanel(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -193,11 +207,11 @@ export namespace api { id: string; label: string; handler: string; - + static createFrom(source: any = {}) { return new FlatSearchProvider(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -212,11 +226,11 @@ export namespace api { title: string; icon?: string; handler?: string; - + static createFrom(source: any = {}) { return new FlatCommand(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -232,11 +246,11 @@ export namespace api { title: string; icon?: string; component: string; - + static createFrom(source: any = {}) { return new FlatView(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.pluginId = source["pluginId"]; @@ -258,11 +272,12 @@ export namespace api { fileActions: FlatAction[]; noteActions: FlatAction[]; contextMenuEntries: FlatContextMenuEntry[]; - + workspaceTree?: FlatWorkspaceTree; + static createFrom(source: any = {}) { return new ContributionSummary(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.views = this.convertValues(source["views"], FlatView); @@ -276,8 +291,9 @@ export namespace api { this.fileActions = this.convertValues(source["fileActions"], FlatAction); this.noteActions = this.convertValues(source["noteActions"], FlatAction); this.contextMenuEntries = this.convertValues(source["contextMenuEntries"], FlatContextMenuEntry); + this.workspaceTree = this.convertValues(source["workspaceTree"], FlatWorkspaceTree); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -296,17 +312,18 @@ export namespace api { return a; } } - - - - - - - - - - - + + + + + + + + + + + + export class SyncStatusDTO { configured: boolean; serverUrl: string; @@ -322,11 +339,11 @@ export namespace api { lastError: string; lastWarning: string; statusLabel: string; - + static createFrom(source: any = {}) { return new SyncStatusDTO(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.configured = source["configured"]; @@ -349,17 +366,17 @@ export namespace api { } export namespace capability { - + export class Entry { name: string; description?: string; pluginId: string; status: string; - + static createFrom(source: any = {}) { return new Entry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.name = source["name"]; @@ -372,17 +389,17 @@ export namespace capability { } export namespace files { - + export class FileBytes { relativePath: string; size: number; mimeHint: string; dataBase64: string; - + static createFrom(source: any = {}) { return new FileBytes(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.relativePath = source["relativePath"]; @@ -402,11 +419,11 @@ export namespace files { isReserved: boolean; canRead: boolean; canWrite: boolean; - + static createFrom(source: any = {}) { return new FileEntry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.name = source["name"]; @@ -434,11 +451,11 @@ export namespace files { isReserved: boolean; canRead: boolean; canWrite: boolean; - + static createFrom(source: any = {}) { return new FileMetadata(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.relativePath = source["relativePath"]; @@ -457,11 +474,11 @@ export namespace files { } export class MoveOptions { overwrite: boolean; - + static createFrom(source: any = {}) { return new MoveOptions(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.overwrite = source["overwrite"]; @@ -470,11 +487,11 @@ export namespace files { export class RestoreOptions { targetPath?: string; overwrite: boolean; - + static createFrom(source: any = {}) { return new RestoreOptions(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.targetPath = source["targetPath"]; @@ -489,11 +506,11 @@ export namespace files { originalType: string; basename: string; size: number; - + static createFrom(source: any = {}) { return new TrashEntry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.originalPath = source["originalPath"]; @@ -511,11 +528,11 @@ export namespace files { trashId: string; deletedAt: string; size: number; - + static createFrom(source: any = {}) { return new TrashResult(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.originalPath = source["originalPath"]; @@ -528,11 +545,11 @@ export namespace files { export class WriteOptions { createIfMissing: boolean; overwrite: boolean; - + static createFrom(source: any = {}) { return new WriteOptions(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.createIfMissing = source["createIfMissing"]; @@ -543,17 +560,17 @@ export namespace files { } export namespace notifications { - + export class Request { id: string; dueAt: string; title: string; body?: string; - + static createFrom(source: any = {}) { return new Request(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -566,16 +583,16 @@ export namespace notifications { } export namespace permissions { - + export class Entry { name: string; description: string; dangerous: boolean; - + static createFrom(source: any = {}) { return new Entry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.name = source["name"]; @@ -587,15 +604,15 @@ export namespace permissions { } export namespace plugin { - + export class HealthCheckConfig { type?: string; timeout?: number; - + static createFrom(source: any = {}) { return new HealthCheckConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.type = source["type"]; @@ -606,18 +623,18 @@ export namespace plugin { type: string; entry: Record; healthCheck?: HealthCheckConfig; - + static createFrom(source: any = {}) { return new BackendConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.type = source["type"]; this.entry = source["entry"]; this.healthCheck = this.convertValues(source["healthCheck"], HealthCheckConfig); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -642,11 +659,11 @@ export namespace plugin { icon?: string; capability?: string; handler?: string; - + static createFrom(source: any = {}) { return new ContributionAction(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -660,11 +677,11 @@ export namespace plugin { id: string; events?: string[]; handler: string; - + static createFrom(source: any = {}) { return new ContributionActivityProvider(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -678,11 +695,11 @@ export namespace plugin { keybinding?: string; icon?: string; handler?: string; - + static createFrom(source: any = {}) { return new ContributionCommand(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -699,11 +716,11 @@ export namespace plugin { group?: string; capability?: string; handler?: string; - + static createFrom(source: any = {}) { return new ContributionContextMenuEntry(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -720,11 +737,11 @@ export namespace plugin { extensions?: string[]; contexts?: string[]; modes?: string[]; - + static createFrom(source: any = {}) { return new OpenProviderSupport(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.kind = source["kind"]; @@ -740,11 +757,11 @@ export namespace plugin { priority?: number; component: string; supports: OpenProviderSupport[]; - + static createFrom(source: any = {}) { return new ContributionOpenProvider(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -753,7 +770,7 @@ export namespace plugin { this.component = source["component"]; this.supports = this.convertValues(source["supports"], OpenProviderSupport); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -776,11 +793,11 @@ export namespace plugin { id: string; label: string; handler: string; - + static createFrom(source: any = {}) { return new ContributionSearchProvider(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -793,11 +810,11 @@ export namespace plugin { title: string; component: string; icon?: string; - + static createFrom(source: any = {}) { return new ContributionSettingsPanel(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -812,11 +829,11 @@ export namespace plugin { icon?: string; view: string; position?: number; - + static createFrom(source: any = {}) { return new ContributionSidebarItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -831,11 +848,11 @@ export namespace plugin { label: string; position?: string; handler?: string; - + static createFrom(source: any = {}) { return new ContributionStatusBarItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -849,11 +866,11 @@ export namespace plugin { title: string; icon?: string; component: string; - + static createFrom(source: any = {}) { return new ContributionView(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -867,11 +884,11 @@ export namespace plugin { title: string; icon?: string; component: string; - + static createFrom(source: any = {}) { return new ContributionWorkspaceItem(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -880,6 +897,18 @@ export namespace plugin { this.component = source["component"]; } } + export class ContributionWorkspaceTree { + component: string; + + static createFrom(source: any = {}) { + return new ContributionWorkspaceTree(source); + } + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.component = source["component"]; + } + } export class Contributions { views?: ContributionView[]; commands?: ContributionCommand[]; @@ -893,11 +922,12 @@ export namespace plugin { statusBarItems?: ContributionStatusBarItem[]; openProviders?: ContributionOpenProvider[]; workspaceItems?: ContributionWorkspaceItem[]; - + workspaceTree?: ContributionWorkspaceTree; + static createFrom(source: any = {}) { return new Contributions(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.views = this.convertValues(source["views"], ContributionView); @@ -912,8 +942,9 @@ export namespace plugin { this.statusBarItems = this.convertValues(source["statusBarItems"], ContributionStatusBarItem); this.openProviders = this.convertValues(source["openProviders"], ContributionOpenProvider); this.workspaceItems = this.convertValues(source["workspaceItems"], ContributionWorkspaceItem); + this.workspaceTree = this.convertValues(source["workspaceTree"], ContributionWorkspaceTree); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -935,26 +966,26 @@ export namespace plugin { export class FrontendConfig { entry: string; style?: string; - + static createFrom(source: any = {}) { return new FrontendConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.entry = source["entry"]; this.style = source["style"]; } } - + export class LocalizationConfig { defaultLocale: string; locales: Record; - + static createFrom(source: any = {}) { return new LocalizationConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.defaultLocale = source["defaultLocale"]; @@ -964,11 +995,11 @@ export namespace plugin { export class SyncConfig { namespaces?: string[]; participate?: boolean; - + static createFrom(source: any = {}) { return new SyncConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.namespaces = source["namespaces"]; @@ -977,11 +1008,11 @@ export namespace plugin { } export class MigrationConfig { path?: string; - + static createFrom(source: any = {}) { return new MigrationConfig(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.path = source["path"]; @@ -1006,11 +1037,11 @@ export namespace plugin { migrations?: MigrationConfig; contributes?: Contributions; sync?: SyncConfig; - + static createFrom(source: any = {}) { return new Manifest(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.schemaVersion = source["schemaVersion"]; @@ -1032,7 +1063,7 @@ export namespace plugin { this.contributes = this.convertValues(source["contributes"], Contributions); this.sync = this.convertValues(source["sync"], SyncConfig); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1051,19 +1082,19 @@ export namespace plugin { return a; } } - - + + export class Plugin { manifest: Manifest; status: string; error?: string; enabled: boolean; rootPath: string; - + static createFrom(source: any = {}) { return new Plugin(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.manifest = this.convertValues(source["manifest"], Manifest); @@ -1072,7 +1103,7 @@ export namespace plugin { this.enabled = source["enabled"]; this.rootPath = source["rootPath"]; } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1095,18 +1126,18 @@ export namespace plugin { } export namespace workbench { - + export class OpenResourceContext { sourcePluginId?: string; sourceView?: string; isInsideNotesFolder?: boolean; notesScopePath?: string; notesMode?: boolean; - + static createFrom(source: any = {}) { return new OpenResourceContext(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.sourcePluginId = source["sourcePluginId"]; @@ -1123,11 +1154,11 @@ export namespace workbench { mime?: string; extension?: string; context?: OpenResourceContext; - + static createFrom(source: any = {}) { return new OpenResourceRequest(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.kind = source["kind"]; @@ -1137,7 +1168,7 @@ export namespace workbench { this.extension = source["extension"]; this.context = this.convertValues(source["context"], OpenResourceContext); } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1163,11 +1194,11 @@ export namespace workbench { providerComponent?: string; request: OpenResourceRequest; message?: string; - + static createFrom(source: any = {}) { return new OpenResourceResult(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.status = source["status"]; @@ -1177,7 +1208,7 @@ export namespace workbench { this.request = this.convertValues(source["request"], OpenResourceRequest); this.message = source["message"]; } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1203,11 +1234,11 @@ export namespace workbench { providerComponent: string; request: OpenResourceRequest; openedAt: string; - + static createFrom(source: any = {}) { return new OpenedResource(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -1217,7 +1248,7 @@ export namespace workbench { this.request = this.convertValues(source["request"], OpenResourceRequest); this.openedAt = source["openedAt"]; } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1240,11 +1271,11 @@ export namespace workbench { defaultTextEditorProvider?: string; defaultMarkdownEditorProvider?: string; defaultNotesMarkdownEditorProvider?: string; - + static createFrom(source: any = {}) { return new Preferences(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.defaultTextEditorProvider = source["defaultTextEditorProvider"]; @@ -1256,18 +1287,36 @@ export namespace workbench { } export namespace workspace { - + + export class FolderMetadata { + icon?: string; + color?: string; + order?: number; + updatedAt?: string; + + static createFrom(source: any = {}) { + return new FolderMetadata(source); + } + + constructor(source: any = {}) { + if ('string' === typeof source) source = JSON.parse(source); + this.icon = source["icon"]; + this.color = source["color"]; + this.order = source["order"]; + this.updatedAt = source["updatedAt"]; + } + } export class TemplateSnapshot { templateId: string; templateName: string; templateVersion: number; appliedAt: string; workspaceTools?: string[]; - + static createFrom(source: any = {}) { return new TemplateSnapshot(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.templateId = source["templateId"]; @@ -1280,27 +1329,29 @@ export namespace workspace { export class Metadata { workspaceId?: string; workspaceName: string; + workspacePath?: string; createdFromTemplate?: TemplateSnapshot; features?: Record; folders?: Record; workspaceTools?: string[]; updatedAt?: string; - + static createFrom(source: any = {}) { return new Metadata(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.workspaceId = source["workspaceId"]; this.workspaceName = source["workspaceName"]; + this.workspacePath = source["workspacePath"]; this.createdFromTemplate = this.convertValues(source["createdFromTemplate"], TemplateSnapshot); this.features = source["features"]; this.folders = source["folders"]; this.workspaceTools = source["workspaceTools"]; this.updatedAt = source["updatedAt"]; } - + convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; @@ -1322,29 +1373,29 @@ export namespace workspace { export class MetadataPatch { features?: Record; folders?: Record; - + static createFrom(source: any = {}) { return new MetadataPatch(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.features = source["features"]; this.folders = source["folders"]; } } - + export class TrashResult { workspaceId: string; originalPath: string; trashPath: string; trashId: string; deletedAt: string; - + static createFrom(source: any = {}) { return new TrashResult(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.workspaceId = source["workspaceId"]; @@ -1357,16 +1408,18 @@ export namespace workspace { export class Workspace { id: string; name: string; + path: string; rootPath: string; - + static createFrom(source: any = {}) { return new Workspace(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; this.name = source["name"]; + this.path = source["path"]; this.rootPath = source["rootPath"]; } } @@ -1374,11 +1427,11 @@ export namespace workspace { workspaceId: string; rootPath: string; state: string; - + static createFrom(source: any = {}) { return new WorkspaceIdentity(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.workspaceId = source["workspaceId"]; @@ -1392,11 +1445,11 @@ export namespace workspace { description: string; version: number; workspaceTools: string[]; - + static createFrom(source: any = {}) { return new WorkspaceTemplate(source); } - + constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.id = source["id"]; @@ -1408,3 +1461,4 @@ export namespace workspace { } } +