phrase 4.29.0 → 4.30.1
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 +4 -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 +6 -6
- 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 +6 -6
- data/docs/JobUpdateParameters.md +6 -8
- data/docs/JobsApi.md +3 -1
- 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/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 +4 -4
- data/docs/OrganizationJobTemplateDetails.md +11 -11
- data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +7 -7
- data/docs/OrganizationJobTemplateLocalesCreateParameters.md +7 -7
- data/docs/OrganizationJobTemplateUpdateParameters.md +4 -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 +7 -7
- 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/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/jobs_api.rb +3 -0
- data/lib/phrase/api/repo_syncs_api.rb +6 -0
- data/lib/phrase/api/reports_api.rb +4 -4
- data/lib/phrase/models/job_update_parameters.rb +1 -11
- data/lib/phrase/models/locale_create_parameters.rb +2 -2
- data/lib/phrase/version.rb +1 -1
- data/spec/api/jobs_api_spec.rb +1 -0
- data/spec/api/repo_syncs_api_spec.rb +2 -0
- data/spec/api/reports_api_spec.rb +2 -2
- data/spec/models/job_update_parameters_spec.rb +0 -6
- metadata +264 -264
|
@@ -2,9 +2,6 @@ require 'date'
|
|
|
2
2
|
|
|
3
3
|
module Phrase
|
|
4
4
|
class JobUpdateParameters
|
|
5
|
-
# specify the branch to use
|
|
6
|
-
attr_accessor :branch
|
|
7
|
-
|
|
8
5
|
# Job name
|
|
9
6
|
attr_accessor :name
|
|
10
7
|
|
|
@@ -26,7 +23,6 @@ module Phrase
|
|
|
26
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
24
|
def self.attribute_map
|
|
28
25
|
{
|
|
29
|
-
:'branch' => :'branch',
|
|
30
26
|
:'name' => :'name',
|
|
31
27
|
:'briefing' => :'briefing',
|
|
32
28
|
:'due_date' => :'due_date',
|
|
@@ -39,7 +35,6 @@ module Phrase
|
|
|
39
35
|
# Attribute type mapping.
|
|
40
36
|
def self.openapi_types
|
|
41
37
|
{
|
|
42
|
-
:'branch' => :'String',
|
|
43
38
|
:'name' => :'String',
|
|
44
39
|
:'briefing' => :'String',
|
|
45
40
|
:'due_date' => :'DateTime',
|
|
@@ -71,10 +66,6 @@ module Phrase
|
|
|
71
66
|
h[k.to_sym] = v
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
if attributes.key?(:'branch')
|
|
75
|
-
self.branch = attributes[:'branch']
|
|
76
|
-
end
|
|
77
|
-
|
|
78
69
|
if attributes.key?(:'name')
|
|
79
70
|
self.name = attributes[:'name']
|
|
80
71
|
end
|
|
@@ -120,7 +111,6 @@ module Phrase
|
|
|
120
111
|
def ==(o)
|
|
121
112
|
return true if self.equal?(o)
|
|
122
113
|
self.class == o.class &&
|
|
123
|
-
branch == o.branch &&
|
|
124
114
|
name == o.name &&
|
|
125
115
|
briefing == o.briefing &&
|
|
126
116
|
due_date == o.due_date &&
|
|
@@ -138,7 +128,7 @@ module Phrase
|
|
|
138
128
|
# Calculates hash code according to all attributes.
|
|
139
129
|
# @return [Integer] Hash code
|
|
140
130
|
def hash
|
|
141
|
-
[
|
|
131
|
+
[name, briefing, due_date, ticket_url, target_locale_ids, autotranslate].hash
|
|
142
132
|
end
|
|
143
133
|
|
|
144
134
|
# Builds the object from hash
|
|
@@ -5,10 +5,10 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
# Locale name
|
|
8
|
+
# Locale name. Must be unique per project.
|
|
9
9
|
attr_accessor :name
|
|
10
10
|
|
|
11
|
-
# Locale ISO code
|
|
11
|
+
# Locale ISO code. Unlike `name`, `code` is not required to be unique per project - creating a locale whose `code` duplicates an existing locale's `code` in the same project will succeed rather than error, resulting in two locales that share the same code.
|
|
12
12
|
attr_accessor :code
|
|
13
13
|
|
|
14
14
|
# Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale.
|
data/lib/phrase/version.rb
CHANGED
data/spec/api/jobs_api_spec.rb
CHANGED
|
@@ -179,6 +179,7 @@ describe 'JobsApi' do
|
|
|
179
179
|
# @param job_update_parameters
|
|
180
180
|
# @param [Hash] opts the optional parameters
|
|
181
181
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
182
|
+
# @option opts [String] :branch Branch to use
|
|
182
183
|
# @return [JobDetails]
|
|
183
184
|
describe 'job_update test' do
|
|
184
185
|
it 'should work' do
|
|
@@ -98,6 +98,8 @@ describe 'RepoSyncsApi' do
|
|
|
98
98
|
# @param account_id Account ID
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
101
|
+
# @option opts [Integer] :page Page number
|
|
102
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
101
103
|
# @return [Array<RepoSync>]
|
|
102
104
|
describe 'repo_sync_list test' do
|
|
103
105
|
it 'should work' do
|
|
@@ -21,8 +21,8 @@ describe 'ReportsApi' do
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
# unit tests for report_locales_list
|
|
24
|
-
# List Locale Reports
|
|
25
|
-
# List all locale reports for the given project
|
|
24
|
+
# List Locale Reports (word count, character count, translation statistics)
|
|
25
|
+
# 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.
|
|
26
26
|
# @param project_id Project ID
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
28
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
@@ -20,12 +20,6 @@ describe 'JobUpdateParameters' do
|
|
|
20
20
|
expect(@instance).to be_instance_of(Phrase::JobUpdateParameters)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
describe 'test attribute "branch"' do
|
|
24
|
-
it 'should work' do
|
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
23
|
describe 'test attribute "name"' do
|
|
30
24
|
it 'should work' do
|
|
31
25
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|