Skip to content

Commit 2531a24

Browse files
committed
Added support for new report schemas
1 parent 17ec43d commit 2531a24

9 files changed

Lines changed: 188 additions & 0 deletions
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 EditorIssuesGenerateReportRequest extends GenerateReportRequest {
11+
private String name = "editor-issues";
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: 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 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> languageIds;
21+
private List<Long> projectIds;
22+
}
23+
}
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 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 Date dateFrom;
19+
private Date dateTo;
20+
private List<Long> projectIds;
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 GroupTranslationActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "group-translation-activity";
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> languageIds;
21+
private List<Long> projectIds;
22+
}
23+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
@Data
7+
@EqualsAndHashCode(callSuper = true)
8+
public class ProjectMembersGenerateReportRequest extends GenerateReportRequest {
9+
private String name = "project-members";
10+
private Schema schema;
11+
12+
@Data
13+
public static class Schema {
14+
private ReportsFormat format;
15+
16+
}
17+
}
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 Date dateFrom;
19+
private Date dateTo;
20+
private List<Long> languageIds;
21+
}
22+
}
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 SavingActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "saving-activity";
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> languageIds;
21+
}
22+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.crowdin.client.reports.model;
2+
3+
import lombok.Data;
4+
import lombok.EqualsAndHashCode;
5+
6+
@Data
7+
@EqualsAndHashCode(callSuper = true)
8+
public class SourceContentUpdatesGenerateReportRequest extends GenerateReportRequest {
9+
private String name = "source-content-updates";
10+
private Schema schema;
11+
12+
@Data
13+
public static class Schema {
14+
private ReportsFormat format;
15+
16+
}
17+
}
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 TranslationActivityGenerateReportRequest extends GenerateReportRequest {
12+
private String name = "translation-activity";
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> languageIds;
21+
}
22+
}

0 commit comments

Comments
 (0)