Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crowdin/crowdin-api-client-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.25.0
Choose a base ref
...
head repository: crowdin/crowdin-api-client-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.25.1
Choose a head ref
  • 4 commits
  • 5 files changed
  • 4 contributors

Commits on Oct 10, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    DrFaust92 Ilia Lazebnik
    Copy the full SHA
    e449f8c View commit details

Commits on Oct 20, 2023

  1. Copy the full SHA
    1d6db99 View commit details
  2. file context (#314)

    yevheniyJ authored Oct 20, 2023
    Copy the full SHA
    7354f0e View commit details
  3. Copy the full SHA
    08a373c View commit details
Showing with 25 additions and 9 deletions.
  1. +8 −8 package-lock.json
  2. +1 −1 package.json
  3. +1 −0 src/reports/index.ts
  4. +12 −0 src/sourceFiles/index.ts
  5. +3 −0 tests/reports/api.test.ts
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crowdin/crowdin-api-client",
"version": "1.25.0",
"version": "1.25.1",
"description": "JavaScript library for Crowdin API",
"main": "out/index.js",
"types": "out/index.d.ts",
1 change: 1 addition & 0 deletions src/reports/index.ts
Original file line number Diff line number Diff line change
@@ -328,6 +328,7 @@ export namespace ReportsModel {
currency: Currency;
unit: Unit;
config: ReportSettinsConfig;
isPublic: boolean;
createdAt: string;
updatedAt: string;
}
12 changes: 12 additions & 0 deletions src/sourceFiles/index.ts
Original file line number Diff line number Diff line change
@@ -535,6 +535,7 @@ export namespace SourceFilesModel {
directoryId: number;
name: string;
title: string;
context: string;
type: string;
path: string;
status: string;
@@ -554,7 +555,9 @@ export namespace SourceFilesModel {
branchId?: number;
directoryId?: number;
title?: string;
context?: string;
type?: FileType;
parserVersion?: number;
importOptions?: ImportOptions;
exportOptions?: GeneralExportOptions | PropertyExportOptions;
attachLabelIds?: number[];
@@ -644,13 +647,21 @@ export namespace SourceFilesModel {

export interface SpreadsheetImportOptions {
firstLineContainsHeader: boolean;
contentSegmentation: boolean;
srxStorageId: number;
importTranslations: boolean;
scheme: Scheme;
}

export interface Scheme {
none: number;
identifier: number;
sourcePhrase: number;
sourceOrTranslation: number;
translation: number;
context: number;
maxLength: number;
labels: number;
[key: string]: number;
}

@@ -702,6 +713,7 @@ export namespace SourceFilesModel {
export interface PropertyExportOptions {
escapeQuotes: EscapeQuotes;
exportPattern: string;
escapeSpecialCharacters?: 0 | 1;
}

export interface JavaScriptExportOptions {
3 changes: 3 additions & 0 deletions tests/reports/api.test.ts
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ describe('Reports API', () => {
baseRates: { fullTranslation: 0, proofread: 0 },
netRateSchemes: [],
};
const isPublic = false;

beforeAll(() => {
scope = nock(api.url)
@@ -170,6 +171,7 @@ describe('Reports API', () => {
currency,
unit,
config,
isPublic,
},
{
reqheaders: {
@@ -291,6 +293,7 @@ describe('Reports API', () => {
currency,
name: reportName,
unit,
isPublic,
});
expect(template.data.id).toBe(reportSettingsTemplateId);
});