Skip to content

Commit c853b46

Browse files
authored
feat: Add support for new report schemas (#337)
1 parent 553e903 commit c853b46

9 files changed

+203
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class EditorIssuesGenerateReportRequest extends GenerateReportRequest {
11+
private String name = "editor-issues";
12+
private Schema schema;
13+
14+
@Data
15+
public static class Schema {
16+
private Date dateFrom;
17+
private Date dateTo;
18+
private ReportsFormat format;
19+
private String issueType;
20+
}
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class GroupQaCheckIssuesGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "group-qa-check-issues";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private ReportsFormat format;
18+
private Date dateFrom;
19+
private Date dateTo;
20+
private List<Long> projectIds;
21+
}
22+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class GroupTaskUsageGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "group-task-usage";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private ReportsFormat format;
18+
private String type;
19+
private List<Long> projectIds;
20+
private Date dateFrom;
21+
private Date dateTo;
22+
private String groupBy;
23+
private Integer taskType;
24+
private String languageId;
25+
private Integer creatorId;
26+
private Integer assigneeId;
27+
}
28+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class GroupTranslationActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "group-translation-activity";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private Unit unit;
18+
private List<Long> projectIds;
19+
private ReportsFormat format;
20+
private Date dateFrom;
21+
private Date dateTo;
22+
}
23+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class ProjectMembersGenerateReportRequest extends GenerateReportRequest {
11+
private String name = "project-members";
12+
private Schema schema;
13+
14+
@Data
15+
public static class Schema {
16+
private ReportsFormat format;
17+
private Date dateFrom;
18+
private Date dateTo;
19+
}
20+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class QaCheckIssuesGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "qa-check-issues";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private ReportsFormat format;
18+
private String languageId;
19+
private Date dateFrom;
20+
private Date dateTo;
21+
}
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class SavingActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "saving-activity";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private Unit unit;
18+
private String languageId;
19+
private ReportsFormat format;
20+
private Date dateFrom;
21+
private Date dateTo;
22+
}
23+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class SourceContentUpdatesGenerateReportRequest extends GenerateReportRequest {
11+
private String name = "source-content-updates";
12+
private Schema schema;
13+
14+
@Data
15+
public static class Schema {
16+
private Unit unit;
17+
private ReportsFormat format;
18+
private Date dateFrom;
19+
private Date dateTo;
20+
}
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
import java.util.Date;
7+
import java.util.List;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class TranslationActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "translation-activity";
13+
private Schema schema;
14+
15+
@Data
16+
public static class Schema {
17+
private Unit unit;
18+
private String languageId;
19+
private ReportsFormat format;
20+
private Date dateFrom;
21+
private Date dateTo;
22+
}
23+
}

0 commit comments

Comments
 (0)