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: Add the javascript file export options #305

Merged
merged 4 commits into from
Oct 5, 2023
Merged
Changes from 1 commit
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
6 changes: 6 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
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
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
filter?: string;
}

Expand Down Expand Up @@ -697,11 +697,13 @@

export interface GeneralExportOptions {
exportPattern: string;
exportQuotes?: ExportQuotes;
}

export interface PropertyExportOptions {
escapeQuotes: EscapeQuotes;
exportPattern: string;
exportQuotes?: ExportQuotes;
}
balogun14 marked this conversation as resolved.
Show resolved Hide resolved

export enum EscapeQuotes {
Expand All @@ -711,6 +713,10 @@
THREE = 3,
}

export enum ExportQuotes {
SINGLE = 'single',
DOUBLE = 'double',
}
balogun14 marked this conversation as resolved.
Show resolved Hide resolved
export type UpdateOption =
| 'clear_translations_and_approvals'
| 'keep_translations'
Expand Down
Loading