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/MembersApi.md
CHANGED
|
@@ -8,6 +8,7 @@ Method | HTTP request | Description
|
|
|
8
8
|
[**member_show**](MembersApi.md#member_show) | **GET** /accounts/{account_id}/members/{id} | Get single member
|
|
9
9
|
[**member_update**](MembersApi.md#member_update) | **PATCH** /accounts/{account_id}/members/{id} | Update a member
|
|
10
10
|
[**member_update_settings**](MembersApi.md#member_update_settings) | **PATCH** /projects/{project_id}/members/{id} | Update a member's project settings
|
|
11
|
+
[**members_by_project**](MembersApi.md#members_by_project) | **GET** /projects/{project_id}/members | List project members
|
|
11
12
|
[**members_list**](MembersApi.md#members_list) | **GET** /accounts/{account_id}/members | List members
|
|
12
13
|
|
|
13
14
|
|
|
@@ -267,6 +268,75 @@ Response<([**MemberProjectDetail**](MemberProjectDetail.md))>
|
|
|
267
268
|
- **Accept**: application/json
|
|
268
269
|
|
|
269
270
|
|
|
271
|
+
## members_by_project
|
|
272
|
+
|
|
273
|
+
> Array<ProjectMember> members_by_project(project_id, opts)
|
|
274
|
+
|
|
275
|
+
List project members
|
|
276
|
+
|
|
277
|
+
Get all members active in the project. Access token scope must include `read`.
|
|
278
|
+
|
|
279
|
+
### Example
|
|
280
|
+
|
|
281
|
+
```ruby
|
|
282
|
+
# load the gem
|
|
283
|
+
require 'phrase'
|
|
284
|
+
# setup authorization
|
|
285
|
+
Phrase.configure do |config|
|
|
286
|
+
# Configure HTTP basic authorization: Basic
|
|
287
|
+
config.username = 'YOUR USERNAME'
|
|
288
|
+
config.password = 'YOUR PASSWORD'
|
|
289
|
+
|
|
290
|
+
# Configure API key authorization: Token
|
|
291
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
292
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
api_instance = Phrase::MembersApi.new
|
|
296
|
+
project_id = 'project_id_example' # String | Project ID
|
|
297
|
+
opts = {
|
|
298
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
299
|
+
q: 'jane*', # String | Specify a query to search for members by name or email (including wildcards).
|
|
300
|
+
job_id: 'abcd1234cdef1234abcd1234cdef1234', # String | Filter members to those assigned to the job identified by this id.
|
|
301
|
+
page: 1, # Integer | Page number
|
|
302
|
+
per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
begin
|
|
306
|
+
#List project members
|
|
307
|
+
result = api_instance.members_by_project(project_id, opts)
|
|
308
|
+
pp result
|
|
309
|
+
rescue Phrase::ApiError => e
|
|
310
|
+
puts "Exception when calling MembersApi->members_by_project: #{e}"
|
|
311
|
+
end
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Parameters
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
Name | Type | Description | Notes
|
|
318
|
+
------------- | ------------- | ------------- | -------------
|
|
319
|
+
**project_id** | **String**| Project ID |
|
|
320
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
321
|
+
**q** | **String**| Specify a query to search for members by name or email (including wildcards). | [optional]
|
|
322
|
+
**job_id** | **String**| Filter members to those assigned to the job identified by this id. | [optional]
|
|
323
|
+
**page** | **Integer**| Page number | [optional]
|
|
324
|
+
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
Response<([**Array<ProjectMember>**](ProjectMember.md))>
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: Not defined
|
|
337
|
+
- **Accept**: application/json
|
|
338
|
+
|
|
339
|
+
|
|
270
340
|
## members_list
|
|
271
341
|
|
|
272
342
|
> Array<Member> members_list(account_id, opts)
|
data/docs/Notification.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::Notification.new(id:
|
|
27
|
-
event_name:
|
|
28
|
-
created_at:
|
|
29
|
-
updated_at:
|
|
30
|
-
delivered_at:
|
|
31
|
-
seen_at:
|
|
32
|
-
data:
|
|
33
|
-
resource:
|
|
34
|
-
locale:
|
|
35
|
-
user:
|
|
36
|
-
project:
|
|
37
|
-
account:
|
|
38
|
-
group:
|
|
26
|
+
instance = Phrase::Notification.new(id: nil,
|
|
27
|
+
event_name: nil,
|
|
28
|
+
created_at: nil,
|
|
29
|
+
updated_at: nil,
|
|
30
|
+
delivered_at: nil,
|
|
31
|
+
seen_at: nil,
|
|
32
|
+
data: nil,
|
|
33
|
+
resource: nil,
|
|
34
|
+
locale: nil,
|
|
35
|
+
user: nil,
|
|
36
|
+
project: nil,
|
|
37
|
+
account: nil,
|
|
38
|
+
group: nil)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
|
data/docs/NotificationGroup.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::NotificationGroup.new(id:
|
|
18
|
-
event_name:
|
|
19
|
-
created_at:
|
|
20
|
-
updated_at:
|
|
17
|
+
instance = Phrase::NotificationGroup.new(id: nil,
|
|
18
|
+
event_name: nil,
|
|
19
|
+
created_at: nil,
|
|
20
|
+
updated_at: nil)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|
|
@@ -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::NotificationGroupDetail.new(id:
|
|
20
|
-
event_name:
|
|
21
|
-
created_at:
|
|
22
|
-
updated_at:
|
|
23
|
-
notifications_count:
|
|
24
|
-
latest_notification:
|
|
19
|
+
instance = Phrase::NotificationGroupDetail.new(id: nil,
|
|
20
|
+
event_name: nil,
|
|
21
|
+
created_at: nil,
|
|
22
|
+
updated_at: nil,
|
|
23
|
+
notifications_count: nil,
|
|
24
|
+
latest_notification: nil)
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
|
@@ -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::OrderConfirmParameters.new(branch: my-feature-branch)
|
|
14
|
+
instance = Phrase::OrderConfirmParameters.new(branch: 'my-feature-branch')
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,23 +23,23 @@ Name | Type | Description | Notes
|
|
|
23
23
|
## Code Sample
|
|
24
24
|
|
|
25
25
|
```ruby
|
|
26
|
-
require '
|
|
26
|
+
require 'phrase'
|
|
27
27
|
|
|
28
|
-
instance = Phrase::OrderCreateParameters.new(branch: my-feature-branch,
|
|
29
|
-
name: Welcome message translations,
|
|
30
|
-
lsp: textmaster,
|
|
31
|
-
source_locale_id: abcd1234abcd1234abcd1234abcd1234,
|
|
32
|
-
target_locale_ids: [
|
|
33
|
-
translation_type: premium,
|
|
34
|
-
tag: my-awesome-feature,
|
|
35
|
-
message: Please make everything sound really nice :),
|
|
36
|
-
styleguide_id: 1234abcd1234abcd1234abcd1234abcd,
|
|
37
|
-
unverify_translations_upon_delivery:
|
|
38
|
-
include_untranslated_keys:
|
|
39
|
-
include_unverified_translations:
|
|
40
|
-
category: C021,
|
|
41
|
-
quality:
|
|
42
|
-
priority:
|
|
28
|
+
instance = Phrase::OrderCreateParameters.new(branch: 'my-feature-branch',
|
|
29
|
+
name: 'Welcome message translations',
|
|
30
|
+
lsp: 'textmaster',
|
|
31
|
+
source_locale_id: 'abcd1234abcd1234abcd1234abcd1234',
|
|
32
|
+
target_locale_ids: ["1234abcd1234abcd1234abcd1234abcd","abcd1234abcd1234abcd1234abcd1234"],
|
|
33
|
+
translation_type: 'premium',
|
|
34
|
+
tag: 'my-awesome-feature',
|
|
35
|
+
message: 'Please make everything sound really nice :)',
|
|
36
|
+
styleguide_id: '1234abcd1234abcd1234abcd1234abcd',
|
|
37
|
+
unverify_translations_upon_delivery: nil,
|
|
38
|
+
include_untranslated_keys: nil,
|
|
39
|
+
include_unverified_translations: nil,
|
|
40
|
+
category: 'C021',
|
|
41
|
+
quality: nil,
|
|
42
|
+
priority: nil)
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
|
|
@@ -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::OrganizationJobTemplate.new(id:
|
|
21
|
-
name:
|
|
22
|
-
briefing:
|
|
23
|
-
autotranslate_enabled:
|
|
24
|
-
source_locale_id:
|
|
25
|
-
created_at:
|
|
26
|
-
updated_at:
|
|
20
|
+
instance = Phrase::OrganizationJobTemplate.new(id: nil,
|
|
21
|
+
name: nil,
|
|
22
|
+
briefing: nil,
|
|
23
|
+
autotranslate_enabled: nil,
|
|
24
|
+
source_locale_id: nil,
|
|
25
|
+
created_at: nil,
|
|
26
|
+
updated_at: nil)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
|
@@ -7,15 +7,17 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**name** | **String** | Job template name |
|
|
8
8
|
**briefing** | **String** | Briefing for the translators | [optional]
|
|
9
9
|
**autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
|
|
10
|
+
**owner_id** | **String** | 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. | [optional]
|
|
10
11
|
|
|
11
12
|
## Code Sample
|
|
12
13
|
|
|
13
14
|
```ruby
|
|
14
|
-
require '
|
|
15
|
+
require 'phrase'
|
|
15
16
|
|
|
16
|
-
instance = Phrase::OrganizationJobTemplateCreateParameters.new(name: template,
|
|
17
|
-
briefing: text,
|
|
18
|
-
autotranslate: true
|
|
17
|
+
instance = Phrase::OrganizationJobTemplateCreateParameters.new(name: 'template',
|
|
18
|
+
briefing: 'text',
|
|
19
|
+
autotranslate: true,
|
|
20
|
+
owner_id: nil)
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
|
|
@@ -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::OrganizationJobTemplateDetails.new(id:
|
|
24
|
-
name:
|
|
25
|
-
briefing:
|
|
26
|
-
autotranslate_enabled:
|
|
27
|
-
source_locale_id:
|
|
28
|
-
created_at:
|
|
29
|
-
updated_at:
|
|
30
|
-
owner:
|
|
31
|
-
creator:
|
|
32
|
-
locales:
|
|
23
|
+
instance = Phrase::OrganizationJobTemplateDetails.new(id: nil,
|
|
24
|
+
name: nil,
|
|
25
|
+
briefing: nil,
|
|
26
|
+
autotranslate_enabled: nil,
|
|
27
|
+
source_locale_id: nil,
|
|
28
|
+
created_at: nil,
|
|
29
|
+
updated_at: nil,
|
|
30
|
+
owner: nil,
|
|
31
|
+
creator: nil,
|
|
32
|
+
locales: nil)
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
|
|
@@ -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::OrganizationJobTemplateLocaleUpdateParameters.new(locale_name: de-1,
|
|
20
|
-
locale_code: de-DE,
|
|
21
|
-
user_ids: [
|
|
22
|
-
reviewer_ids: [
|
|
23
|
-
translator_team_ids: [
|
|
24
|
-
reviewer_team_ids: [
|
|
19
|
+
instance = Phrase::OrganizationJobTemplateLocaleUpdateParameters.new(locale_name: 'de-1',
|
|
20
|
+
locale_code: 'de-DE',
|
|
21
|
+
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
22
|
+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
23
|
+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
24
|
+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
|
@@ -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::OrganizationJobTemplateLocalesCreateParameters.new(locale_name: de-1,
|
|
20
|
-
locale_code: de-DE,
|
|
21
|
-
user_ids: [
|
|
22
|
-
reviewer_ids: [
|
|
23
|
-
translator_team_ids: [
|
|
24
|
-
reviewer_team_ids: [
|
|
19
|
+
instance = Phrase::OrganizationJobTemplateLocalesCreateParameters.new(locale_name: 'de-1',
|
|
20
|
+
locale_code: 'de-DE',
|
|
21
|
+
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
22
|
+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
23
|
+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
24
|
+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
|
|
@@ -7,15 +7,17 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**name** | **String** | Job template name |
|
|
8
8
|
**briefing** | **String** | Briefing for the translators | [optional]
|
|
9
9
|
**autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
|
|
10
|
+
**owner_id** | **String** | 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. | [optional]
|
|
10
11
|
|
|
11
12
|
## Code Sample
|
|
12
13
|
|
|
13
14
|
```ruby
|
|
14
|
-
require '
|
|
15
|
+
require 'phrase'
|
|
15
16
|
|
|
16
|
-
instance = Phrase::OrganizationJobTemplateUpdateParameters.new(name: template,
|
|
17
|
-
briefing: text,
|
|
18
|
-
autotranslate: true
|
|
17
|
+
instance = Phrase::OrganizationJobTemplateUpdateParameters.new(name: 'template',
|
|
18
|
+
briefing: 'text',
|
|
19
|
+
autotranslate: true,
|
|
20
|
+
owner_id: nil)
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
|
data/docs/PreTranslation.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::PreTranslation.new(id: abcd1234cdef1234abcd1234cdef1234,
|
|
21
|
-
status:
|
|
22
|
-
translatable_type:
|
|
23
|
-
translatable_id: abcd1234cdef1234abcd1234cdef1234,
|
|
24
|
-
error:
|
|
25
|
-
created_at:
|
|
26
|
-
updated_at:
|
|
20
|
+
instance = Phrase::PreTranslation.new(id: 'abcd1234cdef1234abcd1234cdef1234',
|
|
21
|
+
status: nil,
|
|
22
|
+
translatable_type: nil,
|
|
23
|
+
translatable_id: 'abcd1234cdef1234abcd1234cdef1234',
|
|
24
|
+
error: nil,
|
|
25
|
+
created_at: nil,
|
|
26
|
+
updated_at: 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::PreTranslationCreateParameters.new(translatable_type:
|
|
16
|
-
translatable_id:
|
|
15
|
+
instance = Phrase::PreTranslationCreateParameters.new(translatable_type: nil,
|
|
16
|
+
translatable_id: nil)
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
|
data/docs/Project.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::Project.new(id:
|
|
25
|
-
name:
|
|
26
|
-
slug:
|
|
27
|
-
main_format:
|
|
28
|
-
project_image_url:
|
|
29
|
-
media:
|
|
30
|
-
account:
|
|
31
|
-
space:
|
|
32
|
-
point_of_contact:
|
|
33
|
-
created_at:
|
|
34
|
-
updated_at:
|
|
24
|
+
instance = Phrase::Project.new(id: nil,
|
|
25
|
+
name: nil,
|
|
26
|
+
slug: nil,
|
|
27
|
+
main_format: nil,
|
|
28
|
+
project_image_url: nil,
|
|
29
|
+
media: nil,
|
|
30
|
+
account: nil,
|
|
31
|
+
space: nil,
|
|
32
|
+
point_of_contact: nil,
|
|
33
|
+
created_at: nil,
|
|
34
|
+
updated_at: nil)
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
|
|
@@ -44,20 +44,20 @@ Name | Type | Description | Notes
|
|
|
44
44
|
## Code Sample
|
|
45
45
|
|
|
46
46
|
```ruby
|
|
47
|
-
require '
|
|
47
|
+
require 'phrase'
|
|
48
48
|
|
|
49
|
-
instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
50
|
-
main_format: yml,
|
|
51
|
-
media: Python,
|
|
49
|
+
instance = Phrase::ProjectCreateParameters.new(name: 'My Android Project',
|
|
50
|
+
main_format: 'yml',
|
|
51
|
+
media: 'Python',
|
|
52
52
|
shares_translation_memory: true,
|
|
53
|
-
tm_ids: [
|
|
54
|
-
term_base_ids: [
|
|
55
|
-
project_image:
|
|
56
|
-
remove_project_image:
|
|
57
|
-
account_id: abcd1234,
|
|
58
|
-
point_of_contact: abcd1234,
|
|
59
|
-
source_project_id: abcd1234,
|
|
60
|
-
workflow: review,
|
|
53
|
+
tm_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
54
|
+
term_base_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
55
|
+
project_image: File.new('/path/to/file'),
|
|
56
|
+
remove_project_image: nil,
|
|
57
|
+
account_id: 'abcd1234',
|
|
58
|
+
point_of_contact: 'abcd1234',
|
|
59
|
+
source_project_id: 'abcd1234',
|
|
60
|
+
workflow: 'review',
|
|
61
61
|
machine_translation_enabled: true,
|
|
62
62
|
enable_branching: true,
|
|
63
63
|
protect_master_branch: true,
|
|
@@ -78,10 +78,10 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
|
|
|
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
|
-
default_encoding: UTF-8,
|
|
83
|
-
cldr_version: cldr48,
|
|
84
|
-
placeholder_styles: [
|
|
81
|
+
translation_keys_sort_collation: 'unicode_ci',
|
|
82
|
+
default_encoding: 'UTF-8',
|
|
83
|
+
cldr_version: 'cldr48',
|
|
84
|
+
placeholder_styles: ["rails_i18n","java_properties"])
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
|
data/docs/ProjectDetails.md
CHANGED
|
@@ -42,20 +42,20 @@ Name | Type | Description | Notes
|
|
|
42
42
|
## Code Sample
|
|
43
43
|
|
|
44
44
|
```ruby
|
|
45
|
-
require '
|
|
45
|
+
require 'phrase'
|
|
46
46
|
|
|
47
|
-
instance = Phrase::ProjectDetails.new(id:
|
|
48
|
-
name:
|
|
49
|
-
slug:
|
|
50
|
-
main_format:
|
|
51
|
-
project_image_url:
|
|
52
|
-
media:
|
|
53
|
-
account:
|
|
54
|
-
space:
|
|
55
|
-
point_of_contact:
|
|
56
|
-
created_at:
|
|
57
|
-
updated_at:
|
|
58
|
-
shares_translation_memory:
|
|
47
|
+
instance = Phrase::ProjectDetails.new(id: nil,
|
|
48
|
+
name: nil,
|
|
49
|
+
slug: nil,
|
|
50
|
+
main_format: nil,
|
|
51
|
+
project_image_url: nil,
|
|
52
|
+
media: nil,
|
|
53
|
+
account: nil,
|
|
54
|
+
space: nil,
|
|
55
|
+
point_of_contact: nil,
|
|
56
|
+
created_at: nil,
|
|
57
|
+
updated_at: nil,
|
|
58
|
+
shares_translation_memory: nil,
|
|
59
59
|
machine_translation_enabled: true,
|
|
60
60
|
zero_plural_form_enabled: true,
|
|
61
61
|
enable_all_data_type_translation_keys_for_translators: false,
|
|
@@ -72,12 +72,12 @@ instance = Phrase::ProjectDetails.new(id: null,
|
|
|
72
72
|
autotranslate_overwrite_unverified_translations: false,
|
|
73
73
|
fallback_for_unverified_translations: false,
|
|
74
74
|
autocomplete_job_enabled: false,
|
|
75
|
-
default_encoding: UTF-8,
|
|
76
|
-
cldr_version: legacy,
|
|
77
|
-
translation_keys_sort_collation: unicode_ci,
|
|
75
|
+
default_encoding: 'UTF-8',
|
|
76
|
+
cldr_version: 'legacy',
|
|
77
|
+
translation_keys_sort_collation: 'unicode_ci',
|
|
78
78
|
job_locking_enabled: false,
|
|
79
|
-
placeholder_styles: [
|
|
80
|
-
branch:
|
|
79
|
+
placeholder_styles: ["rails_i18n","java_properties"],
|
|
80
|
+
branch: nil)
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
|
data/docs/ProjectLocales.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::ProjectLocales.new(id:
|
|
21
|
-
name:
|
|
22
|
-
project_role:
|
|
23
|
-
main_format:
|
|
24
|
-
created_at:
|
|
25
|
-
updated_at:
|
|
26
|
-
locales:
|
|
20
|
+
instance = Phrase::ProjectLocales.new(id: nil,
|
|
21
|
+
name: nil,
|
|
22
|
+
project_role: nil,
|
|
23
|
+
main_format: nil,
|
|
24
|
+
created_at: nil,
|
|
25
|
+
updated_at: nil,
|
|
26
|
+
locales: nil)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Phrase::ProjectMember
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | | [optional]
|
|
8
|
+
**username** | **String** | | [optional]
|
|
9
|
+
**name** | **String** | | [optional]
|
|
10
|
+
**position** | **String** | | [optional]
|
|
11
|
+
**created_at** | **Time** | | [optional]
|
|
12
|
+
**updated_at** | **Time** | | [optional]
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'phrase'
|
|
18
|
+
|
|
19
|
+
instance = Phrase::ProjectMember.new(id: nil,
|
|
20
|
+
username: nil,
|
|
21
|
+
name: nil,
|
|
22
|
+
position: nil,
|
|
23
|
+
created_at: nil,
|
|
24
|
+
updated_at: nil)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
data/docs/ProjectReport.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::ProjectReport.new(locales_count:
|
|
22
|
-
keys_count:
|
|
23
|
-
translations_count:
|
|
24
|
-
untranslated_keys_count:
|
|
25
|
-
unverified_translations_count:
|
|
26
|
-
reviewed_translations_count:
|
|
27
|
-
managed_words_count:
|
|
28
|
-
project:
|
|
21
|
+
instance = Phrase::ProjectReport.new(locales_count: nil,
|
|
22
|
+
keys_count: nil,
|
|
23
|
+
translations_count: nil,
|
|
24
|
+
untranslated_keys_count: nil,
|
|
25
|
+
unverified_translations_count: nil,
|
|
26
|
+
reviewed_translations_count: nil,
|
|
27
|
+
managed_words_count: nil,
|
|
28
|
+
project: nil)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
|
data/docs/ProjectShort.md
CHANGED
|
@@ -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::ProjectShort.new(id:
|
|
19
|
-
name:
|
|
20
|
-
main_format:
|
|
21
|
-
created_at:
|
|
22
|
-
updated_at:
|
|
18
|
+
instance = Phrase::ProjectShort.new(id: nil,
|
|
19
|
+
name: nil,
|
|
20
|
+
main_format: nil,
|
|
21
|
+
created_at: nil,
|
|
22
|
+
updated_at: nil)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
|