phrase 4.28.0 → 4.30.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 +17 -0
- data/README.md +7 -4
- data/docs/Account.md +8 -8
- data/docs/AccountDetails.md +10 -10
- data/docs/AccountSearchResult.md +8 -8
- data/docs/AffectedCount.md +2 -2
- data/docs/AffectedResources.md +2 -2
- data/docs/Authorization.md +9 -9
- data/docs/AuthorizationCreateParameters.md +4 -4
- data/docs/AuthorizationUpdateParameters.md +4 -4
- data/docs/AuthorizationWithToken.md +10 -10
- data/docs/Automation.md +17 -17
- data/docs/AutomationEvent.md +10 -10
- data/docs/AutomationEventProject.md +3 -3
- data/docs/AutomationsCreateParameters.md +10 -10
- data/docs/AutomationsCreateParameters1.md +10 -10
- data/docs/BlacklistedKey.md +5 -5
- data/docs/BlacklistedKeyCreateParameters.md +2 -2
- data/docs/BlacklistedKeyUpdateParameters.md +2 -2
- data/docs/Branch.md +12 -12
- data/docs/BranchComparison.md +5 -5
- data/docs/BranchComparisonChange.md +3 -3
- data/docs/BranchComparisonDiff.md +4 -4
- data/docs/BranchComparisonDiffConflictsValue.md +3 -3
- data/docs/BranchCreateComparisonParameters.md +2 -2
- data/docs/BranchCreateParameters.md +3 -3
- data/docs/BranchMergeParameters.md +2 -2
- data/docs/BranchName.md +2 -2
- data/docs/BranchSyncParameters.md +2 -2
- data/docs/BranchUpdateParameters.md +2 -2
- data/docs/CheckIssue.md +10 -10
- data/docs/Comment.md +9 -9
- data/docs/CommentCreateParameters.md +4 -4
- data/docs/CommentCreateParameters1.md +3 -3
- data/docs/CommentMarkReadParameters.md +2 -2
- data/docs/CommentReaction.md +7 -7
- data/docs/CommentUpdateParameters.md +3 -3
- data/docs/CurrentUser.md +9 -9
- data/docs/CustomMetadataDataType.md +1 -1
- data/docs/CustomMetadataPropertiesCreateParameters.md +6 -6
- data/docs/CustomMetadataPropertiesUpdateParameters.md +5 -5
- data/docs/CustomMetadataProperty.md +10 -10
- data/docs/Distribution.md +9 -9
- data/docs/DistributionCreateParameters.md +6 -6
- data/docs/DistributionDetails.md +11 -11
- data/docs/DistributionUpdateParameters.md +6 -6
- data/docs/Document.md +5 -5
- data/docs/DocumentDelete422Response.md +3 -3
- data/docs/DocumentDelete422ResponseErrorsInner.md +4 -4
- data/docs/Error.md +2 -2
- data/docs/ErrorError.md +3 -3
- data/docs/FigmaAttachment.md +5 -5
- data/docs/FigmaAttachmentCreateParameters.md +3 -3
- data/docs/FigmaAttachmentUpdateParameters.md +3 -3
- data/docs/Format.md +7 -7
- data/docs/Glossary.md +7 -7
- data/docs/GlossaryCreateParameters.md +4 -4
- data/docs/GlossaryTerm.md +10 -10
- data/docs/GlossaryTermCreateParameters.md +3 -3
- data/docs/GlossaryTermGlossary.md +3 -3
- data/docs/GlossaryTermTranslation.md +6 -6
- data/docs/GlossaryTermTranslationCreateParameters.md +3 -3
- data/docs/GlossaryTermTranslationUpdateParameters.md +3 -3
- data/docs/GlossaryTermUpdateParameters.md +3 -3
- data/docs/GlossaryUpdateParameters.md +4 -4
- data/docs/Icu.md +2 -2
- data/docs/IcuSkeletonError.md +2 -2
- data/docs/IcuSkeletonParameters.md +5 -5
- data/docs/Invitation.md +16 -16
- data/docs/InvitationCreateParameters.md +9 -9
- data/docs/InvitationUpdateParameters.md +8 -8
- data/docs/InvitationUpdateSettingsParameters.md +3 -3
- data/docs/Job.md +14 -14
- data/docs/JobAnnotation.md +5 -5
- data/docs/JobAnnotationShort.md +3 -3
- data/docs/JobAnnotationUpdateParameters.md +3 -3
- data/docs/JobComment.md +8 -8
- data/docs/JobCommentCreateParameters.md +3 -3
- data/docs/JobCommentUpdateParameters.md +3 -3
- data/docs/JobCompleteParameters.md +2 -2
- data/docs/JobCreateParameters.md +11 -11
- data/docs/JobDetails.md +22 -22
- data/docs/JobKeysCreateParameters.md +3 -3
- data/docs/JobKeysDeleteParameters.md +3 -3
- data/docs/JobLocale.md +10 -10
- data/docs/JobLocaleCompleteParameters.md +2 -2
- data/docs/JobLocaleCompleteReviewParameters.md +2 -2
- data/docs/JobLocaleReopenParameters.md +2 -2
- data/docs/JobLocaleUpdateParameters.md +7 -7
- data/docs/JobLocalesCreateParameters.md +7 -7
- data/docs/JobPreview.md +4 -4
- data/docs/JobReopenParameters.md +2 -2
- data/docs/JobStartParameters.md +2 -2
- data/docs/JobTemplate.md +9 -9
- data/docs/JobTemplateCreateParameters.md +7 -5
- data/docs/JobTemplateDetails.md +12 -12
- data/docs/JobTemplateLocaleUpdateParameters.md +7 -7
- data/docs/JobTemplateLocales.md +6 -6
- data/docs/JobTemplateLocalesCreateParameters.md +7 -7
- data/docs/JobTemplatePreview.md +3 -3
- data/docs/JobTemplateUpdateParameters.md +7 -5
- data/docs/JobUpdateParameters.md +7 -7
- data/docs/KeyCreateParameters.md +21 -21
- data/docs/KeyFormatAnnotationsList200ResponseInner.md +3 -3
- data/docs/KeyLink.md +8 -8
- data/docs/KeyLinksBatchDestroyParameters.md +4 -4
- data/docs/KeyLinksCreateParameters.md +2 -2
- data/docs/KeyPreview.md +5 -5
- data/docs/KeyUpdateParameters.md +19 -19
- data/docs/KeysExcludeParameters.md +5 -5
- data/docs/KeysIncludeParameters.md +5 -5
- data/docs/KeysSearchParameters.md +6 -6
- data/docs/KeysTagParameters.md +5 -5
- data/docs/KeysUntagParameters.md +5 -5
- data/docs/Locale.md +17 -17
- data/docs/LocaleCreateParameters.md +16 -16
- data/docs/LocaleDetails.md +18 -18
- data/docs/LocaleDownload.md +8 -8
- data/docs/LocaleDownloadCreateParameters.md +14 -14
- data/docs/LocaleDownloadParams.md +8 -8
- data/docs/LocaleDownloadResult.md +2 -2
- data/docs/LocalePreview.md +4 -4
- data/docs/LocalePreview1.md +3 -3
- data/docs/LocaleReport.md +15 -15
- data/docs/LocaleStatistics.md +8 -8
- data/docs/LocaleTeamPreview.md +4 -4
- data/docs/LocaleUpdateParameters.md +14 -14
- data/docs/LocaleUserPreview.md +5 -5
- data/docs/MachineTranslationLocaleProviderMapping.md +4 -4
- data/docs/MachineTranslationLocaleProviderMappingsCreateParameters.md +4 -4
- data/docs/MachineTranslationSettings.md +3 -3
- data/docs/MachineTranslationSettingsUpdateParameters.md +2 -2
- data/docs/Member.md +12 -12
- data/docs/MemberProjectDetail.md +11 -11
- data/docs/MemberProjectDetailProjectRolesInner.md +3 -3
- data/docs/MemberSpacesInner.md +6 -6
- data/docs/MemberUpdateParameters.md +8 -8
- data/docs/MemberUpdateSettingsParameters.md +3 -3
- data/docs/MembersApi.md +70 -0
- data/docs/Notification.md +14 -14
- data/docs/NotificationGroup.md +5 -5
- data/docs/NotificationGroupDetail.md +7 -7
- data/docs/OrderConfirmParameters.md +2 -2
- data/docs/OrderCreateParameters.md +16 -16
- data/docs/OrganizationJobTemplate.md +8 -8
- data/docs/OrganizationJobTemplateCreateParameters.md +6 -4
- data/docs/OrganizationJobTemplateDetails.md +11 -11
- data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +7 -7
- data/docs/OrganizationJobTemplateLocalesCreateParameters.md +7 -7
- data/docs/OrganizationJobTemplateUpdateParameters.md +6 -4
- data/docs/PreTranslation.md +8 -8
- data/docs/PreTranslationCreateParameters.md +3 -3
- data/docs/Project.md +12 -12
- data/docs/ProjectCreateParameters.md +16 -16
- data/docs/ProjectDetails.md +18 -18
- data/docs/ProjectLocales.md +8 -8
- data/docs/ProjectMember.md +27 -0
- data/docs/ProjectReport.md +9 -9
- data/docs/ProjectShort.md +6 -6
- data/docs/ProjectUpdateParameters.md +14 -14
- data/docs/QualityPerformanceScoreList200Response.md +4 -4
- data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +3 -3
- data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +2 -2
- data/docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md +4 -4
- data/docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md +4 -4
- data/docs/QualityPerformanceScoreListRequest.md +2 -2
- data/docs/Release.md +14 -14
- data/docs/ReleaseCreateParameters.md +8 -8
- data/docs/ReleaseCreateParameters1.md +8 -8
- data/docs/ReleasePreview.md +13 -13
- data/docs/ReleaseTrigger.md +12 -12
- data/docs/ReleaseUpdateParameters.md +6 -6
- data/docs/ReleaseUpdateParameters1.md +8 -8
- data/docs/RepoSync.md +12 -12
- data/docs/RepoSyncCreateParameters.md +10 -10
- data/docs/RepoSyncEvent.md +8 -8
- data/docs/RepoSyncExportParameters.md +3 -3
- data/docs/RepoSyncImportParameters.md +3 -3
- data/docs/RepoSyncsApi.md +5 -1
- data/docs/ReportsApi.md +4 -4
- data/docs/Screenshot.md +8 -8
- data/docs/ScreenshotMarker.md +7 -7
- data/docs/ScreenshotMarkerCreateParameters.md +4 -4
- data/docs/ScreenshotMarkerPresentation.md +5 -5
- data/docs/ScreenshotMarkerUpdateParameters.md +4 -4
- data/docs/ScreenshotUpdateParameters.md +5 -5
- data/docs/SearchInAccountParameters.md +4 -4
- data/docs/Space.md +7 -7
- data/docs/Space1.md +6 -6
- data/docs/SpaceCreateParameters.md +2 -2
- data/docs/SpaceUpdateParameters.md +2 -2
- data/docs/SpacesProjectsCreateParameters.md +2 -2
- data/docs/Styleguide.md +5 -5
- data/docs/StyleguideCreateParameters.md +14 -14
- data/docs/StyleguideDetails.md +18 -18
- data/docs/StyleguidePreview.md +3 -3
- data/docs/StyleguideUpdateParameters.md +14 -14
- data/docs/Subscription.md +3 -3
- data/docs/SupportedLanguagesApi.md +62 -0
- data/docs/Tag.md +6 -6
- data/docs/TagCreateParameters.md +3 -3
- data/docs/TagWithStats.md +7 -7
- data/docs/TagWithStats1Statistics.md +5 -5
- data/docs/TagWithStats1Statistics1.md +3 -3
- data/docs/Team.md +8 -8
- data/docs/TeamCreateParameters.md +2 -2
- data/docs/TeamDetail.md +8 -8
- data/docs/TeamShort.md +5 -5
- data/docs/TeamUpdateParameters.md +2 -2
- data/docs/TeamsProjectsCreateParameters.md +2 -2
- data/docs/TeamsSpacesCreateParameters.md +2 -2
- data/docs/TeamsUsersCreateParameters.md +2 -2
- data/docs/Translation.md +13 -13
- data/docs/TranslationCreateParameters.md +9 -9
- data/docs/TranslationDetails.md +15 -15
- data/docs/TranslationExcludeParameters.md +2 -2
- data/docs/TranslationIncludeParameters.md +2 -2
- data/docs/TranslationKey.md +11 -11
- data/docs/TranslationKeyDetails.md +21 -21
- data/docs/TranslationOrder.md +19 -19
- data/docs/TranslationParent.md +3 -3
- data/docs/TranslationReviewParameters.md +2 -2
- data/docs/TranslationUnreviewParameters.md +2 -2
- data/docs/TranslationUnverifyParameters.md +2 -2
- data/docs/TranslationUpdateParameters.md +7 -7
- data/docs/TranslationVerifyParameters.md +2 -2
- data/docs/TranslationVersion.md +9 -9
- data/docs/TranslationVersionWithUser.md +10 -10
- data/docs/TranslationsExcludeParameters.md +5 -5
- data/docs/TranslationsIncludeParameters.md +5 -5
- data/docs/TranslationsReviewParameters.md +3 -3
- data/docs/TranslationsSearchParameters.md +5 -5
- data/docs/TranslationsUnreviewParameters.md +3 -3
- data/docs/TranslationsUnverifyParameters.md +5 -5
- data/docs/TranslationsVerifyParameters.md +4 -4
- data/docs/Upload.md +13 -13
- data/docs/UploadBatch.md +9 -9
- data/docs/UploadBatchesCreateParameters.md +3 -3
- data/docs/UploadSummary.md +11 -11
- data/docs/UploadsApi.md +2 -2
- data/docs/User.md +7 -7
- data/docs/UserPreview.md +5 -5
- data/docs/Variable.md +5 -5
- data/docs/VariableCreateParameters.md +3 -3
- data/docs/VariableUpdateParameters.md +3 -3
- data/docs/Webhook.md +9 -9
- data/docs/WebhookCreateParameters.md +7 -7
- data/docs/WebhookDelivery.md +8 -8
- data/docs/WebhookUpdateParameters.md +7 -7
- data/lib/phrase/api/members_api.rb +78 -0
- data/lib/phrase/api/repo_syncs_api.rb +6 -0
- data/lib/phrase/api/reports_api.rb +4 -4
- data/lib/phrase/api/supported_languages_api.rb +67 -0
- data/lib/phrase/models/job_template_create_parameters.rb +14 -4
- data/lib/phrase/models/job_template_update_parameters.rb +14 -4
- data/lib/phrase/models/locale_create_parameters.rb +2 -2
- data/lib/phrase/models/organization_job_template_create_parameters.rb +14 -4
- data/lib/phrase/models/organization_job_template_update_parameters.rb +14 -4
- data/lib/phrase/models/project_member.rb +241 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +2 -0
- data/spec/api/members_api_spec.rb +17 -0
- data/spec/api/repo_syncs_api_spec.rb +2 -0
- data/spec/api/reports_api_spec.rb +2 -2
- data/spec/api/supported_languages_api_spec.rb +34 -0
- data/spec/models/job_template_create_parameters_spec.rb +6 -0
- data/spec/models/job_template_update_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
- data/spec/models/project_member_spec.rb +59 -0
- metadata +270 -262
|
@@ -43,19 +43,19 @@ Name | Type | Description | Notes
|
|
|
43
43
|
## Code Sample
|
|
44
44
|
|
|
45
45
|
```ruby
|
|
46
|
-
require '
|
|
46
|
+
require 'phrase'
|
|
47
47
|
|
|
48
|
-
instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
49
|
-
name: My Android Project,
|
|
50
|
-
point_of_contact: abcd1234,
|
|
51
|
-
main_format: yml,
|
|
52
|
-
media: Python,
|
|
48
|
+
instance = Phrase::ProjectUpdateParameters.new(account_id: 'abcd1234',
|
|
49
|
+
name: 'My Android Project',
|
|
50
|
+
point_of_contact: 'abcd1234',
|
|
51
|
+
main_format: 'yml',
|
|
52
|
+
media: 'Python',
|
|
53
53
|
shares_translation_memory: true,
|
|
54
|
-
tm_ids: [
|
|
55
|
-
term_base_ids: [
|
|
56
|
-
project_image:
|
|
54
|
+
tm_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
55
|
+
term_base_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
56
|
+
project_image: File.new('/path/to/file'),
|
|
57
57
|
remove_project_image: false,
|
|
58
|
-
workflow: review,
|
|
58
|
+
workflow: 'review',
|
|
59
59
|
machine_translation_enabled: true,
|
|
60
60
|
enable_branching: true,
|
|
61
61
|
protect_master_branch: true,
|
|
@@ -71,15 +71,15 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
|
|
|
71
71
|
autotranslate_use_translation_memory: true,
|
|
72
72
|
autotranslate_overwrite_unverified_translations: true,
|
|
73
73
|
fallback_for_unverified_translations: false,
|
|
74
|
-
default_encoding: UTF-8,
|
|
75
|
-
placeholder_styles: [
|
|
74
|
+
default_encoding: 'UTF-8',
|
|
75
|
+
placeholder_styles: ["rails_i18n","java_properties"],
|
|
76
76
|
autocomplete_job_enabled: false,
|
|
77
77
|
job_locking_enabled: false,
|
|
78
78
|
smart_suggest_enabled: true,
|
|
79
79
|
smart_suggest_use_glossary: true,
|
|
80
80
|
smart_suggest_use_machine_translation: true,
|
|
81
|
-
translation_keys_sort_collation: unicode_ci,
|
|
82
|
-
cldr_version: legacy)
|
|
81
|
+
translation_keys_sort_collation: 'unicode_ci',
|
|
82
|
+
cldr_version: 'legacy')
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
|
|
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'phrase'
|
|
15
15
|
|
|
16
|
-
instance = Phrase::QualityPerformanceScoreList200Response.new(error:
|
|
17
|
-
data:
|
|
18
|
-
errors:
|
|
16
|
+
instance = Phrase::QualityPerformanceScoreList200Response.new(error: nil,
|
|
17
|
+
data: nil,
|
|
18
|
+
errors: nil)
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
|
|
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Code Sample
|
|
11
11
|
|
|
12
12
|
```ruby
|
|
13
|
-
require '
|
|
13
|
+
require 'phrase'
|
|
14
14
|
|
|
15
|
-
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOf.new(data:
|
|
16
|
-
errors:
|
|
15
|
+
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOf.new(data: nil,
|
|
16
|
+
errors: nil)
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
|
|
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
## Code Sample
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
require '
|
|
12
|
+
require 'phrase'
|
|
13
13
|
|
|
14
|
-
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfData.new(translations:
|
|
14
|
+
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfData.new(translations: nil)
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
|
|
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'phrase'
|
|
15
15
|
|
|
16
|
-
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.new(engine:
|
|
17
|
-
score:
|
|
18
|
-
id:
|
|
16
|
+
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.new(engine: nil,
|
|
17
|
+
score: nil,
|
|
18
|
+
id: nil)
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
|
|
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'phrase'
|
|
15
15
|
|
|
16
|
-
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfErrorsInner.new(message:
|
|
17
|
-
code:
|
|
18
|
-
id:
|
|
16
|
+
instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfErrorsInner.new(message: nil,
|
|
17
|
+
code: nil,
|
|
18
|
+
id: nil)
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
|
|
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
## Code Sample
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
require '
|
|
12
|
+
require 'phrase'
|
|
13
13
|
|
|
14
|
-
instance = Phrase::QualityPerformanceScoreListRequest.new(translation_ids:
|
|
14
|
+
instance = Phrase::QualityPerformanceScoreListRequest.new(translation_ids: nil)
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
|
data/docs/Release.md
CHANGED
|
@@ -21,21 +21,21 @@ Name | Type | Description | Notes
|
|
|
21
21
|
## Code Sample
|
|
22
22
|
|
|
23
23
|
```ruby
|
|
24
|
-
require '
|
|
24
|
+
require 'phrase'
|
|
25
25
|
|
|
26
|
-
instance = Phrase::Release.new(id:
|
|
27
|
-
version:
|
|
28
|
-
app_min_version:
|
|
29
|
-
app_max_version:
|
|
30
|
-
description:
|
|
31
|
-
platforms:
|
|
32
|
-
environments:
|
|
33
|
-
locales:
|
|
34
|
-
tags:
|
|
35
|
-
state:
|
|
36
|
-
project:
|
|
37
|
-
created_at:
|
|
38
|
-
updated_at:
|
|
26
|
+
instance = Phrase::Release.new(id: nil,
|
|
27
|
+
version: nil,
|
|
28
|
+
app_min_version: nil,
|
|
29
|
+
app_max_version: nil,
|
|
30
|
+
description: nil,
|
|
31
|
+
platforms: nil,
|
|
32
|
+
environments: nil,
|
|
33
|
+
locales: nil,
|
|
34
|
+
tags: nil,
|
|
35
|
+
state: nil,
|
|
36
|
+
project: nil,
|
|
37
|
+
created_at: nil,
|
|
38
|
+
updated_at: nil)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
|
|
@@ -15,15 +15,15 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
require '
|
|
18
|
+
require 'phrase'
|
|
19
19
|
|
|
20
|
-
instance = Phrase::ReleaseCreateParameters.new(description: My first Release,
|
|
21
|
-
platforms: [
|
|
22
|
-
locale_ids: [
|
|
23
|
-
tags: [
|
|
24
|
-
app_min_version: 2.5.0,
|
|
25
|
-
app_max_version: 3.0.0,
|
|
26
|
-
branch: my-feature-branch)
|
|
20
|
+
instance = Phrase::ReleaseCreateParameters.new(description: 'My first Release',
|
|
21
|
+
platforms: ["android","ios"],
|
|
22
|
+
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
|
23
|
+
tags: ["android","feature1"],
|
|
24
|
+
app_min_version: '2.5.0',
|
|
25
|
+
app_max_version: '3.0.0',
|
|
26
|
+
branch: 'my-feature-branch')
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
|
@@ -15,15 +15,15 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
require '
|
|
18
|
+
require 'phrase'
|
|
19
19
|
|
|
20
|
-
instance = Phrase::ReleaseCreateParameters1.new(cron_schedule: 15 18 * * 1,3,
|
|
21
|
-
time_zone: Europe/Berlin,
|
|
22
|
-
locale_ids: [
|
|
23
|
-
tags: [
|
|
24
|
-
branch: my-feature-branch,
|
|
25
|
-
app_min_version: 1.0.0,
|
|
26
|
-
app_max_version: 2.0.0)
|
|
20
|
+
instance = Phrase::ReleaseCreateParameters1.new(cron_schedule: '15 18 * * 1,3',
|
|
21
|
+
time_zone: 'Europe/Berlin',
|
|
22
|
+
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
|
23
|
+
tags: ["android","feature1"],
|
|
24
|
+
branch: 'my-feature-branch',
|
|
25
|
+
app_min_version: '1.0.0',
|
|
26
|
+
app_max_version: '2.0.0')
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
data/docs/ReleasePreview.md
CHANGED
|
@@ -20,20 +20,20 @@ Name | Type | Description | Notes
|
|
|
20
20
|
## Code Sample
|
|
21
21
|
|
|
22
22
|
```ruby
|
|
23
|
-
require '
|
|
23
|
+
require 'phrase'
|
|
24
24
|
|
|
25
|
-
instance = Phrase::ReleasePreview.new(id:
|
|
26
|
-
version:
|
|
27
|
-
app_min_version:
|
|
28
|
-
app_max_version:
|
|
29
|
-
description:
|
|
30
|
-
platforms:
|
|
31
|
-
environments:
|
|
32
|
-
locale_codes:
|
|
33
|
-
tags:
|
|
34
|
-
project:
|
|
35
|
-
created_at:
|
|
36
|
-
updated_at:
|
|
25
|
+
instance = Phrase::ReleasePreview.new(id: nil,
|
|
26
|
+
version: nil,
|
|
27
|
+
app_min_version: nil,
|
|
28
|
+
app_max_version: nil,
|
|
29
|
+
description: nil,
|
|
30
|
+
platforms: nil,
|
|
31
|
+
environments: nil,
|
|
32
|
+
locale_codes: nil,
|
|
33
|
+
tags: nil,
|
|
34
|
+
project: nil,
|
|
35
|
+
created_at: nil,
|
|
36
|
+
updated_at: nil)
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
data/docs/ReleaseTrigger.md
CHANGED
|
@@ -19,19 +19,19 @@ Name | Type | Description | Notes
|
|
|
19
19
|
## Code Sample
|
|
20
20
|
|
|
21
21
|
```ruby
|
|
22
|
-
require '
|
|
22
|
+
require 'phrase'
|
|
23
23
|
|
|
24
|
-
instance = Phrase::ReleaseTrigger.new(id:
|
|
25
|
-
branch:
|
|
26
|
-
cron_schedule:
|
|
27
|
-
time_zone:
|
|
28
|
-
next_run_at:
|
|
29
|
-
app_min_version:
|
|
30
|
-
app_max_version:
|
|
31
|
-
locales:
|
|
32
|
-
tags:
|
|
33
|
-
created_at:
|
|
34
|
-
updated_at:
|
|
24
|
+
instance = Phrase::ReleaseTrigger.new(id: nil,
|
|
25
|
+
branch: nil,
|
|
26
|
+
cron_schedule: nil,
|
|
27
|
+
time_zone: nil,
|
|
28
|
+
next_run_at: nil,
|
|
29
|
+
app_min_version: nil,
|
|
30
|
+
app_max_version: nil,
|
|
31
|
+
locales: nil,
|
|
32
|
+
tags: nil,
|
|
33
|
+
created_at: nil,
|
|
34
|
+
updated_at: nil)
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
|
|
@@ -13,13 +13,13 @@ Name | Type | Description | Notes
|
|
|
13
13
|
## Code Sample
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
|
-
require '
|
|
16
|
+
require 'phrase'
|
|
17
17
|
|
|
18
|
-
instance = Phrase::ReleaseUpdateParameters.new(description: My first Release,
|
|
19
|
-
platforms: [
|
|
20
|
-
app_min_version: 2.5.0,
|
|
21
|
-
app_max_version: 3.0.0,
|
|
22
|
-
branch: my-feature-branch)
|
|
18
|
+
instance = Phrase::ReleaseUpdateParameters.new(description: 'My first Release',
|
|
19
|
+
platforms: ["android","ios"],
|
|
20
|
+
app_min_version: '2.5.0',
|
|
21
|
+
app_max_version: '3.0.0',
|
|
22
|
+
branch: 'my-feature-branch')
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
|
|
@@ -15,15 +15,15 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
require '
|
|
18
|
+
require 'phrase'
|
|
19
19
|
|
|
20
|
-
instance = Phrase::ReleaseUpdateParameters1.new(cron_schedule: 15 18 * * 1,3,
|
|
21
|
-
time_zone: Europe/Berlin,
|
|
22
|
-
locale_ids: [
|
|
23
|
-
tags: [
|
|
24
|
-
branch: my-feature-branch,
|
|
25
|
-
app_min_version: 1.0.0,
|
|
26
|
-
app_max_version: 2.0.0)
|
|
20
|
+
instance = Phrase::ReleaseUpdateParameters1.new(cron_schedule: '15 18 * * 1,3',
|
|
21
|
+
time_zone: 'Europe/Berlin',
|
|
22
|
+
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
|
23
|
+
tags: ["android","feature1"],
|
|
24
|
+
branch: 'my-feature-branch',
|
|
25
|
+
app_min_version: '1.0.0',
|
|
26
|
+
app_max_version: '2.0.0')
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
data/docs/RepoSync.md
CHANGED
|
@@ -19,19 +19,19 @@ Name | Type | Description | Notes
|
|
|
19
19
|
## Code Sample
|
|
20
20
|
|
|
21
21
|
```ruby
|
|
22
|
-
require '
|
|
22
|
+
require 'phrase'
|
|
23
23
|
|
|
24
|
-
instance = Phrase::RepoSync.new(id:
|
|
25
|
-
name:
|
|
26
|
-
project:
|
|
27
|
-
provider:
|
|
28
|
-
enabled:
|
|
29
|
-
auto_import:
|
|
30
|
-
repo_name:
|
|
31
|
-
pr_branch:
|
|
32
|
-
created_at:
|
|
33
|
-
last_import_at:
|
|
34
|
-
last_export_at:
|
|
24
|
+
instance = Phrase::RepoSync.new(id: nil,
|
|
25
|
+
name: nil,
|
|
26
|
+
project: nil,
|
|
27
|
+
provider: nil,
|
|
28
|
+
enabled: nil,
|
|
29
|
+
auto_import: nil,
|
|
30
|
+
repo_name: nil,
|
|
31
|
+
pr_branch: nil,
|
|
32
|
+
created_at: nil,
|
|
33
|
+
last_import_at: nil,
|
|
34
|
+
last_export_at: nil)
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
|
|
@@ -18,18 +18,18 @@ Name | Type | Description | Notes
|
|
|
18
18
|
## Code Sample
|
|
19
19
|
|
|
20
20
|
```ruby
|
|
21
|
-
require '
|
|
21
|
+
require 'phrase'
|
|
22
22
|
|
|
23
|
-
instance = Phrase::RepoSyncCreateParameters.new(project_id: abcd1234abcd1234abcd1234abcd1234,
|
|
24
|
-
name:
|
|
25
|
-
git_provider: github,
|
|
26
|
-
connection_type: github_app,
|
|
27
|
-
repo_name: my-org/my-repo,
|
|
28
|
-
base_branch: main,
|
|
29
|
-
pr_branch: phrase-translations,
|
|
23
|
+
instance = Phrase::RepoSyncCreateParameters.new(project_id: 'abcd1234abcd1234abcd1234abcd1234',
|
|
24
|
+
name: nil,
|
|
25
|
+
git_provider: 'github',
|
|
26
|
+
connection_type: 'github_app',
|
|
27
|
+
repo_name: 'my-org/my-repo',
|
|
28
|
+
base_branch: 'main',
|
|
29
|
+
pr_branch: 'phrase-translations',
|
|
30
30
|
auto_import: false,
|
|
31
|
-
access_token: ghp_xxxxxxxxxxxxxxxxxxxx,
|
|
32
|
-
custom_api_endpoint: https://git.example.com/api/v4)
|
|
31
|
+
access_token: 'ghp_xxxxxxxxxxxxxxxxxxxx',
|
|
32
|
+
custom_api_endpoint: 'https://git.example.com/api/v4')
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
|
data/docs/RepoSyncEvent.md
CHANGED
|
@@ -15,15 +15,15 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
require '
|
|
18
|
+
require 'phrase'
|
|
19
19
|
|
|
20
|
-
instance = Phrase::RepoSyncEvent.new(id:
|
|
21
|
-
type:
|
|
22
|
-
created_at:
|
|
23
|
-
status:
|
|
24
|
-
pull_request_url:
|
|
25
|
-
auto_import:
|
|
26
|
-
errors:
|
|
20
|
+
instance = Phrase::RepoSyncEvent.new(id: nil,
|
|
21
|
+
type: nil,
|
|
22
|
+
created_at: nil,
|
|
23
|
+
status: nil,
|
|
24
|
+
pull_request_url: nil,
|
|
25
|
+
auto_import: nil,
|
|
26
|
+
errors: nil)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
|
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Code Sample
|
|
11
11
|
|
|
12
12
|
```ruby
|
|
13
|
-
require '
|
|
13
|
+
require 'phrase'
|
|
14
14
|
|
|
15
|
-
instance = Phrase::RepoSyncExportParameters.new(pr_branch: my-feature-branch,
|
|
16
|
-
branch: my-strings-branch)
|
|
15
|
+
instance = Phrase::RepoSyncExportParameters.new(pr_branch: 'my-feature-branch',
|
|
16
|
+
branch: 'my-strings-branch')
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
|
|
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Code Sample
|
|
11
11
|
|
|
12
12
|
```ruby
|
|
13
|
-
require '
|
|
13
|
+
require 'phrase'
|
|
14
14
|
|
|
15
|
-
instance = Phrase::RepoSyncImportParameters.new(repository_branch: my-feature-branch,
|
|
16
|
-
branch: my-strings-branch)
|
|
15
|
+
instance = Phrase::RepoSyncImportParameters.new(repository_branch: 'my-feature-branch',
|
|
16
|
+
branch: 'my-strings-branch')
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
|
data/docs/RepoSyncsApi.md
CHANGED
|
@@ -360,7 +360,9 @@ end
|
|
|
360
360
|
api_instance = Phrase::RepoSyncsApi.new
|
|
361
361
|
account_id = 'account_id_example' # String | Account ID
|
|
362
362
|
opts = {
|
|
363
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
363
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
364
|
+
page: 1, # Integer | Page number
|
|
365
|
+
per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
364
366
|
}
|
|
365
367
|
|
|
366
368
|
begin
|
|
@@ -379,6 +381,8 @@ Name | Type | Description | Notes
|
|
|
379
381
|
------------- | ------------- | ------------- | -------------
|
|
380
382
|
**account_id** | **String**| Account ID |
|
|
381
383
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
384
|
+
**page** | **Integer**| Page number | [optional]
|
|
385
|
+
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
|
382
386
|
|
|
383
387
|
### Return type
|
|
384
388
|
|
data/docs/ReportsApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *https://api.phrase.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**report_locales_list**](ReportsApi.md#report_locales_list) | **GET** /projects/{project_id}/report/locales | List Locale Reports
|
|
7
|
+
[**report_locales_list**](ReportsApi.md#report_locales_list) | **GET** /projects/{project_id}/report/locales | List Locale Reports (word count, character count, translation statistics)
|
|
8
8
|
[**report_show**](ReportsApi.md#report_show) | **GET** /projects/{project_id}/report | Get Project Report
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,9 +13,9 @@ Method | HTTP request | Description
|
|
|
13
13
|
|
|
14
14
|
> Array<LocaleReport> report_locales_list(project_id, opts)
|
|
15
15
|
|
|
16
|
-
List Locale Reports
|
|
16
|
+
List Locale Reports (word count, character count, translation statistics)
|
|
17
17
|
|
|
18
|
-
List all locale reports for the given project
|
|
18
|
+
List all locale reports for the given project. Each report includes translation statistics per locale, including word count and character count fields (`source_word_count`, `word_count`, `word_count_unverified`, `word_count_missing`) as well as translation completion statistics (`keys_count`, `completed_translations_count`, `untranslated_keys_count`, `unverified_translations_count`, `reviewed_translations_count`, and their percentages). Use the `tag` parameter to scope the report to a specific job (e.g. its job tag) to get job-scoped word count statistics.
|
|
19
19
|
|
|
20
20
|
### Example
|
|
21
21
|
|
|
@@ -45,7 +45,7 @@ opts = {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
begin
|
|
48
|
-
#List Locale Reports
|
|
48
|
+
#List Locale Reports (word count, character count, translation statistics)
|
|
49
49
|
result = api_instance.report_locales_list(project_id, opts)
|
|
50
50
|
pp result
|
|
51
51
|
rescue Phrase::ApiError => e
|
data/docs/Screenshot.md
CHANGED
|
@@ -15,15 +15,15 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
require '
|
|
18
|
+
require 'phrase'
|
|
19
19
|
|
|
20
|
-
instance = Phrase::Screenshot.new(id:
|
|
21
|
-
name:
|
|
22
|
-
description:
|
|
23
|
-
screenshot_url:
|
|
24
|
-
created_at:
|
|
25
|
-
updated_at:
|
|
26
|
-
markers_count:
|
|
20
|
+
instance = Phrase::Screenshot.new(id: nil,
|
|
21
|
+
name: nil,
|
|
22
|
+
description: nil,
|
|
23
|
+
screenshot_url: nil,
|
|
24
|
+
created_at: nil,
|
|
25
|
+
updated_at: nil,
|
|
26
|
+
markers_count: nil)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
data/docs/ScreenshotMarker.md
CHANGED
|
@@ -14,14 +14,14 @@ Name | Type | Description | Notes
|
|
|
14
14
|
## Code Sample
|
|
15
15
|
|
|
16
16
|
```ruby
|
|
17
|
-
require '
|
|
17
|
+
require 'phrase'
|
|
18
18
|
|
|
19
|
-
instance = Phrase::ScreenshotMarker.new(id:
|
|
20
|
-
presentation:
|
|
21
|
-
presentation_type:
|
|
22
|
-
created_at:
|
|
23
|
-
updated_at:
|
|
24
|
-
translation_key:
|
|
19
|
+
instance = Phrase::ScreenshotMarker.new(id: nil,
|
|
20
|
+
presentation: nil,
|
|
21
|
+
presentation_type: nil,
|
|
22
|
+
created_at: nil,
|
|
23
|
+
updated_at: nil,
|
|
24
|
+
translation_key: nil)
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
|
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'phrase'
|
|
15
15
|
|
|
16
|
-
instance = Phrase::ScreenshotMarkerCreateParameters.new(branch: my-feature-branch,
|
|
17
|
-
key_id: abcd1234abcd1234abcd1234abcd1234,
|
|
18
|
-
presentation: {
|
|
16
|
+
instance = Phrase::ScreenshotMarkerCreateParameters.new(branch: 'my-feature-branch',
|
|
17
|
+
key_id: 'abcd1234abcd1234abcd1234abcd1234',
|
|
18
|
+
presentation: '{ "x": 100, "y": 100, "w": 100, "h": 100 }')
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
|
|
@@ -12,12 +12,12 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Code Sample
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
|
-
require '
|
|
15
|
+
require 'phrase'
|
|
16
16
|
|
|
17
|
-
instance = Phrase::ScreenshotMarkerPresentation.new(x:
|
|
18
|
-
y:
|
|
19
|
-
w:
|
|
20
|
-
h:
|
|
17
|
+
instance = Phrase::ScreenshotMarkerPresentation.new(x: nil,
|
|
18
|
+
y: nil,
|
|
19
|
+
w: nil,
|
|
20
|
+
h: nil)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|
|
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'phrase'
|
|
15
15
|
|
|
16
|
-
instance = Phrase::ScreenshotMarkerUpdateParameters.new(branch: my-feature-branch,
|
|
17
|
-
key_id: abcd1234abcd1234abcd1234abcd1234,
|
|
18
|
-
presentation: {
|
|
16
|
+
instance = Phrase::ScreenshotMarkerUpdateParameters.new(branch: 'my-feature-branch',
|
|
17
|
+
key_id: 'abcd1234abcd1234abcd1234abcd1234',
|
|
18
|
+
presentation: '{ "x": 100, "y": 100, "w": 100, "h": 100 }')
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
|
|
@@ -12,12 +12,12 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Code Sample
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
|
-
require '
|
|
15
|
+
require 'phrase'
|
|
16
16
|
|
|
17
|
-
instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
|
|
18
|
-
name: A screenshot name,
|
|
19
|
-
description: A screenshot description,
|
|
20
|
-
filename:
|
|
17
|
+
instance = Phrase::ScreenshotUpdateParameters.new(branch: 'my-feature-branch',
|
|
18
|
+
name: 'A screenshot name',
|
|
19
|
+
description: 'A screenshot description',
|
|
20
|
+
filename: File.new('/path/to/file'))
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|