SDK
API Documentation
folder
classes
Folderservice

Class: FolderService

Service for interacting with folders.

Implements

Constructors

new FolderService()

new FolderService(connectClient, folderMapper): FolderService

Parameters

ParameterTypeDescription
connectClientConnectClientInterfaceThe Connect client to use for API calls.
folderMapperFolderMapperThe mapper to use for converting API data to domain data.

Returns

FolderService

Defined in

service/FolderService.ts:21 (opens in a new tab)

Methods

createFolder()

createFolder(name, projectId, parentFolderId): Promise<CreateFolderResult>

Create a new folder in a specified project and parent folder.

Parameters

ParameterTypeDescription
namestringThe name of the folder to create.
projectIdstringThe ID of the project to which the folder belongs.
parentFolderIdstringThe ID of the parent folder.

Returns

Promise<CreateFolderResult>

Implementation of

FolderServiceInterface.createFolder

Defined in

service/FolderService.ts:75 (opens in a new tab)


deleteFolder()

deleteFolder(folderId, projectId): Promise<DeleteFolderResult>

Delete a folder.

Parameters

ParameterTypeDescription
folderIdstringThe ID of the folder to delete.
projectIdstringThe ID of the project to which the folder belongs.

Returns

Promise<DeleteFolderResult>

Implementation of

FolderServiceInterface.deleteFolder

Defined in

service/FolderService.ts:52 (opens in a new tab)


getFolder()

getFolder(folderId): Promise<GetFolderResult>

Get specified folder.

Parameters

ParameterTypeDescription
folderIdstringThe ID of the folder to get.

Returns

Promise<GetFolderResult>

Implementation of

FolderServiceInterface.getFolder

Defined in

service/FolderService.ts:29 (opens in a new tab)


updateFolder()

updateFolder(name, projectId, folderId): Promise<UpdateFolderResult>

Update a folders parameters. This can be used to rename a folder or to move it to a different parent folder and/or project.

Parameters

ParameterTypeDescription
namestringThe new name of the folder.
projectIdstringThe ID of the project to which the folder belongs.
folderIdstringThe ID of the folder to update.

Returns

Promise<UpdateFolderResult>

Implementation of

FolderServiceInterface.updateFolder

Defined in

service/FolderService.ts:104 (opens in a new tab)