Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: file context #314

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/sourceFiles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
directoryId?: number,
limit?: number,
offset?: number,
recursion?: any,

Check warning on line 234 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type

Check warning on line 234 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
filter?: string,
): Promise<ResponseList<SourceFilesModel.File>>;
listProjectFiles(
Expand All @@ -240,7 +240,7 @@
deprecatedDirectoryId?: number,
deprecatedLimit?: number,
deprecatedOffset?: number,
deprecatedRecursion?: any,

Check warning on line 243 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type

Check warning on line 243 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
deprecatedFilter?: string,
): Promise<ResponseList<SourceFilesModel.File>> {
let url = `${this.url}/projects/${projectId}/files`;
Expand Down Expand Up @@ -524,7 +524,7 @@
export interface ListProjectFilesOptions extends PaginationOptions {
branchId?: number;
directoryId?: number;
recursion?: any;

Check warning on line 527 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type

Check warning on line 527 in src/sourceFiles/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
filter?: string;
}

Expand All @@ -535,6 +535,7 @@
directoryId: number;
name: string;
title: string;
context: string;
type: string;
path: string;
status: string;
Expand All @@ -554,7 +555,9 @@
branchId?: number;
directoryId?: number;
title?: string;
context?: string;
type?: FileType;
parserVersion?: number;
importOptions?: ImportOptions;
exportOptions?: GeneralExportOptions | PropertyExportOptions;
attachLabelIds?: number[];
Expand Down Expand Up @@ -644,13 +647,21 @@

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;
}

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

export interface JavaScriptExportOptions {
Expand Down
Loading