phrase 2.24.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +16 -3
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/RepoSync.md +33 -0
- data/docs/RepoSyncEvent.md +27 -0
- data/docs/RepoSyncEventErrorsInner.md +16 -0
- data/docs/RepoSyncExport.md +17 -0
- data/docs/RepoSyncImport.md +17 -0
- data/docs/RepoSyncsApi.md +454 -0
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/TranslationDetails.md +3 -1
- data/docs/TranslationParent.md +19 -0
- data/lib/phrase/api/repo_syncs_api.rb +508 -0
- data/lib/phrase/models/repo_sync.rb +268 -0
- data/lib/phrase/models/repo_sync_event.rb +292 -0
- data/lib/phrase/models/repo_sync_event_errors_inner.rb +207 -0
- data/lib/phrase/models/repo_sync_export.rb +196 -0
- data/lib/phrase/models/repo_sync_import.rb +196 -0
- data/lib/phrase/models/translation_details.rb +13 -4
- data/lib/phrase/models/translation_parent.rb +205 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +7 -0
- data/spec/api/repo_syncs_api_spec.rb +120 -0
- data/spec/models/repo_sync_event_errors_inner_spec.rb +23 -0
- data/spec/models/repo_sync_event_spec.rb +67 -0
- data/spec/models/repo_sync_export_spec.rb +29 -0
- data/spec/models/repo_sync_import_spec.rb +29 -0
- data/spec/models/repo_sync_spec.rb +77 -0
- data/spec/models/translation_details_spec.rb +6 -0
- data/spec/models/translation_parent_spec.rb +35 -0
- metadata +258 -230
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 533035456c9b58cd7f63959b8a0e17d7813feaf8804e9ae5cf81ee3f0a375af5
|
4
|
+
data.tar.gz: '0581b5a61eedd4b514a9611dbecedb5d0db42356fcc50b54f61f451e60fa1284'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23ed46b1098ec42caebd13f4cb07a62281b3556187e45ae14c7e7e01d19164296c0bb47beb0d894131d703a7e9e0eafde183d15983483c05da56816fb037a86
|
7
|
+
data.tar.gz: 736cc4652b5148b32f4a2b1d0c31b701a96cee37ef2270746eadbc8bff674f4eae538104a48bcd51ae095ad2272e7354d25a7d751bbe291263b67c68551274af
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.26.0](https://github.com/phrase/openapi/compare/ruby-v2.25.0...ruby-v2.26.0) (2024-04-22)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* Add linked-parent to translation details ([#570](https://github.com/phrase/openapi/issues/570)) ([2c6f432](https://github.com/phrase/openapi/commit/2c6f43253e24b670b71ac810c85dce0759c29403))
|
9
|
+
|
10
|
+
## [2.25.0](https://github.com/phrase/openapi/compare/ruby-v2.24.0...ruby-v2.25.0) (2024-04-17)
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* **API:** Add Repo Sync [TSI-1923] ([#569](https://github.com/phrase/openapi/issues/569)) ([0bd1756](https://github.com/phrase/openapi/commit/0bd17562018cb045ff41cc1ff5008b9419a0ed12))
|
16
|
+
|
3
17
|
## [2.24.0](https://github.com/phrase/openapi/compare/ruby-v2.23.0...ruby-v2.24.0) (2024-04-10)
|
4
18
|
|
5
19
|
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
|
|
7
7
|
## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 2.
|
10
|
+
- Package version: 2.26.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
|
13
13
|
|
@@ -56,10 +56,10 @@ gem build phrase.gemspec
|
|
56
56
|
Then install the gem locally:
|
57
57
|
|
58
58
|
```shell
|
59
|
-
gem install ./phrase-2.
|
59
|
+
gem install ./phrase-2.26.0.gem
|
60
60
|
```
|
61
61
|
|
62
|
-
(for development, run `gem install --dev ./phrase-2.
|
62
|
+
(for development, run `gem install --dev ./phrase-2.26.0.gem` to install the development dependencies)
|
63
63
|
|
64
64
|
## Getting Started
|
65
65
|
|
@@ -316,6 +316,13 @@ Class | Method | HTTP request | Description
|
|
316
316
|
*Phrase::ReleasesApi* | [**release_show**](docs/ReleasesApi.md#release_show) | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Get a single release
|
317
317
|
*Phrase::ReleasesApi* | [**release_update**](docs/ReleasesApi.md#release_update) | **PATCH** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Update a release
|
318
318
|
*Phrase::ReleasesApi* | [**releases_list**](docs/ReleasesApi.md#releases_list) | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases | List releases
|
319
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_activate**](docs/RepoSyncsApi.md#repo_sync_activate) | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/activate | Activate a Repo Sync
|
320
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_deactivate**](docs/RepoSyncsApi.md#repo_sync_deactivate) | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate | Deactivate a Repo Sync
|
321
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_events**](docs/RepoSyncsApi.md#repo_sync_events) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events | Repository Syncs History
|
322
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_export**](docs/RepoSyncsApi.md#repo_sync_export) | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/export | Export to code repository
|
323
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_import**](docs/RepoSyncsApi.md#repo_sync_import) | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/import | Import from code repository
|
324
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_list**](docs/RepoSyncsApi.md#repo_sync_list) | **GET** /accounts/{account_id}/repo_syncs | Get Repo Syncs
|
325
|
+
*Phrase::RepoSyncsApi* | [**repo_sync_show**](docs/RepoSyncsApi.md#repo_sync_show) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id} | Get a single Repo Sync
|
319
326
|
*Phrase::ReportsApi* | [**report_locales_list**](docs/ReportsApi.md#report_locales_list) | **GET** /projects/{project_id}/report/locales | List Locale Reports
|
320
327
|
*Phrase::ReportsApi* | [**report_show**](docs/ReportsApi.md#report_show) | **GET** /projects/{project_id}/report | Get Project Report
|
321
328
|
*Phrase::ScreenshotMarkersApi* | [**screenshot_marker_create**](docs/ScreenshotMarkersApi.md#screenshot_marker_create) | **POST** /projects/{project_id}/screenshots/{screenshot_id}/markers | Create a screenshot marker
|
@@ -549,6 +556,11 @@ Class | Method | HTTP request | Description
|
|
549
556
|
- [Phrase::ReleasePreview](docs/ReleasePreview.md)
|
550
557
|
- [Phrase::ReleaseUpdateParameters](docs/ReleaseUpdateParameters.md)
|
551
558
|
- [Phrase::RepliesListParameters](docs/RepliesListParameters.md)
|
559
|
+
- [Phrase::RepoSync](docs/RepoSync.md)
|
560
|
+
- [Phrase::RepoSyncEvent](docs/RepoSyncEvent.md)
|
561
|
+
- [Phrase::RepoSyncEventErrorsInner](docs/RepoSyncEventErrorsInner.md)
|
562
|
+
- [Phrase::RepoSyncExport](docs/RepoSyncExport.md)
|
563
|
+
- [Phrase::RepoSyncImport](docs/RepoSyncImport.md)
|
552
564
|
- [Phrase::Screenshot](docs/Screenshot.md)
|
553
565
|
- [Phrase::ScreenshotMarker](docs/ScreenshotMarker.md)
|
554
566
|
- [Phrase::ScreenshotMarkerCreateParameters](docs/ScreenshotMarkerCreateParameters.md)
|
@@ -587,6 +599,7 @@ Class | Method | HTTP request | Description
|
|
587
599
|
- [Phrase::TranslationKey](docs/TranslationKey.md)
|
588
600
|
- [Phrase::TranslationKeyDetails](docs/TranslationKeyDetails.md)
|
589
601
|
- [Phrase::TranslationOrder](docs/TranslationOrder.md)
|
602
|
+
- [Phrase::TranslationParent](docs/TranslationParent.md)
|
590
603
|
- [Phrase::TranslationReviewParameters](docs/TranslationReviewParameters.md)
|
591
604
|
- [Phrase::TranslationUnverifyParameters](docs/TranslationUnverifyParameters.md)
|
592
605
|
- [Phrase::TranslationUpdateParameters](docs/TranslationUpdateParameters.md)
|
data/docs/KeyCreateParameters.md
CHANGED
@@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
|
|
35
35
|
data_type: number,
|
36
36
|
tags: awesome-feature,needs-proofreading,
|
37
37
|
max_characters_allowed: 140,
|
38
|
-
screenshot: [B@
|
38
|
+
screenshot: [B@2eb4a3ec,
|
39
39
|
remove_screenshot: null,
|
40
40
|
unformatted: null,
|
41
41
|
default_translation_content: Default translation content,
|
data/docs/KeyUpdateParameters.md
CHANGED
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
|
|
34
34
|
data_type: number,
|
35
35
|
tags: awesome-feature,needs-proofreading,
|
36
36
|
max_characters_allowed: 140,
|
37
|
-
screenshot: [B@
|
37
|
+
screenshot: [B@38e6dab2,
|
38
38
|
remove_screenshot: null,
|
39
39
|
unformatted: null,
|
40
40
|
xml_space_preserve: null,
|
@@ -40,7 +40,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
40
40
|
main_format: yml,
|
41
41
|
media: Python,
|
42
42
|
shares_translation_memory: true,
|
43
|
-
project_image: [B@
|
43
|
+
project_image: [B@faca8e8,
|
44
44
|
remove_project_image: null,
|
45
45
|
account_id: abcd1234,
|
46
46
|
point_of_contact: abcd1234,
|
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
41
41
|
main_format: yml,
|
42
42
|
media: Python,
|
43
43
|
shares_translation_memory: true,
|
44
|
-
project_image: [B@
|
44
|
+
project_image: [B@3b85a820,
|
45
45
|
remove_project_image: false,
|
46
46
|
workflow: review,
|
47
47
|
machine_translation_enabled: true,
|
data/docs/RepoSync.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Phrase::RepoSync
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
|
9
|
+
**provider** | **String** | | [optional]
|
10
|
+
**enabled** | **Boolean** | | [optional]
|
11
|
+
**auto_import** | **Boolean** | | [optional]
|
12
|
+
**repo_name** | **String** | | [optional]
|
13
|
+
**created_at** | **Time** | | [optional]
|
14
|
+
**last_import_at** | **Time** | | [optional]
|
15
|
+
**last_export_at** | **Time** | | [optional]
|
16
|
+
|
17
|
+
## Code Sample
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'Phrase'
|
21
|
+
|
22
|
+
instance = Phrase::RepoSync.new(id: null,
|
23
|
+
project: null,
|
24
|
+
provider: null,
|
25
|
+
enabled: null,
|
26
|
+
auto_import: null,
|
27
|
+
repo_name: null,
|
28
|
+
created_at: null,
|
29
|
+
last_import_at: null,
|
30
|
+
last_export_at: null)
|
31
|
+
```
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Phrase::RepoSyncEvent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**event_type** | **String** | | [optional]
|
8
|
+
**created_at** | **Time** | | [optional]
|
9
|
+
**status** | **String** | | [optional]
|
10
|
+
**pull_request_url** | **String** | URL of the pull request created on export | [optional]
|
11
|
+
**auto_import** | **Boolean** | Whether the import was triggered by the repo push event | [optional]
|
12
|
+
**errors** | [**Array<RepoSyncEventErrorsInner>**](RepoSyncEventErrorsInner.md) | List of error messages, in case of failure | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'Phrase'
|
18
|
+
|
19
|
+
instance = Phrase::RepoSyncEvent.new(event_type: null,
|
20
|
+
created_at: null,
|
21
|
+
status: null,
|
22
|
+
pull_request_url: null,
|
23
|
+
auto_import: null,
|
24
|
+
errors: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Phrase::RepoSyncEventErrorsInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'Phrase'
|
12
|
+
|
13
|
+
instance = Phrase::RepoSyncEventErrorsInner.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::RepoSyncExport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**message** | **String** | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::RepoSyncExport.new(message: Export started)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Phrase::RepoSyncImport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**message** | **String** | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'Phrase'
|
13
|
+
|
14
|
+
instance = Phrase::RepoSyncImport.new(message: Import started)
|
15
|
+
```
|
16
|
+
|
17
|
+
|