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 support for the new Pre-Translate Efficiency Report #265

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
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

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