-
Notifications
You must be signed in to change notification settings - Fork 64
feat: Add support for new report schemas #337
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/com/crowdin/client/reports/model/EditorIssuesGenerateReportRequest.java
This file contains hidden or 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,21 @@ | ||
| package com.crowdin.client.reports.model; | ||
|
|
||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class EditorIssuesGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "editor-issues"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| private ReportsFormat format; | ||
| private String issueType; | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/crowdin/client/reports/model/GroupQaCheckIssuesGenerateReportRequest.java
This file contains hidden or 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,22 @@ | ||
| 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 GroupQaCheckIssuesGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "group-qa-check-issues"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| private List<Long> projectIds; | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/crowdin/client/reports/model/GroupTaskUsageGenerateReportRequest.java
This file contains hidden or 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,28 @@ | ||
| 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 GroupTaskUsageGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "group-task-usage"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private ReportsFormat format; | ||
| private String type; | ||
| private List<Long> projectIds; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| private String groupBy; | ||
| private Integer taskType; | ||
| private String languageId; | ||
| private Integer creatorId; | ||
| private Integer assigneeId; | ||
| } | ||
| } | ||
23 changes: 23 additions & 0 deletions
23
.../java/com/crowdin/client/reports/model/GroupTranslationActivityGenerateReportRequest.java
This file contains hidden or 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,23 @@ | ||
| 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 GroupTranslationActivityGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "group-translation-activity"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private Unit unit; | ||
| private List<Long> projectIds; | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
andrii-bodnar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
20 changes: 20 additions & 0 deletions
20
src/main/java/com/crowdin/client/reports/model/ProjectMembersGenerateReportRequest.java
This file contains hidden or 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,20 @@ | ||
| package com.crowdin.client.reports.model; | ||
|
|
||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class ProjectMembersGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "project-members"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/crowdin/client/reports/model/QaCheckIssuesGenerateReportRequest.java
This file contains hidden or 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,22 @@ | ||
| 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 QaCheckIssuesGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "qa-check-issues"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private ReportsFormat format; | ||
| private String languageId; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
| } |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/crowdin/client/reports/model/SavingActivityGenerateReportRequest.java
This file contains hidden or 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,23 @@ | ||
| 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 SavingActivityGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "saving-activity"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private Unit unit; | ||
| private String languageId; | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
andrii-bodnar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
21 changes: 21 additions & 0 deletions
21
...main/java/com/crowdin/client/reports/model/SourceContentUpdatesGenerateReportRequest.java
This file contains hidden or 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,21 @@ | ||
| package com.crowdin.client.reports.model; | ||
|
|
||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class SourceContentUpdatesGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "source-content-updates"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private Unit unit; | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
| } |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/crowdin/client/reports/model/TranslationActivityGenerateReportRequest.java
This file contains hidden or 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,23 @@ | ||
| 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 TranslationActivityGenerateReportRequest extends GenerateReportRequest { | ||
| private String name = "translation-activity"; | ||
| private Schema schema; | ||
|
|
||
| @Data | ||
| public static class Schema { | ||
| private Unit unit; | ||
| private String languageId; | ||
| private ReportsFormat format; | ||
| private Date dateFrom; | ||
| private Date dateTo; | ||
| } | ||
andrii-bodnar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.