@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.11.1 to 1.11.2
@@ -104,2 +104,8 @@ import { BooleanInt, CrowdinApi, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
description?: string; | ||
translateDuplicates?: TranslateDuplicates; | ||
isMtAllowed?: boolean; | ||
autoSubstitution?: boolean; | ||
autoTranslateDialects?: boolean; | ||
publicDownloads?: boolean; | ||
useGlobalTm?: boolean; | ||
delayedWorkflowStart?: boolean; | ||
@@ -117,7 +123,15 @@ skipUntranslatedStrings?: boolean; | ||
saveMetaInfoInSource?: boolean; | ||
inContext?: boolean; | ||
inContextProcessHiddenStrings?: boolean; | ||
inContextPseudoLanguageId?: string; | ||
qaCheckIsActive?: boolean; | ||
qaCheckCategories?: CheckCategories; | ||
customQaCheckIds?: number[]; | ||
languageMapping?: LanguageMapping; | ||
} | ||
interface ProjectSettings extends Project { | ||
translateDuplicates: number; | ||
translateDuplicates: TranslateDuplicates; | ||
isMtAllowed: boolean; | ||
autoSubstitution: boolean; | ||
exportTranslatedOnly: boolean; | ||
skipUntranslatedStrings: boolean; | ||
@@ -132,2 +146,3 @@ skipUntranslatedFiles: boolean; | ||
inContext: boolean; | ||
inContextProcessHiddenStrings: string; | ||
inContextPseudoLanguageId: string; | ||
@@ -140,2 +155,3 @@ isSuspended: string; | ||
inContextPseudoLanguage: LanguagesModel.Language; | ||
delayedWorkflowStart: boolean; | ||
} | ||
@@ -166,2 +182,4 @@ enum Type { | ||
icu: boolean; | ||
terms: boolean; | ||
duplicate: boolean; | ||
} | ||
@@ -181,2 +199,10 @@ interface LanguageMapping { | ||
} | ||
enum TranslateDuplicates { | ||
SHOW = 0, | ||
HIDE_REGULAR_DETECTION = 1, | ||
SHOW_AUTO_TRANSLATE = 2, | ||
SHOW_WITHIN_VERION_BRANCH_REGULAR_DETECTION = 3, | ||
HIDE_STRICT_DETECTION = 4, | ||
SHOW_WITHIN_VERION_BRANCH_STRICT_DETECTION = 5 | ||
} | ||
} |
@@ -107,2 +107,11 @@ "use strict"; | ||
})(LanguageAccessPolicy = ProjectsGroupsModel.LanguageAccessPolicy || (ProjectsGroupsModel.LanguageAccessPolicy = {})); | ||
let TranslateDuplicates; | ||
(function (TranslateDuplicates) { | ||
TranslateDuplicates[TranslateDuplicates["SHOW"] = 0] = "SHOW"; | ||
TranslateDuplicates[TranslateDuplicates["HIDE_REGULAR_DETECTION"] = 1] = "HIDE_REGULAR_DETECTION"; | ||
TranslateDuplicates[TranslateDuplicates["SHOW_AUTO_TRANSLATE"] = 2] = "SHOW_AUTO_TRANSLATE"; | ||
TranslateDuplicates[TranslateDuplicates["SHOW_WITHIN_VERION_BRANCH_REGULAR_DETECTION"] = 3] = "SHOW_WITHIN_VERION_BRANCH_REGULAR_DETECTION"; | ||
TranslateDuplicates[TranslateDuplicates["HIDE_STRICT_DETECTION"] = 4] = "HIDE_STRICT_DETECTION"; | ||
TranslateDuplicates[TranslateDuplicates["SHOW_WITHIN_VERION_BRANCH_STRICT_DETECTION"] = 5] = "SHOW_WITHIN_VERION_BRANCH_STRICT_DETECTION"; | ||
})(TranslateDuplicates = ProjectsGroupsModel.TranslateDuplicates || (ProjectsGroupsModel.TranslateDuplicates = {})); | ||
})(ProjectsGroupsModel = exports.ProjectsGroupsModel || (exports.ProjectsGroupsModel = {})); |
@@ -206,2 +206,3 @@ import { CrowdinApi, DownloadLink, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
updatedAt: string; | ||
excludedTargetLanguages: string[]; | ||
} | ||
@@ -301,5 +302,7 @@ interface CreateFileRequest { | ||
translatableElements: string[]; | ||
srxStorageId: number; | ||
} | ||
interface OtherImportOptions { | ||
contentSegmentation: boolean; | ||
srxStorageId: number; | ||
} | ||
@@ -306,0 +309,0 @@ interface GeneralExportOptions { |
@@ -6,2 +6,12 @@ import { CrowdinApi, Pagination, ResponseList, ResponseObject } from '../core'; | ||
* @param projectId project identifier | ||
* @param search search users by firstName, lastName or username | ||
* @param role defines role type | ||
* @param languageId language identifier | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listProjectMembers(projectId: number, search?: string, role?: UsersModel.Role, languageId?: string, limit?: number, offset?: number): Promise<ResponseList<UsersModel.ProjectMember>>; | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param request request body | ||
@@ -15,3 +25,3 @@ */ | ||
*/ | ||
getProjectMemberPermissions(projectId: number, memberId: number): Promise<ResponseObject<UsersModel.ProjectMemberPermissions>>; | ||
getProjectMemberPermissions(projectId: number, memberId: number): Promise<ResponseObject<UsersModel.ProjectMember>>; | ||
/** | ||
@@ -22,3 +32,3 @@ * | ||
*/ | ||
replaceProjectMemberPermissions(projectId: number, memberId: number, request: UsersModel.ReplaceProjectMemberRequest): Promise<ResponseObject<UsersModel.ProjectMemberPermissions>>; | ||
replaceProjectMemberPermissions(projectId: number, memberId: number, request: UsersModel.ReplaceProjectMemberRequest): Promise<ResponseObject<UsersModel.ProjectMember>>; | ||
/** | ||
@@ -43,18 +53,2 @@ * | ||
getAuthenticatedUser(): Promise<ResponseObject<UsersModel.User>>; | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param search search users by firstName, lastName or username | ||
* @param role defines role type | ||
* @param languageId language identifier | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listProjectMembers(projectId: number, search?: string, role?: UsersModel.Role, languageId?: string, limit?: number, offset?: number): Promise<ResponseList<UsersModel.ProjectMember>>; | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param memberId member identifier | ||
*/ | ||
getMemberInfo(projectId: number, memberId: number): Promise<ResponseObject<UsersModel.ProjectMember>>; | ||
} | ||
@@ -89,2 +83,7 @@ export declare namespace UsersModel { | ||
fullName: string; | ||
firstName: string; | ||
lastName: string; | ||
isManager: boolean; | ||
managerOfGroup: Group; | ||
accessToAllWorkflowSteps: boolean; | ||
role: Role; | ||
@@ -95,3 +94,8 @@ permissions: any; | ||
timezone: string; | ||
givenAccessAt: string; | ||
} | ||
interface Group { | ||
id: number; | ||
name: string; | ||
} | ||
enum Role { | ||
@@ -104,17 +108,2 @@ ALL = "all", | ||
} | ||
interface ProjectMemberPermissions { | ||
id: number; | ||
username: string; | ||
firstName: string; | ||
lastName: string; | ||
isManager: boolean; | ||
managerOfGroup: Manager; | ||
accessToAllWorkflowSteps: boolean; | ||
permissions: any; | ||
givenAccessAt: string; | ||
} | ||
interface Manager { | ||
id: number; | ||
name: string; | ||
} | ||
interface AddProjectMemberRequest { | ||
@@ -127,4 +116,4 @@ userIds: number[]; | ||
interface AddProjectMemberResponse { | ||
skipped: ResponseObject<ProjectMemberPermissions>[]; | ||
added: ResponseObject<ProjectMemberPermissions>[]; | ||
skipped: ResponseObject<ProjectMember>[]; | ||
added: ResponseObject<ProjectMember>[]; | ||
pagination: Pagination; | ||
@@ -131,0 +120,0 @@ } |
@@ -9,2 +9,18 @@ "use strict"; | ||
* @param projectId project identifier | ||
* @param search search users by firstName, lastName or username | ||
* @param role defines role type | ||
* @param languageId language identifier | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listProjectMembers(projectId, search, role, languageId, limit, offset) { | ||
let url = `${this.url}/projects/${projectId}/members`; | ||
url = this.addQueryParam(url, 'search', search); | ||
url = this.addQueryParam(url, 'role', role); | ||
url = this.addQueryParam(url, 'languageId', languageId); | ||
return this.getList(url, limit, offset); | ||
} | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param request request body | ||
@@ -68,27 +84,2 @@ */ | ||
} | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param search search users by firstName, lastName or username | ||
* @param role defines role type | ||
* @param languageId language identifier | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listProjectMembers(projectId, search, role, languageId, limit, offset) { | ||
let url = `${this.url}/projects/${projectId}/members`; | ||
url = this.addQueryParam(url, 'search', search); | ||
url = this.addQueryParam(url, 'role', role); | ||
url = this.addQueryParam(url, 'languageId', languageId); | ||
return this.getList(url, limit, offset); | ||
} | ||
/** | ||
* | ||
* @param projectId project identifier | ||
* @param memberId member identifier | ||
*/ | ||
getMemberInfo(projectId, memberId) { | ||
const url = `${this.url}/projects/${projectId}/members/${memberId}`; | ||
return this.get(url, this.defaultConfig()); | ||
} | ||
} | ||
@@ -95,0 +86,0 @@ exports.Users = Users; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"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
268815
6715
1
4
0