@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -40,3 +40,3 @@ import { CrowdinApi, ResponseList, ResponseObject, PatchRequest, BooleanInt } from '../core'; | ||
*/ | ||
getProject(projectId: number): Promise<ResponseObject<ProjectsGroupsModel.Project>>; | ||
getProject(projectId: number): Promise<ResponseObject<ProjectsGroupsModel.Project | ProjectsGroupsModel.ProjectSettings>>; | ||
/** | ||
@@ -50,12 +50,3 @@ * @param projectId project identifier | ||
*/ | ||
editProject(projectId: number, request: PatchRequest[]): Promise<ResponseObject<ProjectsGroupsModel.Project>>; | ||
/** | ||
* @param projectId project identifier | ||
*/ | ||
getProjectSettings(projectId: number): Promise<ResponseObject<ProjectsGroupsModel.ProjectSettings>>; | ||
/** | ||
* @param projectId project identifier | ||
* @param request request body | ||
*/ | ||
editProjectSettings(projectId: number, request: PatchRequest[]): Promise<ResponseObject<ProjectsGroupsModel.ProjectSettings>>; | ||
editProject(projectId: number, request: PatchRequest[]): Promise<ResponseObject<ProjectsGroupsModel.Project | ProjectsGroupsModel.ProjectSettings>>; | ||
} | ||
@@ -114,4 +105,3 @@ export declare namespace ProjectsGroupsModel { | ||
} | ||
interface ProjectSettings { | ||
projectId: number; | ||
interface ProjectSettings extends Project { | ||
translateDuplicates: number; | ||
@@ -126,6 +116,6 @@ isMtAllowed: boolean; | ||
inContext: boolean; | ||
jiptPseudoLanguageId: number; | ||
inContextPseudoLanguageId: string; | ||
qaCheckIsActive: boolean; | ||
lowestQualityProjectGoalId: number; | ||
qaCheckCategories: CheckCategories; | ||
customQaCheckIds: string[]; | ||
languageMapping: LanguageMapping; | ||
@@ -132,0 +122,0 @@ } |
@@ -89,17 +89,2 @@ "use strict"; | ||
} | ||
/** | ||
* @param projectId project identifier | ||
*/ | ||
getProjectSettings(projectId) { | ||
const url = `${this.url}/projects/${projectId}/settings`; | ||
return this.get(url, this.defaultConfig()); | ||
} | ||
/** | ||
* @param projectId project identifier | ||
* @param request request body | ||
*/ | ||
editProjectSettings(projectId, request) { | ||
const url = `${this.url}/projects/${projectId}/settings`; | ||
return this.patch(url, request, this.defaultConfig()); | ||
} | ||
} | ||
@@ -106,0 +91,0 @@ exports.ProjectsGroups = ProjectsGroups; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.5.0", | ||
"version": "1.5.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
157682
3914