Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crowdin/crowdin-api-client

Package Overview
Dependencies
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crowdin/crowdin-api-client - npm Package Compare versions

Comparing version 1.22.0 to 1.22.1

19

out/glossaries/index.d.ts

@@ -156,2 +156,8 @@ import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject, Status } from '../core';

deleteConcept(glossaryId: number, conceptId: number): Promise<void>;
/**
* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.glossaries.concordance.post
*/
concordanceSearch(projectId: number, request: GlossariesModel.ConcordanceSearchRequest): Promise<ResponseList<GlossariesModel.ConcordanceSearchResponse>>;
}

@@ -167,2 +173,4 @@ export declare namespace GlossariesModel {

languageIds: string[];
defaultProjectId: number;
defaultProjectIds: number[];
projectIds: number[];

@@ -236,2 +244,13 @@ createdAt: string;

}
interface ConcordanceSearchRequest extends PaginationOptions {
sourceLanguageId: string;
targetLanguageId: string;
expression: string;
}
interface ConcordanceSearchResponse {
glossary: Glossary;
concept: Concept;
sourceTerms: Term[];
targetTerms: Term[];
}
type Status = 'preferred' | 'admitted' | 'not recommended' | 'obsolete';

@@ -238,0 +257,0 @@ type Type = 'full form' | 'acronym' | 'abbreviation' | 'short form' | 'phrase' | 'variant';

@@ -204,3 +204,12 @@ "use strict";

}
/**
* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.glossaries.concordance.post
*/
concordanceSearch(projectId, request) {
const url = `${this.url}/projects/${projectId}/glossaries/concordance`;
return this.post(url, request, this.defaultConfig());
}
}
exports.Glossaries = Glossaries;

@@ -65,2 +65,8 @@ import { BooleanInt, CrowdinApi, PaginationOptions, ResponseList, ResponseObject } from '../core';

* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.translations.alignment.post
*/
translationAlignment(projectId: number, request: StringTranslationsModel.TranslationAlignmentRequest): Promise<ResponseObject<StringTranslationsModel.TranslationAlignmentResponse>>;
/**
* @param projectId project identifier
* @param stringId string identifier

@@ -212,2 +218,20 @@ * @param languageId language identifier

}
interface TranslationAlignmentRequest {
sourceLanguageId: string;
targetLanguageId: string;
text: string;
}
interface TranslationAlignmentResponse {
words: {
text: string;
alignments: {
sourceWord: string;
sourceLemma: string;
targetWord: string;
targetLemma: string;
match: number;
probability: number;
}[];
}[];
}
interface AddStringTranslationRequest {

@@ -214,0 +238,0 @@ stringId: number;

@@ -74,2 +74,11 @@ "use strict";

}
/**
* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.translations.alignment.post
*/
translationAlignment(projectId, request) {
const url = `${this.url}/projects/${projectId}/translations/alignment`;
return this.post(url, request, this.defaultConfig());
}
listStringTranslations(projectId, stringId, languageId, options, deprecatedOffset, deprecatedDenormalizePlaceholders) {

@@ -76,0 +85,0 @@ if ((0, core_1.isOptionalNumber)(options, '3' in arguments)) {

@@ -69,2 +69,8 @@ import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject, Status } from '../core';

/**
* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.tms.concordance.post
*/
concordanceSearch(projectId: number, request: TranslationMemoryModel.ConcordanceSearchRequest): Promise<ResponseList<TranslationMemoryModel.ConcordanceSearchResponse>>;
/**
* @param tmId tm identifier

@@ -92,2 +98,3 @@ * @param request request body

defaultProjectId: number;
defaultProjectIds: number[];
projectIds: number[];

@@ -101,2 +108,18 @@ createdAt: string;

}
interface ConcordanceSearchRequest {
sourceLanguageId: string;
targetLanguageId: string;
autoSubstitution: boolean;
minRelevant: number;
expression: string;
}
interface ConcordanceSearchResponse {
tm: TranslationMemory;
recordId: number;
source: string;
target: string;
relevant: number;
substituted: string;
updatedAt: string;
}
interface ExportTranslationMemoryRequest {

@@ -103,0 +126,0 @@ sourceLanguageId?: number;

@@ -91,2 +91,11 @@ "use strict";

/**
* @param projectId project identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.tms.concordance.post
*/
concordanceSearch(projectId, request) {
const url = `${this.url}/projects/${projectId}/tms/concordance`;
return this.post(url, request, this.defaultConfig());
}
/**
* @param tmId tm identifier

@@ -93,0 +102,0 @@ * @param request request body

4

package.json
{
"name": "@crowdin/crowdin-api-client",
"version": "1.22.0",
"version": "1.22.1",
"description": "JavaScript library for Crowdin API v2.",

@@ -43,3 +43,3 @@ "main": "out/index.js",

"jest-circus": "^27.0.0",
"jest-junit": "^12.0.0",
"jest-junit": "^15.0.0",
"lint-staged": ">=8",

@@ -46,0 +46,0 @@ "nock": "^10.0.6",

@@ -18,17 +18,10 @@ [<p align='center'><img src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' data-canonical-src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' width='150' height='150' align='center'/></p>](https://crowdin.com)

[![npm](https://img.shields.io/npm/dt/@crowdin/crowdin-api-client?cacheSeconds=1800)](https://www.npmjs.com/package/@crowdin/crowdin-api-client)
[![GitHub issues](https://img.shields.io/github/issues/crowdin/crowdin-api-client-js?cacheSeconds=3600)](https://github.com/crowdin/crowdin-api-client-js/issues)
[![Tests](https://github.com/crowdin/crowdin-api-client-js/actions/workflows/basic.yml/badge.svg)](https://github.com/crowdin/crowdin-api-client-js/actions/workflows/basic.yml)
[![codecov](https://codecov.io/gh/crowdin/crowdin-api-client-js/branch/master/graph/badge.svg)](https://codecov.io/gh/crowdin/crowdin-api-client-js)
[![GitHub Release Date](https://img.shields.io/github/release-date/crowdin/crowdin-api-client-js?cacheSeconds=3600)](https://github.com/crowdin/crowdin-api-client-js/releases)
[![GitHub contributors](https://img.shields.io/github/contributors/crowdin/crowdin-api-client-js?cacheSeconds=3600)](https://github.com/crowdin/crowdin-api-client-js/graphs/contributors)
[![License](https://img.shields.io/github/license/crowdin/crowdin-api-client-js?cacheSeconds=3600)](https://github.com/crowdin/crowdin-api-client-js/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/crowdin/crowdin-api-client-js?cacheSeconds=3600)](https://github.com/crowdin/crowdin-api-client-js/blob/master/LICENSE)
</div>
## Build Status
| Linux | Windows | MacOS |
|--------------------|------------------|------------------|
|[![Build Status](https://dev.azure.com/crowdin/crowdin-api-client-js/_apis/build/status/crowdin-api-client-js%20(Ubuntu)?branchName=master)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=6&branchName=master)|[![Build Status](https://dev.azure.com/crowdin/crowdin-api-client-js/_apis/build/status/crowdin-api-client-js%20(Windows)?branchName=master)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=8&branchName=master)|[![Build Status](https://dev.azure.com/crowdin/crowdin-api-client-js/_apis/build/status/crowdin-api-client-js%20(MacOS)?branchName=master)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=7&branchName=master)
|[![Azure DevOps tests (branch)](https://img.shields.io/azure-devops/tests/crowdin/crowdin-api-client-js/6/master?cacheSeconds=1800)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=6&branchName=master)|[![Azure DevOps tests (branch)](https://img.shields.io/azure-devops/tests/crowdin/crowdin-api-client-js/8/master?cacheSeconds=1800)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=8&branchName=master)|[![Azure DevOps tests (branch)](https://img.shields.io/azure-devops/tests/crowdin/crowdin-api-client-js/7/master?cacheSeconds=1800)](https://dev.azure.com/crowdin/crowdin-api-client-js/_build/latest?definitionId=7&branchName=master)
## Table of Contents

@@ -35,0 +28,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc