@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -106,3 +106,3 @@ import { RetryConfig, RetryService } from './internal/retry'; | ||
protected defaultConfig(): any; | ||
readonly httpClient: HttpClient; | ||
get httpClient(): HttpClient; | ||
protected get<T = any>(url: string, config?: { | ||
@@ -109,0 +109,0 @@ headers: any; |
@@ -114,2 +114,3 @@ "use strict"; | ||
} | ||
exports.CrowdinApi = CrowdinApi; | ||
CrowdinApi.CROWDIN_URL_SUFFIX = 'api.crowdin.com/api/v2'; | ||
@@ -119,2 +120,1 @@ CrowdinApi.AXIOS_INSTANCE = new axiosProvider_1.AxisProvider().axios; | ||
CrowdinApi.QUERY_PARAM_PATTERN = new RegExp(/\?.+=.*/g); | ||
exports.CrowdinApi = CrowdinApi; |
@@ -51,4 +51,4 @@ "use strict"; | ||
} | ||
exports.AxisProvider = AxisProvider; | ||
AxisProvider.CROWDIN_API_MAX_CONCURRENT_REQUESTS = 15; | ||
AxisProvider.CROWDIN_API_REQUESTS_INTERVAL_MS = 10; | ||
exports.AxisProvider = AxisProvider; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -8,0 +9,0 @@ }); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -8,0 +9,0 @@ }); |
@@ -32,3 +32,3 @@ import { CrowdinApi, ResponseList, ResponseObject, PatchRequest, BooleanInt } from '../core'; | ||
*/ | ||
listProjects(groupId?: number, hasManagerAccess?: BooleanInt, limit?: number, offset?: number): Promise<ResponseList<ProjectsGroupsModel.Project>>; | ||
listProjects(groupId?: number, hasManagerAccess?: BooleanInt, limit?: number, offset?: number): Promise<ResponseList<ProjectsGroupsModel.Project | ProjectsGroupsModel.ProjectSettings>>; | ||
/** | ||
@@ -35,0 +35,0 @@ * @param request request body |
@@ -168,15 +168,7 @@ import { CrowdinApi, ResponseList, ResponseObject, PatchRequest, DownloadLink } from '../core'; | ||
priority: Priority; | ||
importOptions: ImportOptions; | ||
exportOptions: ExportOptions; | ||
importOptions: SpreadsheetImportOptions | XmlImportOptions | OtherImportOptions; | ||
exportOptions: GeneralExportOptions | PropertyExportOptions; | ||
createdAt: string; | ||
updatedAt: string; | ||
} | ||
interface ExportOptions { | ||
exportPattern: string; | ||
} | ||
interface ImportOptions { | ||
firstLineContainsHeader: boolean; | ||
importTranslations: boolean; | ||
scheme: Scheme; | ||
} | ||
interface CreateFileRequest { | ||
@@ -189,3 +181,3 @@ storageId: number; | ||
type?: FileType; | ||
importOptions?: SpreadsheetImportOptions | XmlImportOptions; | ||
importOptions?: SpreadsheetImportOptions | XmlImportOptions | OtherImportOptions; | ||
exportOptions?: GeneralExportOptions | PropertyExportOptions; | ||
@@ -196,3 +188,3 @@ } | ||
updateOption?: UpdateOption; | ||
importOptions?: SpreadsheetImportOptions | XmlImportOptions; | ||
importOptions?: SpreadsheetImportOptions | XmlImportOptions | OtherImportOptions; | ||
exportOptions?: GeneralExportOptions | PropertyExportOptions; | ||
@@ -271,2 +263,5 @@ } | ||
} | ||
interface OtherImportOptions { | ||
contentSegmentation: boolean; | ||
} | ||
interface GeneralExportOptions { | ||
@@ -273,0 +268,0 @@ exportPattern: string; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.6.0", | ||
"version": "1.6.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
165506
4092