Skip to content

Commit 1813a92

Browse files
author
Phrase
committed
1 parent b823556 commit 1813a92

File tree

238 files changed

+434
-246
lines changed

Some content is hidden

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

238 files changed

+434
-246
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ docs/ReleasesApi.md
202202
docs/RepoSync.md
203203
docs/RepoSyncEvent.md
204204
docs/RepoSyncEventsApi.md
205+
docs/RepoSyncExportParameters.md
205206
docs/RepoSyncImportParameters.md
206207
docs/RepoSyncsApi.md
207208
docs/ReportsApi.md
@@ -526,6 +527,7 @@ src/main/java/com/phrase/client/model/ReleaseUpdateParameters.java
526527
src/main/java/com/phrase/client/model/ReleaseUpdateParameters1.java
527528
src/main/java/com/phrase/client/model/RepoSync.java
528529
src/main/java/com/phrase/client/model/RepoSyncEvent.java
530+
src/main/java/com/phrase/client/model/RepoSyncExportParameters.java
529531
src/main/java/com/phrase/client/model/RepoSyncImportParameters.java
530532
src/main/java/com/phrase/client/model/Screenshot.java
531533
src/main/java/com/phrase/client/model/ScreenshotMarker.java
@@ -802,6 +804,7 @@ src/test/java/com/phrase/client/model/ReleaseTriggerTest.java
802804
src/test/java/com/phrase/client/model/ReleaseUpdateParameters1Test.java
803805
src/test/java/com/phrase/client/model/ReleaseUpdateParametersTest.java
804806
src/test/java/com/phrase/client/model/RepoSyncEventTest.java
807+
src/test/java/com/phrase/client/model/RepoSyncExportParametersTest.java
805808
src/test/java/com/phrase/client/model/RepoSyncImportParametersTest.java
806809
src/test/java/com/phrase/client/model/RepoSyncTest.java
807810
src/test/java/com/phrase/client/model/ScreenshotMarkerCreateParametersTest.java

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ Class | Method | HTTP request | Description
557557
- [ReleaseUpdateParameters1](docs/ReleaseUpdateParameters1.md)
558558
- [RepoSync](docs/RepoSync.md)
559559
- [RepoSyncEvent](docs/RepoSyncEvent.md)
560+
- [RepoSyncExportParameters](docs/RepoSyncExportParameters.md)
560561
- [RepoSyncImportParameters](docs/RepoSyncImportParameters.md)
561562
- [Screenshot](docs/Screenshot.md)
562563
- [ScreenshotMarker](docs/ScreenshotMarker.md)

api/openapi.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21119,6 +21119,12 @@ paths:
2111921119
schema:
2112021120
type: string
2112121121
style: simple
21122+
requestBody:
21123+
content:
21124+
application/json:
21125+
schema:
21126+
$ref: '#/components/schemas/repo_sync_export_parameters'
21127+
required: false
2112221128
responses:
2112321129
"200":
2112421130
content:
@@ -21166,16 +21172,19 @@ paths:
2116621172
x-code-samples:
2116721173
- lang: Curl
2116821174
source: |-
21169-
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/export"\
21175+
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/export" \
2117021176
-u USERNAME_OR_ACCESS_TOKEN \
2117121177
-X POST \
21172-
-H 'Content-Type: application/json'
21178+
-H 'Content-Type: application/json' \
21179+
-d '{"pr_branch":"my-feature-branch"}'
2117321180
- lang: CLI v2
2117421181
source: |-
2117521182
phrase repo_syncs export \
2117621183
--id <repo_sync_id> \
21184+
--pr_branch my-feature-branch \
2117721185
--access_token <token>
2117821186
x-cli-version: "2.24"
21187+
x-content-type: application/json
2117921188
x-accepts: application/json
2118021189
/accounts/{account_id}/repo_syncs/{id}/import:
2118121190
post:
@@ -35176,6 +35185,14 @@ components:
3517635185
score: 0.95
3517735186
id: translation_id_2
3517835187
errors: []
35188+
repo_sync_export_parameters:
35189+
properties:
35190+
pr_branch:
35191+
description: Source branch to open a pull request from
35192+
example: my-feature-branch
35193+
type: string
35194+
title: repo_sync/export/parameters
35195+
type: object
3517935196
repo_sync_import_parameters:
3518035197
properties:
3518135198
repository_branch:

docs/RepoSyncExportParameters.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
3+
# RepoSyncExportParameters
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**prBranch** | **String** | Source branch to open a pull request from | [optional]
10+
11+
12+

docs/RepoSyncsApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Name | Type | Description | Notes
174174

175175
<a name="repoSyncExport"></a>
176176
# **repoSyncExport**
177-
> RepoSyncEvent repoSyncExport(accountId, id, xPhraseAppOTP)
177+
> RepoSyncEvent repoSyncExport(accountId, id, xPhraseAppOTP, repoSyncExportParameters)
178178
179179
Export to code repository
180180

@@ -209,8 +209,9 @@ public class Example {
209209
String accountId = "accountId_example"; // String | Account ID
210210
String id = "id_example"; // String | ID
211211
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
212+
RepoSyncExportParameters repoSyncExportParameters = new RepoSyncExportParameters(); // RepoSyncExportParameters |
212213
try {
213-
RepoSyncEvent result = apiInstance.repoSyncExport(accountId, id, xPhraseAppOTP);
214+
RepoSyncEvent result = apiInstance.repoSyncExport(accountId, id, xPhraseAppOTP, repoSyncExportParameters);
214215
System.out.println(result);
215216
} catch (ApiException e) {
216217
System.err.println("Exception when calling RepoSyncsApi#repoSyncExport");
@@ -230,6 +231,7 @@ Name | Type | Description | Notes
230231
**accountId** | **String**| Account ID |
231232
**id** | **String**| ID |
232233
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
234+
**repoSyncExportParameters** | [**RepoSyncExportParameters**](RepoSyncExportParameters.md)| | [optional]
233235

234236
### Return type
235237

@@ -241,7 +243,7 @@ Name | Type | Description | Notes
241243

242244
### HTTP request headers
243245

244-
- **Content-Type**: Not defined
246+
- **Content-Type**: application/json
245247
- **Accept**: application/json
246248

247249
### HTTP response details

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 = "2026-02-06T12:26:58.926978416Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-02-06T14:07:12.603233715Z[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 = "2026-02-06T12:26:58.926978416Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-02-06T14:07:12.603233715Z[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 = "2026-02-06T12:26:58.926978416Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-02-06T14:07:12.603233715Z[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 = "2026-02-06T12:26:58.926978416Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-02-06T14:07:12.603233715Z[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/RepoSyncsApi.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import com.phrase.client.model.RepoSync;
3030
import com.phrase.client.model.RepoSyncEvent;
31+
import com.phrase.client.model.RepoSyncExportParameters;
3132
import com.phrase.client.model.RepoSyncImportParameters;
3233

3334
import java.lang.reflect.Type;
@@ -342,6 +343,7 @@ public okhttp3.Call repoSyncDeactivateAsync(String accountId, String id, String
342343
* @param accountId Account ID (required)
343344
* @param id ID (required)
344345
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
346+
* @param repoSyncExportParameters (optional)
345347
* @param _callback Callback for upload/download progress
346348
* @return Call to execute
347349
* @throws ApiException If fail to serialize the request body object
@@ -354,8 +356,8 @@ public okhttp3.Call repoSyncDeactivateAsync(String accountId, String id, String
354356
<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>
355357
</table>
356358
*/
357-
public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
358-
Object localVarPostBody = null;
359+
public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhraseAppOTP, RepoSyncExportParameters repoSyncExportParameters, final ApiCallback _callback) throws ApiException {
360+
Object localVarPostBody = repoSyncExportParameters;
359361

360362
// create path and map variables
361363
String localVarPath = "/accounts/{account_id}/repo_syncs/{id}/export"
@@ -380,7 +382,7 @@ public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhra
380382
}
381383

382384
final String[] localVarContentTypes = {
383-
385+
"application/json"
384386
};
385387
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
386388
localVarHeaderParams.put("Content-Type", localVarContentType);
@@ -390,7 +392,7 @@ public okhttp3.Call repoSyncExportCall(String accountId, String id, String xPhra
390392
}
391393

392394
@SuppressWarnings("rawtypes")
393-
private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException {
395+
private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, RepoSyncExportParameters repoSyncExportParameters, final ApiCallback _callback) throws ApiException {
394396

395397
// verify the required parameter 'accountId' is set
396398
if (accountId == null) {
@@ -403,7 +405,7 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
403405
}
404406

405407

406-
okhttp3.Call localVarCall = repoSyncExportCall(accountId, id, xPhraseAppOTP, _callback);
408+
okhttp3.Call localVarCall = repoSyncExportCall(accountId, id, xPhraseAppOTP, repoSyncExportParameters, _callback);
407409
return localVarCall;
408410

409411
}
@@ -414,6 +416,7 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
414416
* @param accountId Account ID (required)
415417
* @param id ID (required)
416418
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
419+
* @param repoSyncExportParameters (optional)
417420
* @return RepoSyncEvent
418421
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
419422
* @http.response.details
@@ -425,8 +428,8 @@ private okhttp3.Call repoSyncExportValidateBeforeCall(String accountId, String i
425428
<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>
426429
</table>
427430
*/
428-
public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseAppOTP) throws ApiException {
429-
ApiResponse<RepoSyncEvent> localVarResp = repoSyncExportWithHttpInfo(accountId, id, xPhraseAppOTP);
431+
public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseAppOTP, RepoSyncExportParameters repoSyncExportParameters) throws ApiException {
432+
ApiResponse<RepoSyncEvent> localVarResp = repoSyncExportWithHttpInfo(accountId, id, xPhraseAppOTP, repoSyncExportParameters);
430433
return localVarResp.getData();
431434
}
432435

@@ -436,6 +439,7 @@ public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseA
436439
* @param accountId Account ID (required)
437440
* @param id ID (required)
438441
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
442+
* @param repoSyncExportParameters (optional)
439443
* @return ApiResponse&lt;RepoSyncEvent&gt;
440444
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
441445
* @http.response.details
@@ -447,8 +451,8 @@ public RepoSyncEvent repoSyncExport(String accountId, String id, String xPhraseA
447451
<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>
448452
</table>
449453
*/
450-
public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, String id, String xPhraseAppOTP) throws ApiException {
451-
okhttp3.Call localVarCall = repoSyncExportValidateBeforeCall(accountId, id, xPhraseAppOTP, null);
454+
public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, String id, String xPhraseAppOTP, RepoSyncExportParameters repoSyncExportParameters) throws ApiException {
455+
okhttp3.Call localVarCall = repoSyncExportValidateBeforeCall(accountId, id, xPhraseAppOTP, repoSyncExportParameters, null);
452456
Type localVarReturnType = new TypeToken<RepoSyncEvent>(){}.getType();
453457
return localVarApiClient.execute(localVarCall, localVarReturnType);
454458
}
@@ -459,6 +463,7 @@ public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, S
459463
* @param accountId Account ID (required)
460464
* @param id ID (required)
461465
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
466+
* @param repoSyncExportParameters (optional)
462467
* @param _callback The callback to be executed when the API call finishes
463468
* @return The request call
464469
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -471,9 +476,9 @@ public ApiResponse<RepoSyncEvent> repoSyncExportWithHttpInfo(String accountId, S
471476
<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>
472477
</table>
473478
*/
474-
public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhraseAppOTP, final ApiCallback<RepoSyncEvent> _callback) throws ApiException {
479+
public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhraseAppOTP, RepoSyncExportParameters repoSyncExportParameters, final ApiCallback<RepoSyncEvent> _callback) throws ApiException {
475480

476-
okhttp3.Call localVarCall = repoSyncExportValidateBeforeCall(accountId, id, xPhraseAppOTP, _callback);
481+
okhttp3.Call localVarCall = repoSyncExportValidateBeforeCall(accountId, id, xPhraseAppOTP, repoSyncExportParameters, _callback);
477482
Type localVarReturnType = new TypeToken<RepoSyncEvent>(){}.getType();
478483
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
479484
return localVarCall;

0 commit comments

Comments
 (0)