-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
269 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/crowdin/client/ai/model/AiReportAttributes.java
This file contains 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,10 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AiReportAttributes { | ||
private AiReportFormat format; | ||
private String reportType; | ||
private Object schema; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/crowdin/client/ai/model/AiReportFormat.java
This file contains 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,16 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import com.crowdin.client.core.model.EnumConverter; | ||
|
||
public enum AiReportFormat implements EnumConverter<AiReportFormat> { | ||
JSON, CSV; | ||
|
||
public static AiReportFormat from(String value) { | ||
return AiReportFormat.valueOf(value.toUpperCase()); | ||
} | ||
|
||
@Override | ||
public Object to(AiReportFormat v) { | ||
return v.name().toLowerCase(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/crowdin/client/ai/model/AiReportGenerate.java
This file contains 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,18 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Date; | ||
|
||
@Data | ||
public class AiReportGenerate { | ||
private String identifier; | ||
private String status; | ||
private int progress; | ||
private AiReportAttributes attributes; | ||
private Date createdAt; | ||
private Date updatedAt; | ||
private Date startedAt; | ||
private Date finishedAt; | ||
private String eta; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/crowdin/client/ai/model/AiReportGenerateResponse.java
This file contains 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,8 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AiReportGenerateResponse { | ||
private AiReportGenerate data; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/crowdin/client/ai/model/GenerateAiReportRequest.java
This file contains 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,9 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class GenerateAiReportRequest { | ||
private String type; | ||
private GenerateAiReportRequestSchema schema; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/crowdin/client/ai/model/GenerateAiReportRequestSchema.java
This file contains 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,16 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Data | ||
public class GenerateAiReportRequestSchema { | ||
private Date dateFrom; | ||
private Date dateTo; | ||
private AiReportFormat format; | ||
private List<Long> projectIds; | ||
private List<Long> promptIds; | ||
private List<Long> userIds; | ||
} |
This file contains 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
Oops, something went wrong.