-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for the new Pre-Translate Efficiency Report (#265)
* feat: create request data structure for pre-translate-efficiency reports. * refactor: remove report requests for deprecated report types, update report status structure.
- Loading branch information
Showing
12 changed files
with
170 additions
and
393 deletions.
There are no files selected for viewing
72 changes: 0 additions & 72 deletions
72
...ain/java/com/crowdin/client/reports/model/CostEstimateFuzzyModeGenerateReportRequest.java
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
src/main/java/com/crowdin/client/reports/model/CostEstimateGenerateReportRequest.java
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...in/java/com/crowdin/client/reports/model/PreTranslateEfficiencyGenerateReportRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.crowdin.client.reports.model; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class PreTranslateEfficiencyGenerateReportRequest extends GenerateReportRequest { | ||
private String name = "pre-translate-efficiency"; | ||
private Schema schema; | ||
|
||
@Data | ||
public static class Schema { | ||
private Unit unit = Unit.WORDS; | ||
private ReportsFormat format = ReportsFormat.XLSX; | ||
private List<String> postEditingCategories; | ||
} | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public static class GeneralSchema extends Schema { | ||
private String languageId; | ||
private Date dateFrom; | ||
private Date dateTo; | ||
} | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public static class ByTaskSchema extends Schema { | ||
private Long taskId; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 0 additions & 72 deletions
72
.../java/com/crowdin/client/reports/model/TranslationCostFuzzyModeGenerateReportRequest.java
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
src/main/java/com/crowdin/client/reports/model/TranslationCostGenerateReportRequest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.