1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-06 20:10:05 +00:00

docs: documented moveFolder and deleteFolder functions

This commit is contained in:
Yury Shkoda
2020-09-07 17:07:58 +03:00
parent 5fce25d58a
commit df86b2e700
29 changed files with 3221 additions and 64 deletions

View File

@@ -1143,6 +1143,13 @@ export class SASViyaApiClient {
return folder
}
/**
* Changes location of the folder.
* @param from - current location of the folder
* @param to - new location of the folder
* @param folderName - folder name
* @param accessToken - an access token for an authorized request
*/
public async moveFolder(
from: string,
to: string,
@@ -1175,6 +1182,12 @@ export class SASViyaApiClient {
return folder
}
/**
* Moves folder to the recycle bin
* @param folderId - an id of the folder
* @param folderName - folder name
* @param accessToken - an access token for an authorized request
*/
public async deleteFolder(
folderId: string,
folderName: string,