@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.17.0 to 1.17.1
@@ -185,3 +185,3 @@ import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
*/ | ||
buildReviewedSourceFiles(projectId: number, request: SourceFilesModel.BuildReviewedSourceFilesRequest): Promise<ResponseObject<SourceFilesModel.ReviewedSourceFilesBuild>>; | ||
buildReviewedSourceFiles(projectId: number, request?: SourceFilesModel.BuildReviewedSourceFilesRequest): Promise<ResponseObject<SourceFilesModel.ReviewedSourceFilesBuild>>; | ||
/** | ||
@@ -356,3 +356,3 @@ * @param projectId project identifier | ||
interface BuildReviewedSourceFilesRequest { | ||
branchId: number; | ||
branchId?: number; | ||
} | ||
@@ -359,0 +359,0 @@ interface ListProjectBranchesOptions extends PaginationOptions { |
@@ -210,3 +210,3 @@ "use strict"; | ||
*/ | ||
buildReviewedSourceFiles(projectId, request) { | ||
buildReviewedSourceFiles(projectId, request = {}) { | ||
const url = `${this.url}/projects/${projectId}/strings/reviewed-builds`; | ||
@@ -213,0 +213,0 @@ return this.post(url, request, this.defaultConfig()); |
@@ -47,3 +47,3 @@ import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject, Status } from '../core'; | ||
*/ | ||
exportTm(tmId: number, request: TranslationMemoryModel.ExportTranslationMemoryRequest): Promise<ResponseObject<Status<TranslationMemoryModel.ExportTranslationMemoryAttribute>>>; | ||
exportTm(tmId: number, request?: TranslationMemoryModel.ExportTranslationMemoryRequest): Promise<ResponseObject<Status<TranslationMemoryModel.ExportTranslationMemoryAttribute>>>; | ||
/** | ||
@@ -50,0 +50,0 @@ * @param tmId tm identifier |
@@ -60,3 +60,3 @@ "use strict"; | ||
*/ | ||
exportTm(tmId, request) { | ||
exportTm(tmId, request = {}) { | ||
const url = `${this.url}/tms/${tmId}/exports`; | ||
@@ -63,0 +63,0 @@ return this.post(url, request, this.defaultConfig()); |
@@ -21,3 +21,3 @@ import { CrowdinApi, DownloadLink, PaginationOptions, ResponseList, ResponseObject, Status } from '../core'; | ||
*/ | ||
buildProjectDirectoryTranslation(projectId: number, directoryId: number, request: TranslationsModel.BuildProjectDirectoryTranslationRequest): Promise<ResponseObject<TranslationsModel.BuildProjectDirectoryTranslationResponse>>; | ||
buildProjectDirectoryTranslation(projectId: number, directoryId: number, request?: TranslationsModel.BuildProjectDirectoryTranslationRequest): Promise<ResponseObject<TranslationsModel.BuildProjectDirectoryTranslationResponse>>; | ||
/** | ||
@@ -24,0 +24,0 @@ * @param projectId project identifier |
@@ -30,3 +30,3 @@ "use strict"; | ||
*/ | ||
buildProjectDirectoryTranslation(projectId, directoryId, request) { | ||
buildProjectDirectoryTranslation(projectId, directoryId, request = {}) { | ||
const url = `${this.url}/projects/${projectId}/translations/builds/directories/${directoryId}`; | ||
@@ -33,0 +33,0 @@ const config = this.defaultConfig(); |
@@ -37,3 +37,3 @@ import { CrowdinApi, Pagination, PaginationOptions, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
*/ | ||
replaceProjectMemberPermissions(projectId: number, memberId: number, request: UsersModel.ReplaceProjectMemberRequest): Promise<ResponseObject<UsersModel.ProjectMember>>; | ||
replaceProjectMemberPermissions(projectId: number, memberId: number, request?: UsersModel.ReplaceProjectMemberRequest): Promise<ResponseObject<UsersModel.ProjectMember>>; | ||
/** | ||
@@ -40,0 +40,0 @@ * @param projectId project identifier |
@@ -45,3 +45,3 @@ "use strict"; | ||
*/ | ||
replaceProjectMemberPermissions(projectId, memberId, request) { | ||
replaceProjectMemberPermissions(projectId, memberId, request = {}) { | ||
const url = `${this.url}/projects/${projectId}/members/${memberId}`; | ||
@@ -48,0 +48,0 @@ return this.put(url, request, this.defaultConfig()); |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"description": "JavaScript library for Crowdin API v2.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303324