Pular para o conteúdo principal

Storage

With this namespace, you can quickly provide methods to manipulate the storage.

The namespace Storage provides to developers, methods to easily get and import workspaces.

//accessing to Storage methods
SW.Storage.{methodName}

getWorkspaces

Description

This method can be used to get workspaces from a given url.

Method(s)

1   declare function getWorkspaces(url: string): Promise<WorkspaceDefinitionDto[]>;
ParameterTypeRequiredDefaultsDescription
urlstringtrueUrl to get workspqces

Basic Usage

SW.Storage.getWorkspaces('workspacesURLExample');

importWorkspaces

Description

This method can be used to import workspaces from a given urls array to a tenant.

Method(s)

1   declare function importWorkspaces(urls: string[]): Promise<any>;
ParameterTypeRequiredDefaultsDescription
urlstring[]trueUrls to get workspqces

Basic Usage

SW.Storage.importWorkspaces(['workspacesURL1', 'workspacesURL2']);