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
5
Versions
123
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.10.5 to 1.10.6

4

out/sourceStrings/index.d.ts

@@ -13,4 +13,5 @@ import { BooleanInt, CrowdinApi, PatchRequest, ResponseList, ResponseObject } from '../core';

* @param scope specify field to be the target of filtering
* @param croql filter strings by CroQL (Can't be used with `labelIds`, `filter` or `scope` in same request)
*/
listProjectStrings(projectId: number, fileId?: number, limit?: number, offset?: number, filter?: string, denormalizePlaceholders?: BooleanInt, labelIds?: string, scope?: SourceStringsModel.Scope): Promise<ResponseList<SourceStringsModel.String>>;
listProjectStrings(projectId: number, fileId?: number, limit?: number, offset?: number, filter?: string, denormalizePlaceholders?: BooleanInt, labelIds?: string, scope?: SourceStringsModel.Scope, croql?: string): Promise<ResponseList<SourceStringsModel.String>>;
/**

@@ -47,2 +48,3 @@ * @param projectId project identifier

scope?: SourceStringsModel.Scope;
croql?: string;
}

@@ -49,0 +51,0 @@ interface String {

@@ -6,3 +6,3 @@ "use strict";

class SourceStrings extends core_1.CrowdinApi {
listProjectStrings(projectId, fileIdOrRequest, limit, offset, filter, denormalizePlaceholders, labelIds, scope) {
listProjectStrings(projectId, fileIdOrRequest, limit, offset, filter, denormalizePlaceholders, labelIds, scope, croql) {
let url = `${this.url}/projects/${projectId}/strings`;

@@ -14,3 +14,12 @@ let request;

else {
request = { fileId: fileIdOrRequest, limit, offset, filter, denormalizePlaceholders, labelIds, scope };
request = {
fileId: fileIdOrRequest,
limit,
offset,
filter,
denormalizePlaceholders,
labelIds,
scope,
croql,
};
}

@@ -22,2 +31,3 @@ url = this.addQueryParam(url, 'fileId', request.fileId);

url = this.addQueryParam(url, 'scope', request.scope);
url = this.addQueryParam(url, 'croql', request.croql);
return this.getList(url, request.limit, request.offset);

@@ -24,0 +34,0 @@ }

@@ -37,4 +37,5 @@ import { BooleanInt, CrowdinApi, ResponseList, ResponseObject } from '../core';

* @param denormalizePlaceholders enable denormalize placeholders
* @param croql filter translations by CroQL (Can't be used with `stringIds`, `labelIds` or `fileId` in same request)
*/
listLanguageTranslations(projectId: number, languageId: string, stringIds?: string, fileId?: number, limit?: number, offset?: number, labelIds?: string, denormalizePlaceholders?: BooleanInt): Promise<ResponseList<StringTranslationsModel.PlainLanguageTranslation | StringTranslationsModel.PluralLanguageTranslation | StringTranslationsModel.IcuLanguageTranslation>>;
listLanguageTranslations(projectId: number, languageId: string, stringIds?: string, fileId?: number, limit?: number, offset?: number, labelIds?: string, denormalizePlaceholders?: BooleanInt, croql?: string): Promise<ResponseList<StringTranslationsModel.PlainLanguageTranslation | StringTranslationsModel.PluralLanguageTranslation | StringTranslationsModel.IcuLanguageTranslation>>;
/**

@@ -41,0 +42,0 @@ * @param projectId project identifier

@@ -56,4 +56,5 @@ "use strict";

* @param denormalizePlaceholders enable denormalize placeholders
* @param croql filter translations by CroQL (Can't be used with `stringIds`, `labelIds` or `fileId` in same request)
*/
listLanguageTranslations(projectId, languageId, stringIds, fileId, limit, offset, labelIds, denormalizePlaceholders) {
listLanguageTranslations(projectId, languageId, stringIds, fileId, limit, offset, labelIds, denormalizePlaceholders, croql) {
let url = `${this.url}/projects/${projectId}/languages/${languageId}/translations`;

@@ -64,2 +65,3 @@ url = this.addQueryParam(url, 'stringIds', stringIds);

url = this.addQueryParam(url, 'denormalizePlaceholders', denormalizePlaceholders);
url = this.addQueryParam(url, 'croql', croql);
return this.getList(url, limit, offset);

@@ -66,0 +68,0 @@ }

{
"name": "@crowdin/crowdin-api-client",
"version": "1.10.5",
"version": "1.10.6",
"description": "JavaScript library for Crowdin API v2.",

@@ -5,0 +5,0 @@ "main": "out/index.js",

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