Skip to content

Commit f0ee9b7

Browse files
author
Phrase
committed
1 parent f2e2f3f commit f0ee9b7

File tree

229 files changed

+258
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+258
-237
lines changed

api/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6946,6 +6946,16 @@ paths:
69466946
default: false
69476947
type: boolean
69486948
style: form
6949+
- description: Omit translation keys in the response to reduce payload size
6950+
for bigger jobs
6951+
explode: true
6952+
in: query
6953+
name: omit_translation_keys
6954+
required: false
6955+
schema:
6956+
default: false
6957+
type: boolean
6958+
style: form
69496959
responses:
69506960
"200":
69516961
content:

docs/JobsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Name | Type | Description | Notes
590590

591591
<a name="jobShow"></a>
592592
# **jobShow**
593-
> JobDetails jobShow(projectId, id, xPhraseAppOTP, branch, includeAnnotations)
593+
> JobDetails jobShow(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys)
594594
595595
Get a single job
596596

@@ -627,8 +627,9 @@ public class Example {
627627
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
628628
String branch = "my-feature-branch"; // String | Branch to use
629629
Boolean includeAnnotations = false; // Boolean | Include job-locale annotations in the response
630+
Boolean omitTranslationKeys = false; // Boolean | Omit translation keys in the response to reduce payload size for bigger jobs
630631
try {
631-
JobDetails result = apiInstance.jobShow(projectId, id, xPhraseAppOTP, branch, includeAnnotations);
632+
JobDetails result = apiInstance.jobShow(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys);
632633
System.out.println(result);
633634
} catch (ApiException e) {
634635
System.err.println("Exception when calling JobsApi#jobShow");
@@ -650,6 +651,7 @@ Name | Type | Description | Notes
650651
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
651652
**branch** | **String**| Branch to use | [optional]
652653
**includeAnnotations** | **Boolean**| Include job-locale annotations in the response | [optional] [default to false]
654+
**omitTranslationKeys** | **Boolean**| Omit translation keys in the response to reduce payload size for bigger jobs | [optional] [default to false]
653655

654656
### Return type
655657

src/main/java/com/phrase/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Map;
1616
import java.util.List;
1717

18-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
1919
public class ApiException extends Exception {
2020
private int code = 0;
2121
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/phrase/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
1616
public class Configuration {
1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/phrase/client/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
1616
public class Pair {
1717
private String name = "";
1818
private String value = "";

src/main/java/com/phrase/client/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
1616
public class StringUtil {
1717
/**
1818
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/com/phrase/client/api/JobsApi.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ public okhttp3.Call jobReopenAsync(String projectId, String id, JobReopenParamet
10941094
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
10951095
* @param branch Branch to use (optional)
10961096
* @param includeAnnotations Include job-locale annotations in the response (optional, default to false)
1097+
* @param omitTranslationKeys Omit translation keys in the response to reduce payload size for bigger jobs (optional, default to false)
10971098
* @param _callback Callback for upload/download progress
10981099
* @return Call to execute
10991100
* @throws ApiException If fail to serialize the request body object
@@ -1106,7 +1107,7 @@ public okhttp3.Call jobReopenAsync(String projectId, String id, JobReopenParamet
11061107
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
11071108
</table>
11081109
*/
1109-
public okhttp3.Call jobShowCall(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, final ApiCallback _callback) throws ApiException {
1110+
public okhttp3.Call jobShowCall(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, Boolean omitTranslationKeys, final ApiCallback _callback) throws ApiException {
11101111
Object localVarPostBody = null;
11111112

11121113
// create path and map variables
@@ -1124,6 +1125,10 @@ public okhttp3.Call jobShowCall(String projectId, String id, String xPhraseAppOT
11241125
localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_annotations", includeAnnotations));
11251126
}
11261127

1128+
if (omitTranslationKeys != null) {
1129+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("omit_translation_keys", omitTranslationKeys));
1130+
}
1131+
11271132
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
11281133
if (xPhraseAppOTP != null) {
11291134
localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP));
@@ -1150,7 +1155,7 @@ public okhttp3.Call jobShowCall(String projectId, String id, String xPhraseAppOT
11501155
}
11511156

11521157
@SuppressWarnings("rawtypes")
1153-
private okhttp3.Call jobShowValidateBeforeCall(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, final ApiCallback _callback) throws ApiException {
1158+
private okhttp3.Call jobShowValidateBeforeCall(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, Boolean omitTranslationKeys, final ApiCallback _callback) throws ApiException {
11541159

11551160
// verify the required parameter 'projectId' is set
11561161
if (projectId == null) {
@@ -1163,7 +1168,7 @@ private okhttp3.Call jobShowValidateBeforeCall(String projectId, String id, Stri
11631168
}
11641169

11651170

1166-
okhttp3.Call localVarCall = jobShowCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, _callback);
1171+
okhttp3.Call localVarCall = jobShowCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys, _callback);
11671172
return localVarCall;
11681173

11691174
}
@@ -1176,6 +1181,7 @@ private okhttp3.Call jobShowValidateBeforeCall(String projectId, String id, Stri
11761181
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
11771182
* @param branch Branch to use (optional)
11781183
* @param includeAnnotations Include job-locale annotations in the response (optional, default to false)
1184+
* @param omitTranslationKeys Omit translation keys in the response to reduce payload size for bigger jobs (optional, default to false)
11791185
* @return JobDetails
11801186
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
11811187
* @http.response.details
@@ -1187,8 +1193,8 @@ private okhttp3.Call jobShowValidateBeforeCall(String projectId, String id, Stri
11871193
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
11881194
</table>
11891195
*/
1190-
public JobDetails jobShow(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations) throws ApiException {
1191-
ApiResponse<JobDetails> localVarResp = jobShowWithHttpInfo(projectId, id, xPhraseAppOTP, branch, includeAnnotations);
1196+
public JobDetails jobShow(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, Boolean omitTranslationKeys) throws ApiException {
1197+
ApiResponse<JobDetails> localVarResp = jobShowWithHttpInfo(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys);
11921198
return localVarResp.getData();
11931199
}
11941200

@@ -1200,6 +1206,7 @@ public JobDetails jobShow(String projectId, String id, String xPhraseAppOTP, Str
12001206
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
12011207
* @param branch Branch to use (optional)
12021208
* @param includeAnnotations Include job-locale annotations in the response (optional, default to false)
1209+
* @param omitTranslationKeys Omit translation keys in the response to reduce payload size for bigger jobs (optional, default to false)
12031210
* @return ApiResponse&lt;JobDetails&gt;
12041211
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
12051212
* @http.response.details
@@ -1211,8 +1218,8 @@ public JobDetails jobShow(String projectId, String id, String xPhraseAppOTP, Str
12111218
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
12121219
</table>
12131220
*/
1214-
public ApiResponse<JobDetails> jobShowWithHttpInfo(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations) throws ApiException {
1215-
okhttp3.Call localVarCall = jobShowValidateBeforeCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, null);
1221+
public ApiResponse<JobDetails> jobShowWithHttpInfo(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, Boolean omitTranslationKeys) throws ApiException {
1222+
okhttp3.Call localVarCall = jobShowValidateBeforeCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys, null);
12161223
Type localVarReturnType = new TypeToken<JobDetails>(){}.getType();
12171224
return localVarApiClient.execute(localVarCall, localVarReturnType);
12181225
}
@@ -1225,6 +1232,7 @@ public ApiResponse<JobDetails> jobShowWithHttpInfo(String projectId, String id,
12251232
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
12261233
* @param branch Branch to use (optional)
12271234
* @param includeAnnotations Include job-locale annotations in the response (optional, default to false)
1235+
* @param omitTranslationKeys Omit translation keys in the response to reduce payload size for bigger jobs (optional, default to false)
12281236
* @param _callback The callback to be executed when the API call finishes
12291237
* @return The request call
12301238
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1237,9 +1245,9 @@ public ApiResponse<JobDetails> jobShowWithHttpInfo(String projectId, String id,
12371245
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
12381246
</table>
12391247
*/
1240-
public okhttp3.Call jobShowAsync(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, final ApiCallback<JobDetails> _callback) throws ApiException {
1248+
public okhttp3.Call jobShowAsync(String projectId, String id, String xPhraseAppOTP, String branch, Boolean includeAnnotations, Boolean omitTranslationKeys, final ApiCallback<JobDetails> _callback) throws ApiException {
12411249

1242-
okhttp3.Call localVarCall = jobShowValidateBeforeCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, _callback);
1250+
okhttp3.Call localVarCall = jobShowValidateBeforeCall(projectId, id, xPhraseAppOTP, branch, includeAnnotations, omitTranslationKeys, _callback);
12431251
Type localVarReturnType = new TypeToken<JobDetails>(){}.getType();
12441252
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
12451253
return localVarCall;

src/main/java/com/phrase/client/auth/ApiKeyAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
2121
public class ApiKeyAuth implements Authentication {
2222
private final String location;
2323
private final String paramName;

src/main/java/com/phrase/client/auth/HttpBearerAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
2121
public class HttpBearerAuth implements Authentication {
2222
private final String scheme;
2323
private String bearerToken;

src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
2424
*/
25-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T09:17:50.247834902Z[Etc/UTC]")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T10:03:51.568732748Z[Etc/UTC]")
2626
public abstract class AbstractOpenApiSchema {
2727

2828
// store the actual instance of the schema/object

0 commit comments

Comments
 (0)