Skip to content

FoldersResource

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:18

Folders of the client’s context. "root" is accepted wherever a folder id is.

root(): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:22

The application’s root folder (folder_id: "root", parent_id: null, path: "/").

Promise<Folder>


create(input): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:27

Creates a folder under parent_id (edit on the parent). Carries an Idempotency-Key.

CreateFolderInput

Promise<Folder>


get(folderId): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:34

string

Promise<Folder>


children(folderId, query?): Promise<Page<File | Folder>>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:39

One page of children, folders first when sort=name; filtered to what the user may view.

string

ChildrenQuery = {}

Promise<Page<File | Folder>>


path(folderId): Promise<FolderPath>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:56

The breadcrumb from the root down.

string

Promise<FolderPath>


update(folderId, patch, options?): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:61

Renames, describes or moves. { ifMatch: folder.revision } makes it conditional (412 on a stale revision).

string

UpdateFolderInput

UpdateOptions = {}

Promise<Folder>


move(folderId, input, options?): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:73

Moves the folder under parent_id; invalid_move into its own subtree.

string

string

UpdateOptions = {}

Promise<Folder>


copy(folderId, input): Promise<FolderCopyResult>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:82

Copies the subtree asynchronously: { job_id, folder }. Carries an Idempotency-Key.

string

string

string

Promise<FolderCopyResult>


delete(folderId): Promise<JobAccepted | null>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:93

Trashes the folder: { job_id } for a subtree, null for an empty folder.

string

Promise<JobAccepted | null>


restore(folderId): Promise<JobAccepted>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:102

Restores a trashed folder and its subtree: { job_id }.

string

Promise<JobAccepted>


releaseManagement(folderId, input): Promise<Folder>

Defined in: libs/ccs-files-user-client/src/core/resources/folders.ts:113

Releases an application’s mark on the folder (an emergency action, audited folder.management_released with the reason): the folder and its subtree become editable again, unless an outer marked folder still covers them. Only the tenant owner (me.capabilities() answers tenant_owner: true); anyone else gets 403 tenant_owner_required. Call it on the folder that carries the mark (managed_by.managed_folder_id); any other folder answers 400 invalid_request. Never retried.

string

ReleaseManagementInput

Promise<Folder>