Folder
create(vaultId, name, parentId)
vaultId
(string
, required)name
(string
, required) - folder nameoptions
(NodeCreateOptions
, optional) - parent id, etc.returns
Promise<{ folderId, transactionId }>
- Promise with new folder id & corresponding transaction id
rename(folderId, name)
folderId
(string
, required)name
(string
, required) - new folder namereturns
Promise<{ transactionId }>
- Promise with corresponding transaction id
move(folderId, parentId)
Move the given folder along with its content to a different folder (parent):
folderId
(string
, required)parentId
(string
, required) - new parent folder idreturns
Promise<{ transactionId }>
- Promise with corresponding transaction id
revoke(folderId)
Revoke the given folder along with the sub-tree of stacks and folders:
folderId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
restore(folderId)
Restore the given folder along with the sub-tree of stacks and folders:
folderId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
delete(folderId)
Remove the folder along with the sub-tree of stacks and folders from the vault:
folderId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
get(folderId, options)
folderId
(string
, required)options
(GetOptions
, optional)returns
Promise<Folder>
- Promise with the folder object
listAll(vaultId, options)
vaultId
(string
, required)options
(ListOptions
, optional)returns
Promise<Array<Folder>>
- Promise with all folders within given vault
list(vaultId, options)
vaultId
(string
, required)options
(ListOptions
, optional)returns
Promise<{ items, nextToken }>
- Promise with paginated folders within given vault
Last updated