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
data/docs/Variable.md
CHANGED
|
@@ -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::Variable.new(name:
|
|
18
|
-
value:
|
|
19
|
-
created_at:
|
|
20
|
-
updated_at:
|
|
17
|
+
instance = Phrase::Variable.new(name: nil,
|
|
18
|
+
value: nil,
|
|
19
|
+
created_at: nil,
|
|
20
|
+
updated_at: nil)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|
|
@@ -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::VariableCreateParameters.new(name: MY_VARIABLE,
|
|
16
|
-
value: Hello World)
|
|
15
|
+
instance = Phrase::VariableCreateParameters.new(name: 'MY_VARIABLE',
|
|
16
|
+
value: 'Hello World')
|
|
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::VariableUpdateParameters.new(name: MY_VARIABLE,
|
|
16
|
-
value: Hello World)
|
|
15
|
+
instance = Phrase::VariableUpdateParameters.new(name: 'MY_VARIABLE',
|
|
16
|
+
value: 'Hello World')
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
|
data/docs/Webhook.md
CHANGED
|
@@ -16,16 +16,16 @@ Name | Type | Description | Notes
|
|
|
16
16
|
## Code Sample
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
|
-
require '
|
|
19
|
+
require 'phrase'
|
|
20
20
|
|
|
21
|
-
instance = Phrase::Webhook.new(id:
|
|
22
|
-
callback_url:
|
|
23
|
-
description:
|
|
24
|
-
events:
|
|
25
|
-
active:
|
|
26
|
-
include_branches:
|
|
27
|
-
created_at:
|
|
28
|
-
updated_at:
|
|
21
|
+
instance = Phrase::Webhook.new(id: nil,
|
|
22
|
+
callback_url: nil,
|
|
23
|
+
description: nil,
|
|
24
|
+
events: nil,
|
|
25
|
+
active: nil,
|
|
26
|
+
include_branches: nil,
|
|
27
|
+
created_at: nil,
|
|
28
|
+
updated_at: nil)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
|
|
@@ -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::WebhookCreateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
|
|
20
|
-
secret: secr3t,
|
|
21
|
-
description: My webhook for chat notifications,
|
|
22
|
-
events: locales:create,translations:update,
|
|
23
|
-
active:
|
|
24
|
-
include_branches:
|
|
19
|
+
instance = Phrase::WebhookCreateParameters.new(callback_url: 'http://example.com/hooks/phraseapp-notifications',
|
|
20
|
+
secret: 'secr3t',
|
|
21
|
+
description: 'My webhook for chat notifications',
|
|
22
|
+
events: 'locales:create,translations:update',
|
|
23
|
+
active: nil,
|
|
24
|
+
include_branches: nil)
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
data/docs/WebhookDelivery.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::WebhookDelivery.new(id:
|
|
21
|
-
webhook_id:
|
|
22
|
-
response_status_code:
|
|
23
|
-
delivered_at:
|
|
24
|
-
duration_ms:
|
|
25
|
-
created_at:
|
|
26
|
-
updated_at:
|
|
20
|
+
instance = Phrase::WebhookDelivery.new(id: nil,
|
|
21
|
+
webhook_id: nil,
|
|
22
|
+
response_status_code: nil,
|
|
23
|
+
delivered_at: nil,
|
|
24
|
+
duration_ms: nil,
|
|
25
|
+
created_at: nil,
|
|
26
|
+
updated_at: nil)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
|
@@ -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::WebhookUpdateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
|
|
20
|
-
secret: secr3t,
|
|
21
|
-
description: My webhook for chat notifications,
|
|
22
|
-
events: locales:create,translations:update,
|
|
23
|
-
active:
|
|
24
|
-
include_branches:
|
|
19
|
+
instance = Phrase::WebhookUpdateParameters.new(callback_url: 'http://example.com/hooks/phraseapp-notifications',
|
|
20
|
+
secret: 'secr3t',
|
|
21
|
+
description: 'My webhook for chat notifications',
|
|
22
|
+
events: 'locales:create,translations:update',
|
|
23
|
+
active: nil,
|
|
24
|
+
include_branches: nil)
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
|
@@ -311,6 +311,84 @@ module Phrase
|
|
|
311
311
|
return response, status_code, headers
|
|
312
312
|
end
|
|
313
313
|
|
|
314
|
+
# List project members
|
|
315
|
+
# Get all members active in the project. Access token scope must include `read`.
|
|
316
|
+
# @param project_id [String] Project ID
|
|
317
|
+
# @param [Hash] opts the optional parameters
|
|
318
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
319
|
+
# @option opts [String] :q Specify a query to search for members by name or email (including wildcards).
|
|
320
|
+
# @option opts [String] :job_id Filter members to those assigned to the job identified by this id.
|
|
321
|
+
# @option opts [Integer] :page Page number
|
|
322
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
323
|
+
# @return [Array<ProjectMember>]
|
|
324
|
+
def members_by_project(project_id, opts = {})
|
|
325
|
+
data, _status_code, _headers = members_by_project_with_http_info(project_id, opts)
|
|
326
|
+
data
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# List project members
|
|
330
|
+
# Get all members active in the project. Access token scope must include `read`.
|
|
331
|
+
# @param project_id [String] Project ID
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
334
|
+
# @option opts [String] :q Specify a query to search for members by name or email (including wildcards).
|
|
335
|
+
# @option opts [String] :job_id Filter members to those assigned to the job identified by this id.
|
|
336
|
+
# @option opts [Integer] :page Page number
|
|
337
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
338
|
+
# @return [Array<(Response<(Array<ProjectMember>)>, Integer, Hash)>] Response<(Array<ProjectMember>)> data, response status code and response headers
|
|
339
|
+
def members_by_project_with_http_info(project_id, opts = {})
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_by_project ...'
|
|
342
|
+
end
|
|
343
|
+
# verify the required parameter 'project_id' is set
|
|
344
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
345
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling MembersApi.members_by_project"
|
|
346
|
+
end
|
|
347
|
+
# resource path
|
|
348
|
+
local_var_path = '/projects/{project_id}/members'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
349
|
+
|
|
350
|
+
# query parameters
|
|
351
|
+
query_params = opts[:query_params] || {}
|
|
352
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
353
|
+
query_params[:'job_id'] = opts[:'job_id'] if !opts[:'job_id'].nil?
|
|
354
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
355
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
356
|
+
|
|
357
|
+
# header parameters
|
|
358
|
+
header_params = opts[:header_params] || {}
|
|
359
|
+
# HTTP header 'Accept' (if needed)
|
|
360
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
361
|
+
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
|
362
|
+
|
|
363
|
+
# form parameters
|
|
364
|
+
form_params = opts[:form_params] || {}
|
|
365
|
+
|
|
366
|
+
# http body (model)
|
|
367
|
+
post_body = opts[:body]
|
|
368
|
+
|
|
369
|
+
# return_type
|
|
370
|
+
return_type = opts[:return_type] || 'Array<ProjectMember>'
|
|
371
|
+
|
|
372
|
+
# auth_names
|
|
373
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
374
|
+
|
|
375
|
+
new_options = opts.merge(
|
|
376
|
+
:header_params => header_params,
|
|
377
|
+
:query_params => query_params,
|
|
378
|
+
:form_params => form_params,
|
|
379
|
+
:body => post_body,
|
|
380
|
+
:auth_names => auth_names,
|
|
381
|
+
:return_type => return_type
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
385
|
+
if @api_client.config.debugging
|
|
386
|
+
@api_client.config.logger.debug "API called: MembersApi#members_by_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
387
|
+
end
|
|
388
|
+
response = ::Phrase::Response.new(data, headers)
|
|
389
|
+
return response, status_code, headers
|
|
390
|
+
end
|
|
391
|
+
|
|
314
392
|
# List members
|
|
315
393
|
# Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include `team.manage`.
|
|
316
394
|
# @param account_id [String] Account ID
|
|
@@ -382,6 +382,8 @@ module Phrase
|
|
|
382
382
|
# @param account_id [String] Account ID
|
|
383
383
|
# @param [Hash] opts the optional parameters
|
|
384
384
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
385
|
+
# @option opts [Integer] :page Page number
|
|
386
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
385
387
|
# @return [Array<RepoSync>]
|
|
386
388
|
def repo_sync_list(account_id, opts = {})
|
|
387
389
|
data, _status_code, _headers = repo_sync_list_with_http_info(account_id, opts)
|
|
@@ -393,6 +395,8 @@ module Phrase
|
|
|
393
395
|
# @param account_id [String] Account ID
|
|
394
396
|
# @param [Hash] opts the optional parameters
|
|
395
397
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
398
|
+
# @option opts [Integer] :page Page number
|
|
399
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
396
400
|
# @return [Array<(Response<(Array<RepoSync>)>, Integer, Hash)>] Response<(Array<RepoSync>)> data, response status code and response headers
|
|
397
401
|
def repo_sync_list_with_http_info(account_id, opts = {})
|
|
398
402
|
if @api_client.config.debugging
|
|
@@ -407,6 +411,8 @@ module Phrase
|
|
|
407
411
|
|
|
408
412
|
# query parameters
|
|
409
413
|
query_params = opts[:query_params] || {}
|
|
414
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
415
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
410
416
|
|
|
411
417
|
# header parameters
|
|
412
418
|
header_params = opts[:header_params] || {}
|
|
@@ -7,8 +7,8 @@ module Phrase
|
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
|
8
8
|
@api_client = api_client
|
|
9
9
|
end
|
|
10
|
-
# List Locale Reports
|
|
11
|
-
# List all locale reports for the given project
|
|
10
|
+
# List Locale Reports (word count, character count, translation statistics)
|
|
11
|
+
# 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.
|
|
12
12
|
# @param project_id [String] Project ID
|
|
13
13
|
# @param [Hash] opts the optional parameters
|
|
14
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
@@ -23,8 +23,8 @@ module Phrase
|
|
|
23
23
|
data
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
# List Locale Reports
|
|
27
|
-
# List all locale reports for the given project
|
|
26
|
+
# List Locale Reports (word count, character count, translation statistics)
|
|
27
|
+
# 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.
|
|
28
28
|
# @param project_id [String] Project ID
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
require 'cgi'
|
|
2
|
+
|
|
3
|
+
module Phrase
|
|
4
|
+
class SupportedLanguagesApi
|
|
5
|
+
attr_accessor :api_client
|
|
6
|
+
|
|
7
|
+
def initialize(api_client = ApiClient.default)
|
|
8
|
+
@api_client = api_client
|
|
9
|
+
end
|
|
10
|
+
# List supported languages
|
|
11
|
+
# Returns all languages/locale codes that Phrase Strings recognizes, mapped to their human-readable display name. This endpoint does not require authentication.
|
|
12
|
+
# @param [Hash] opts the optional parameters
|
|
13
|
+
# @return [Hash<String, String>]
|
|
14
|
+
def languages_list(opts = {})
|
|
15
|
+
data, _status_code, _headers = languages_list_with_http_info(opts)
|
|
16
|
+
data
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# List supported languages
|
|
20
|
+
# Returns all languages/locale codes that Phrase Strings recognizes, mapped to their human-readable display name. This endpoint does not require authentication.
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [Array<(Response<(Hash<String, String>)>, Integer, Hash)>] Response<(Hash<String, String>)> data, response status code and response headers
|
|
23
|
+
def languages_list_with_http_info(opts = {})
|
|
24
|
+
if @api_client.config.debugging
|
|
25
|
+
@api_client.config.logger.debug 'Calling API: SupportedLanguagesApi.languages_list ...'
|
|
26
|
+
end
|
|
27
|
+
# resource path
|
|
28
|
+
local_var_path = '/languages'
|
|
29
|
+
|
|
30
|
+
# query parameters
|
|
31
|
+
query_params = opts[:query_params] || {}
|
|
32
|
+
|
|
33
|
+
# header parameters
|
|
34
|
+
header_params = opts[:header_params] || {}
|
|
35
|
+
# HTTP header 'Accept' (if needed)
|
|
36
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
37
|
+
|
|
38
|
+
# form parameters
|
|
39
|
+
form_params = opts[:form_params] || {}
|
|
40
|
+
|
|
41
|
+
# http body (model)
|
|
42
|
+
post_body = opts[:body]
|
|
43
|
+
|
|
44
|
+
# return_type
|
|
45
|
+
return_type = opts[:return_type] || 'Hash<String, String>'
|
|
46
|
+
|
|
47
|
+
# auth_names
|
|
48
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
49
|
+
|
|
50
|
+
new_options = opts.merge(
|
|
51
|
+
:header_params => header_params,
|
|
52
|
+
:query_params => query_params,
|
|
53
|
+
:form_params => form_params,
|
|
54
|
+
:body => post_body,
|
|
55
|
+
:auth_names => auth_names,
|
|
56
|
+
:return_type => return_type
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
60
|
+
if @api_client.config.debugging
|
|
61
|
+
@api_client.config.logger.debug "API called: SupportedLanguagesApi#languages_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
62
|
+
end
|
|
63
|
+
response = ::Phrase::Response.new(data, headers)
|
|
64
|
+
return response, status_code, headers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -17,6 +17,9 @@ module Phrase
|
|
|
17
17
|
# The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
|
|
18
18
|
attr_accessor :source_locale_id
|
|
19
19
|
|
|
20
|
+
# Code of the account member to set as the job template owner. The referenced user must also be a member of the project; passing the code of an account member who is not a project member returns a 404. When omitted or blank, no owner is pre-set; the user who creates a job from this template is assigned as owner at job-creation time.
|
|
21
|
+
attr_accessor :owner_id
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
@@ -24,7 +27,8 @@ module Phrase
|
|
|
24
27
|
:'name' => :'name',
|
|
25
28
|
:'briefing' => :'briefing',
|
|
26
29
|
:'autotranslate' => :'autotranslate',
|
|
27
|
-
:'source_locale_id' => :'source_locale_id'
|
|
30
|
+
:'source_locale_id' => :'source_locale_id',
|
|
31
|
+
:'owner_id' => :'owner_id'
|
|
28
32
|
}
|
|
29
33
|
end
|
|
30
34
|
|
|
@@ -35,7 +39,8 @@ module Phrase
|
|
|
35
39
|
:'name' => :'String',
|
|
36
40
|
:'briefing' => :'String',
|
|
37
41
|
:'autotranslate' => :'Boolean',
|
|
38
|
-
:'source_locale_id' => :'String'
|
|
42
|
+
:'source_locale_id' => :'String',
|
|
43
|
+
:'owner_id' => :'String'
|
|
39
44
|
}
|
|
40
45
|
end
|
|
41
46
|
|
|
@@ -79,6 +84,10 @@ module Phrase
|
|
|
79
84
|
if attributes.key?(:'source_locale_id')
|
|
80
85
|
self.source_locale_id = attributes[:'source_locale_id']
|
|
81
86
|
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'owner_id')
|
|
89
|
+
self.owner_id = attributes[:'owner_id']
|
|
90
|
+
end
|
|
82
91
|
end
|
|
83
92
|
|
|
84
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +117,8 @@ module Phrase
|
|
|
108
117
|
name == o.name &&
|
|
109
118
|
briefing == o.briefing &&
|
|
110
119
|
autotranslate == o.autotranslate &&
|
|
111
|
-
source_locale_id == o.source_locale_id
|
|
120
|
+
source_locale_id == o.source_locale_id &&
|
|
121
|
+
owner_id == o.owner_id
|
|
112
122
|
end
|
|
113
123
|
|
|
114
124
|
# @see the `==` method
|
|
@@ -120,7 +130,7 @@ module Phrase
|
|
|
120
130
|
# Calculates hash code according to all attributes.
|
|
121
131
|
# @return [Integer] Hash code
|
|
122
132
|
def hash
|
|
123
|
-
[branch, name, briefing, autotranslate, source_locale_id].hash
|
|
133
|
+
[branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
|
|
124
134
|
end
|
|
125
135
|
|
|
126
136
|
# Builds the object from hash
|
|
@@ -17,6 +17,9 @@ module Phrase
|
|
|
17
17
|
# The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
|
|
18
18
|
attr_accessor :source_locale_id
|
|
19
19
|
|
|
20
|
+
# Code of the account member to set as the job template owner. The referenced user must also be a member of the project; passing the code of an account member who is not a project member returns a 404. Pass an empty string to clear a previously set owner; when blank, jobs created from this template will default to assigning the job creator as owner.
|
|
21
|
+
attr_accessor :owner_id
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
@@ -24,7 +27,8 @@ module Phrase
|
|
|
24
27
|
:'name' => :'name',
|
|
25
28
|
:'briefing' => :'briefing',
|
|
26
29
|
:'autotranslate' => :'autotranslate',
|
|
27
|
-
:'source_locale_id' => :'source_locale_id'
|
|
30
|
+
:'source_locale_id' => :'source_locale_id',
|
|
31
|
+
:'owner_id' => :'owner_id'
|
|
28
32
|
}
|
|
29
33
|
end
|
|
30
34
|
|
|
@@ -35,7 +39,8 @@ module Phrase
|
|
|
35
39
|
:'name' => :'String',
|
|
36
40
|
:'briefing' => :'String',
|
|
37
41
|
:'autotranslate' => :'Boolean',
|
|
38
|
-
:'source_locale_id' => :'String'
|
|
42
|
+
:'source_locale_id' => :'String',
|
|
43
|
+
:'owner_id' => :'String'
|
|
39
44
|
}
|
|
40
45
|
end
|
|
41
46
|
|
|
@@ -79,6 +84,10 @@ module Phrase
|
|
|
79
84
|
if attributes.key?(:'source_locale_id')
|
|
80
85
|
self.source_locale_id = attributes[:'source_locale_id']
|
|
81
86
|
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'owner_id')
|
|
89
|
+
self.owner_id = attributes[:'owner_id']
|
|
90
|
+
end
|
|
82
91
|
end
|
|
83
92
|
|
|
84
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +117,8 @@ module Phrase
|
|
|
108
117
|
name == o.name &&
|
|
109
118
|
briefing == o.briefing &&
|
|
110
119
|
autotranslate == o.autotranslate &&
|
|
111
|
-
source_locale_id == o.source_locale_id
|
|
120
|
+
source_locale_id == o.source_locale_id &&
|
|
121
|
+
owner_id == o.owner_id
|
|
112
122
|
end
|
|
113
123
|
|
|
114
124
|
# @see the `==` method
|
|
@@ -120,7 +130,7 @@ module Phrase
|
|
|
120
130
|
# Calculates hash code according to all attributes.
|
|
121
131
|
# @return [Integer] Hash code
|
|
122
132
|
def hash
|
|
123
|
-
[branch, name, briefing, autotranslate, source_locale_id].hash
|
|
133
|
+
[branch, name, briefing, autotranslate, source_locale_id, owner_id].hash
|
|
124
134
|
end
|
|
125
135
|
|
|
126
136
|
# 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.
|
|
@@ -11,12 +11,16 @@ module Phrase
|
|
|
11
11
|
# Automatically translate the job using machine translation.
|
|
12
12
|
attr_accessor :autotranslate
|
|
13
13
|
|
|
14
|
+
# Code of the account member to set as the job template owner. When omitted or blank, no owner is pre-set; the user who creates a job from this template is assigned as its owner at job-creation time.
|
|
15
|
+
attr_accessor :owner_id
|
|
16
|
+
|
|
14
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
18
|
def self.attribute_map
|
|
16
19
|
{
|
|
17
20
|
:'name' => :'name',
|
|
18
21
|
:'briefing' => :'briefing',
|
|
19
|
-
:'autotranslate' => :'autotranslate'
|
|
22
|
+
:'autotranslate' => :'autotranslate',
|
|
23
|
+
:'owner_id' => :'owner_id'
|
|
20
24
|
}
|
|
21
25
|
end
|
|
22
26
|
|
|
@@ -25,7 +29,8 @@ module Phrase
|
|
|
25
29
|
{
|
|
26
30
|
:'name' => :'String',
|
|
27
31
|
:'briefing' => :'String',
|
|
28
|
-
:'autotranslate' => :'Boolean'
|
|
32
|
+
:'autotranslate' => :'Boolean',
|
|
33
|
+
:'owner_id' => :'String'
|
|
29
34
|
}
|
|
30
35
|
end
|
|
31
36
|
|
|
@@ -61,6 +66,10 @@ module Phrase
|
|
|
61
66
|
if attributes.key?(:'autotranslate')
|
|
62
67
|
self.autotranslate = attributes[:'autotranslate']
|
|
63
68
|
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'owner_id')
|
|
71
|
+
self.owner_id = attributes[:'owner_id']
|
|
72
|
+
end
|
|
64
73
|
end
|
|
65
74
|
|
|
66
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -88,7 +97,8 @@ module Phrase
|
|
|
88
97
|
self.class == o.class &&
|
|
89
98
|
name == o.name &&
|
|
90
99
|
briefing == o.briefing &&
|
|
91
|
-
autotranslate == o.autotranslate
|
|
100
|
+
autotranslate == o.autotranslate &&
|
|
101
|
+
owner_id == o.owner_id
|
|
92
102
|
end
|
|
93
103
|
|
|
94
104
|
# @see the `==` method
|
|
@@ -100,7 +110,7 @@ module Phrase
|
|
|
100
110
|
# Calculates hash code according to all attributes.
|
|
101
111
|
# @return [Integer] Hash code
|
|
102
112
|
def hash
|
|
103
|
-
[name, briefing, autotranslate].hash
|
|
113
|
+
[name, briefing, autotranslate, owner_id].hash
|
|
104
114
|
end
|
|
105
115
|
|
|
106
116
|
# Builds the object from hash
|
|
@@ -11,12 +11,16 @@ module Phrase
|
|
|
11
11
|
# Automatically translate the job using machine translation.
|
|
12
12
|
attr_accessor :autotranslate
|
|
13
13
|
|
|
14
|
+
# Code of the account member to set as the job template owner. Pass an empty string to clear a previously set owner; when blank, the owner is set to null and jobs created from this template will default to assigning the job creator as owner.
|
|
15
|
+
attr_accessor :owner_id
|
|
16
|
+
|
|
14
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
18
|
def self.attribute_map
|
|
16
19
|
{
|
|
17
20
|
:'name' => :'name',
|
|
18
21
|
:'briefing' => :'briefing',
|
|
19
|
-
:'autotranslate' => :'autotranslate'
|
|
22
|
+
:'autotranslate' => :'autotranslate',
|
|
23
|
+
:'owner_id' => :'owner_id'
|
|
20
24
|
}
|
|
21
25
|
end
|
|
22
26
|
|
|
@@ -25,7 +29,8 @@ module Phrase
|
|
|
25
29
|
{
|
|
26
30
|
:'name' => :'String',
|
|
27
31
|
:'briefing' => :'String',
|
|
28
|
-
:'autotranslate' => :'Boolean'
|
|
32
|
+
:'autotranslate' => :'Boolean',
|
|
33
|
+
:'owner_id' => :'String'
|
|
29
34
|
}
|
|
30
35
|
end
|
|
31
36
|
|
|
@@ -61,6 +66,10 @@ module Phrase
|
|
|
61
66
|
if attributes.key?(:'autotranslate')
|
|
62
67
|
self.autotranslate = attributes[:'autotranslate']
|
|
63
68
|
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'owner_id')
|
|
71
|
+
self.owner_id = attributes[:'owner_id']
|
|
72
|
+
end
|
|
64
73
|
end
|
|
65
74
|
|
|
66
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -88,7 +97,8 @@ module Phrase
|
|
|
88
97
|
self.class == o.class &&
|
|
89
98
|
name == o.name &&
|
|
90
99
|
briefing == o.briefing &&
|
|
91
|
-
autotranslate == o.autotranslate
|
|
100
|
+
autotranslate == o.autotranslate &&
|
|
101
|
+
owner_id == o.owner_id
|
|
92
102
|
end
|
|
93
103
|
|
|
94
104
|
# @see the `==` method
|
|
@@ -100,7 +110,7 @@ module Phrase
|
|
|
100
110
|
# Calculates hash code according to all attributes.
|
|
101
111
|
# @return [Integer] Hash code
|
|
102
112
|
def hash
|
|
103
|
-
[name, briefing, autotranslate].hash
|
|
113
|
+
[name, briefing, autotranslate, owner_id].hash
|
|
104
114
|
end
|
|
105
115
|
|
|
106
116
|
# Builds the object from hash
|