@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.11.5 to 1.11.6
@@ -38,4 +38,5 @@ import { CrowdinApi, DownloadLink, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
* @param filter use to filter directories by name | ||
* @param recursion use to list directories recursively (works only when directoryId or branchId parameter is specified) | ||
*/ | ||
listProjectDirectories(projectId: number, branchId?: number, directoryId?: number, limit?: number, offset?: number, filter?: string): Promise<ResponseList<SourceFilesModel.Directory>>; | ||
listProjectDirectories(projectId: number, branchId?: number, directoryId?: number, limit?: number, offset?: number, filter?: string, recursion?: string): Promise<ResponseList<SourceFilesModel.Directory>>; | ||
/** | ||
@@ -42,0 +43,0 @@ * @param projectId project identifier |
@@ -57,4 +57,5 @@ "use strict"; | ||
* @param filter use to filter directories by name | ||
* @param recursion use to list directories recursively (works only when directoryId or branchId parameter is specified) | ||
*/ | ||
listProjectDirectories(projectId, branchId, directoryId, limit, offset, filter) { | ||
listProjectDirectories(projectId, branchId, directoryId, limit, offset, filter, recursion) { | ||
let url = `${this.url}/projects/${projectId}/directories`; | ||
@@ -64,2 +65,3 @@ url = this.addQueryParam(url, 'branchId', branchId); | ||
url = this.addQueryParam(url, 'filter', filter); | ||
url = this.addQueryParam(url, 'recursion', recursion); | ||
return this.getList(url, limit, offset); | ||
@@ -66,0 +68,0 @@ } |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.11.5", | ||
"version": "1.11.6", | ||
"description": "JavaScript library for Crowdin API v2.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
270144
6746