Skip to content

Commit

Permalink
feat: Add support for the new Pre-Translate Efficiency Report (#265)
Browse files Browse the repository at this point in the history
* 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
Besomhead authored Oct 7, 2024
1 parent 254a1a1 commit 5fa30d9
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 393 deletions.

This file was deleted.

This file was deleted.

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ReportStatus {
Expand All @@ -23,6 +22,5 @@ public static class Attributes {
private ReportsFormat format;
private String reportName;
private Object schema;
private List<Long> projectIds;
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5fa30d9

Please sign in to comment.