phrase 1.0.1 → 1.0.2
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/README.md +50 -387
- data/docs/AccountsApi.md +2 -4
- data/docs/AuthorizationsApi.md +10 -14
- data/docs/BitbucketSyncApi.md +3 -6
- data/docs/BlacklistedKeysApi.md +10 -14
- data/docs/BranchesApi.md +12 -18
- data/docs/CommentsApi.md +13 -20
- data/docs/DistributionsApi.md +10 -14
- data/docs/FormatsApi.md +1 -2
- data/docs/GitLabSyncApi.md +7 -14
- data/docs/{GlossaryApi.md → GlossariesApi.md} +26 -30
- data/docs/GlossaryTermTranslationsApi.md +8 -10
- data/docs/GlossaryTermsApi.md +10 -14
- data/docs/InvitationsApi.md +11 -16
- data/docs/JobLocalesApi.md +12 -18
- data/docs/JobsApi.md +15 -24
- data/docs/KeysApi.md +18 -26
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/LocalesApi.md +13 -18
- data/docs/MembersApi.md +4 -8
- data/docs/OrdersApi.md +10 -14
- data/docs/ProjectCreateParameters.md +3 -1
- data/docs/ProjectsApi.md +10 -14
- data/docs/ReleasesApi.md +11 -16
- data/docs/ScreenshotMarkersApi.md +10 -14
- data/docs/ScreenshotsApi.md +10 -14
- data/docs/SpacesApi.md +13 -20
- data/docs/StyleGuidesApi.md +10 -14
- data/docs/TagsApi.md +9 -12
- data/docs/Team.md +29 -0
- data/docs/TeamCreateParameters.md +17 -0
- data/docs/TeamDetail.md +29 -0
- data/docs/TeamUpdateParameters.md +17 -0
- data/docs/TeamsApi.md +721 -0
- data/docs/TeamsProjectsCreateParameters.md +17 -0
- data/docs/TeamsSpacesCreateParameters.md +17 -0
- data/docs/TeamsUsersCreateParameters.md +17 -0
- data/docs/TranslationsApi.md +28 -44
- data/docs/TranslationsExcludeParameters.md +1 -1
- data/docs/TranslationsIncludeParameters.md +1 -1
- data/docs/TranslationsReviewParameters.md +1 -1
- data/docs/TranslationsSearchParameters.md +1 -1
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/docs/UploadCreateParameters.md +2 -2
- data/docs/UploadsApi.md +12 -10
- data/docs/UsersApi.md +1 -2
- data/docs/VersionsHistoryApi.md +2 -4
- data/docs/WebhooksApi.md +11 -16
- data/git_push.sh +2 -2
- data/lib/phrase.rb +9 -1
- data/lib/phrase/api/authorizations_api.rb +10 -8
- data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
- data/lib/phrase/api/blacklisted_keys_api.rb +10 -8
- data/lib/phrase/api/branches_api.rb +16 -14
- data/lib/phrase/api/comments_api.rb +19 -17
- data/lib/phrase/api/distributions_api.rb +10 -8
- data/lib/phrase/api/git_lab_sync_api.rb +3 -3
- data/lib/phrase/api/{glossary_api.rb → glossaries_api.rb} +31 -29
- data/lib/phrase/api/glossary_term_translations_api.rb +10 -8
- data/lib/phrase/api/glossary_terms_api.rb +10 -8
- data/lib/phrase/api/invitations_api.rb +10 -8
- data/lib/phrase/api/job_locales_api.rb +10 -8
- data/lib/phrase/api/jobs_api.rb +13 -11
- data/lib/phrase/api/keys_api.rb +14 -12
- data/lib/phrase/api/locales_api.rb +15 -13
- data/lib/phrase/api/members_api.rb +3 -3
- data/lib/phrase/api/orders_api.rb +10 -8
- data/lib/phrase/api/projects_api.rb +10 -8
- data/lib/phrase/api/releases_api.rb +10 -8
- data/lib/phrase/api/screenshot_markers_api.rb +10 -8
- data/lib/phrase/api/screenshots_api.rb +10 -8
- data/lib/phrase/api/spaces_api.rb +16 -14
- data/lib/phrase/api/style_guides_api.rb +10 -8
- data/lib/phrase/api/tags_api.rb +10 -8
- data/lib/phrase/api/teams_api.rb +840 -0
- data/lib/phrase/api/translations_api.rb +13 -11
- data/lib/phrase/api/uploads_api.rb +13 -5
- data/lib/phrase/api/webhooks_api.rb +13 -11
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/project_create_parameters.rb +14 -4
- data/lib/phrase/models/team.rb +254 -0
- data/lib/phrase/models/team_create_parameters.rb +195 -0
- data/lib/phrase/models/team_detail.rb +254 -0
- data/lib/phrase/models/team_update_parameters.rb +195 -0
- data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/models/upload_create_parameters.rb +4 -8
- data/lib/phrase/version.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/blacklisted_keys_api_spec.rb +1 -1
- data/spec/api/branches_api_spec.rb +1 -1
- data/spec/api/comments_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/{glossary_api_spec.rb → glossaries_api_spec.rb} +7 -7
- data/spec/api/glossary_term_translations_api_spec.rb +1 -1
- data/spec/api/glossary_terms_api_spec.rb +1 -1
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/job_locales_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +1 -1
- data/spec/api/keys_api_spec.rb +3 -3
- data/spec/api/locales_api_spec.rb +2 -2
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/releases_api_spec.rb +1 -1
- data/spec/api/screenshot_markers_api_spec.rb +1 -1
- data/spec/api/screenshots_api_spec.rb +1 -1
- data/spec/api/spaces_api_spec.rb +1 -1
- data/spec/api/style_guides_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +185 -0
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/api/uploads_api_spec.rb +3 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/models/project_create_parameters_spec.rb +6 -0
- data/spec/models/team_create_parameters_spec.rb +29 -0
- data/spec/models/team_detail_spec.rb +65 -0
- data/spec/models/team_spec.rb +65 -0
- data/spec/models/team_update_parameters_spec.rb +29 -0
- data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
- data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
- data/spec/models/teams_users_create_parameters_spec.rb +29 -0
- metadata +183 -151
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
9
|
attr_accessor :q
|
|
10
10
|
|
|
11
11
|
# Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
9
|
attr_accessor :q
|
|
10
10
|
|
|
11
11
|
# Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
9
|
attr_accessor :q
|
|
10
10
|
|
|
11
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -11,7 +11,7 @@ module Phrase
|
|
|
11
11
|
# Order direction. Can be one of: asc, desc.
|
|
12
12
|
attr_accessor :order
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
15
15
|
attr_accessor :q
|
|
16
16
|
|
|
17
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
9
|
attr_accessor :q
|
|
10
10
|
|
|
11
11
|
# Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
@@ -5,7 +5,7 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
9
|
attr_accessor :q
|
|
10
10
|
|
|
11
11
|
# Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
@@ -82,8 +82,8 @@ module Phrase
|
|
|
82
82
|
:'skip_upload_tags' => :'Boolean',
|
|
83
83
|
:'skip_unverification' => :'Boolean',
|
|
84
84
|
:'file_encoding' => :'String',
|
|
85
|
-
:'locale_mapping' => :'
|
|
86
|
-
:'format_options' => :'
|
|
85
|
+
:'locale_mapping' => :'Object',
|
|
86
|
+
:'format_options' => :'Object',
|
|
87
87
|
:'autotranslate' => :'Boolean',
|
|
88
88
|
:'mark_reviewed' => :'Boolean'
|
|
89
89
|
}
|
|
@@ -155,15 +155,11 @@ module Phrase
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
if attributes.key?(:'locale_mapping')
|
|
158
|
-
|
|
159
|
-
self.locale_mapping = value
|
|
160
|
-
end
|
|
158
|
+
self.locale_mapping = attributes[:'locale_mapping']
|
|
161
159
|
end
|
|
162
160
|
|
|
163
161
|
if attributes.key?(:'format_options')
|
|
164
|
-
|
|
165
|
-
self.format_options = value
|
|
166
|
-
end
|
|
162
|
+
self.format_options = attributes[:'format_options']
|
|
167
163
|
end
|
|
168
164
|
|
|
169
165
|
if attributes.key?(:'autotranslate')
|
data/lib/phrase/version.rb
CHANGED
|
@@ -26,7 +26,7 @@ describe 'AuthorizationsApi' do
|
|
|
26
26
|
# @param authorization_create_parameters
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
28
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
29
|
-
# @return [
|
|
29
|
+
# @return [AuthorizationWithToken]
|
|
30
30
|
describe 'authorization_create test' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'BlacklistedKeysApi' do
|
|
|
27
27
|
# @param blacklisted_key_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [BlacklistedKey]
|
|
31
31
|
describe 'blacklisted_key_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -41,7 +41,7 @@ describe 'BranchesApi' do
|
|
|
41
41
|
# @param branch_create_parameters
|
|
42
42
|
# @param [Hash] opts the optional parameters
|
|
43
43
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
44
|
-
# @return [
|
|
44
|
+
# @return [Branch]
|
|
45
45
|
describe 'branch_create test' do
|
|
46
46
|
it 'should work' do
|
|
47
47
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -28,7 +28,7 @@ describe 'CommentsApi' do
|
|
|
28
28
|
# @param comment_create_parameters
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [Comment]
|
|
32
32
|
describe 'comment_create test' do
|
|
33
33
|
it 'should work' do
|
|
34
34
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'DistributionsApi' do
|
|
|
27
27
|
# @param distribution_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [Distribution]
|
|
31
31
|
describe 'distribution_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
require 'json'
|
|
3
3
|
|
|
4
|
-
# Unit tests for Phrase::
|
|
4
|
+
# Unit tests for Phrase::GlossariesApi
|
|
5
5
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
6
|
# Please update as you see appropriate
|
|
7
|
-
describe '
|
|
7
|
+
describe 'GlossariesApi' do
|
|
8
8
|
before do
|
|
9
9
|
# run before each test
|
|
10
|
-
@api_instance = Phrase::
|
|
10
|
+
@api_instance = Phrase::GlossariesApi.new
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
after do
|
|
14
14
|
# run after each test
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
describe 'test an instance of
|
|
18
|
-
it 'should create an instance of
|
|
19
|
-
expect(@api_instance).to be_instance_of(Phrase::
|
|
17
|
+
describe 'test an instance of GlossariesApi' do
|
|
18
|
+
it 'should create an instance of GlossariesApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::GlossariesApi)
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -42,7 +42,7 @@ describe 'GlossaryApi' do
|
|
|
42
42
|
# @param glossary_create_parameters
|
|
43
43
|
# @param [Hash] opts the optional parameters
|
|
44
44
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
45
|
-
# @return [
|
|
45
|
+
# @return [Glossary]
|
|
46
46
|
describe 'glossary_create test' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -29,7 +29,7 @@ describe 'GlossaryTermTranslationsApi' do
|
|
|
29
29
|
# @param glossary_term_translation_create_parameters
|
|
30
30
|
# @param [Hash] opts the optional parameters
|
|
31
31
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
32
|
-
# @return [
|
|
32
|
+
# @return [GlossaryTermTranslation]
|
|
33
33
|
describe 'glossary_term_translation_create test' do
|
|
34
34
|
it 'should work' do
|
|
35
35
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -28,7 +28,7 @@ describe 'GlossaryTermsApi' do
|
|
|
28
28
|
# @param glossary_term_create_parameters
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [GlossaryTerm]
|
|
32
32
|
describe 'glossary_term_create test' do
|
|
33
33
|
it 'should work' do
|
|
34
34
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'InvitationsApi' do
|
|
|
27
27
|
# @param invitation_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [Invitation]
|
|
31
31
|
describe 'invitation_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -108,7 +108,7 @@ describe 'JobLocalesApi' do
|
|
|
108
108
|
# @param job_locales_create_parameters
|
|
109
109
|
# @param [Hash] opts the optional parameters
|
|
110
110
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
111
|
-
# @return [
|
|
111
|
+
# @return [JobLocale]
|
|
112
112
|
describe 'job_locales_create test' do
|
|
113
113
|
it 'should work' do
|
|
114
114
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/jobs_api_spec.rb
CHANGED
|
@@ -42,7 +42,7 @@ describe 'JobsApi' do
|
|
|
42
42
|
# @param job_create_parameters
|
|
43
43
|
# @param [Hash] opts the optional parameters
|
|
44
44
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
45
|
-
# @return [
|
|
45
|
+
# @return [JobDetails]
|
|
46
46
|
describe 'job_create test' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/keys_api_spec.rb
CHANGED
|
@@ -27,7 +27,7 @@ describe 'KeysApi' do
|
|
|
27
27
|
# @param key_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [TranslationKeyDetails]
|
|
31
31
|
describe 'key_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -86,7 +86,7 @@ describe 'KeysApi' do
|
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
88
88
|
# @option opts [String] :branch specify the branch to use
|
|
89
|
-
# @option opts [String] :q
|
|
89
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\"\\\\\\\")</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
90
90
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
|
91
91
|
# @return [AffectedResources]
|
|
92
92
|
describe 'keys_delete test' do
|
|
@@ -106,7 +106,7 @@ describe 'KeysApi' do
|
|
|
106
106
|
# @option opts [String] :branch specify the branch to use
|
|
107
107
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
|
108
108
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
109
|
-
# @option opts [String] :q
|
|
109
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\"\\\\\\\")</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
110
110
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
|
111
111
|
# @return [Array<TranslationKey>]
|
|
112
112
|
describe 'keys_list test' do
|
|
@@ -27,7 +27,7 @@ describe 'LocalesApi' do
|
|
|
27
27
|
# @param locale_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [LocaleDetails]
|
|
31
31
|
describe 'locale_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -64,7 +64,7 @@ describe 'LocalesApi' do
|
|
|
64
64
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
|
65
65
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
|
66
66
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
|
67
|
-
# @option opts [
|
|
67
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://help.phrase.com/help/supported-platforms-and-formats\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
|
68
68
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
|
69
69
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
|
70
70
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
data/spec/api/orders_api_spec.rb
CHANGED
|
@@ -42,7 +42,7 @@ describe 'OrdersApi' do
|
|
|
42
42
|
# @param order_create_parameters
|
|
43
43
|
# @param [Hash] opts the optional parameters
|
|
44
44
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
45
|
-
# @return [
|
|
45
|
+
# @return [TranslationOrder]
|
|
46
46
|
describe 'order_create test' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -26,7 +26,7 @@ describe 'ProjectsApi' do
|
|
|
26
26
|
# @param project_create_parameters
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
28
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
29
|
-
# @return [
|
|
29
|
+
# @return [ProjectDetails]
|
|
30
30
|
describe 'project_create test' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -28,7 +28,7 @@ describe 'ReleasesApi' do
|
|
|
28
28
|
# @param release_create_parameters
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [Release]
|
|
32
32
|
describe 'release_create test' do
|
|
33
33
|
it 'should work' do
|
|
34
34
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -28,7 +28,7 @@ describe 'ScreenshotMarkersApi' do
|
|
|
28
28
|
# @param screenshot_marker_create_parameters
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [ScreenshotMarker]
|
|
32
32
|
describe 'screenshot_marker_create test' do
|
|
33
33
|
it 'should work' do
|
|
34
34
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'ScreenshotsApi' do
|
|
|
27
27
|
# @param screenshot_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [Screenshot]
|
|
31
31
|
describe 'screenshot_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/spaces_api_spec.rb
CHANGED
|
@@ -27,7 +27,7 @@ describe 'SpacesApi' do
|
|
|
27
27
|
# @param space_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [Space]
|
|
31
31
|
describe 'space_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'StyleGuidesApi' do
|
|
|
27
27
|
# @param styleguide_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [StyleguideDetails]
|
|
31
31
|
describe 'styleguide_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/tags_api_spec.rb
CHANGED
|
@@ -27,7 +27,7 @@ describe 'TagsApi' do
|
|
|
27
27
|
# @param tag_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [TagWithStats]
|
|
31
31
|
describe 'tag_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Unit tests for Phrase::TeamsApi
|
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
|
+
# Please update as you see appropriate
|
|
7
|
+
describe 'TeamsApi' do
|
|
8
|
+
before do
|
|
9
|
+
# run before each test
|
|
10
|
+
@api_instance = Phrase::TeamsApi.new
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
# run after each test
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of TeamsApi' do
|
|
18
|
+
it 'should create an instance of TeamsApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::TeamsApi)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# unit tests for team_create
|
|
24
|
+
# Create a Team
|
|
25
|
+
# Create a new Team.
|
|
26
|
+
# @param account_id Account ID
|
|
27
|
+
# @param team_create_parameters
|
|
28
|
+
# @param [Hash] opts the optional parameters
|
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
+
# @return [TeamDetail]
|
|
31
|
+
describe 'team_create test' do
|
|
32
|
+
it 'should work' do
|
|
33
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# unit tests for team_delete
|
|
38
|
+
# Delete Team
|
|
39
|
+
# Delete the specified Team.
|
|
40
|
+
# @param account_id Account ID
|
|
41
|
+
# @param id ID
|
|
42
|
+
# @param [Hash] opts the optional parameters
|
|
43
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
44
|
+
# @return [nil]
|
|
45
|
+
describe 'team_delete test' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# unit tests for team_show
|
|
52
|
+
# Get Team
|
|
53
|
+
# Show the specified Team.
|
|
54
|
+
# @param account_id Account ID
|
|
55
|
+
# @param id ID
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
58
|
+
# @return [TeamDetail]
|
|
59
|
+
describe 'team_show test' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# unit tests for team_update
|
|
66
|
+
# Update Team
|
|
67
|
+
# Update the specified Team.
|
|
68
|
+
# @param account_id Account ID
|
|
69
|
+
# @param id ID
|
|
70
|
+
# @param team_update_parameters
|
|
71
|
+
# @param [Hash] opts the optional parameters
|
|
72
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
73
|
+
# @return [TeamDetail]
|
|
74
|
+
describe 'team_update test' do
|
|
75
|
+
it 'should work' do
|
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# unit tests for teams_list
|
|
81
|
+
# List Teams
|
|
82
|
+
# List all Teams for the given account.
|
|
83
|
+
# @param account_id Account ID
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
86
|
+
# @option opts [Integer] :page Page number
|
|
87
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
|
|
88
|
+
# @return [Array<Team>]
|
|
89
|
+
describe 'teams_list test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for teams_projects_create
|
|
96
|
+
# Add Project
|
|
97
|
+
# Adds an existing project to the team.
|
|
98
|
+
# @param account_id Account ID
|
|
99
|
+
# @param team_id Team ID
|
|
100
|
+
# @param teams_projects_create_parameters
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
103
|
+
# @return [nil]
|
|
104
|
+
describe 'teams_projects_create test' do
|
|
105
|
+
it 'should work' do
|
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# unit tests for teams_projects_delete
|
|
111
|
+
# Remove Project
|
|
112
|
+
# Removes a specified project from the specified team.
|
|
113
|
+
# @param account_id Account ID
|
|
114
|
+
# @param team_id Team ID
|
|
115
|
+
# @param id ID
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
118
|
+
# @return [nil]
|
|
119
|
+
describe 'teams_projects_delete test' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# unit tests for teams_spaces_create
|
|
126
|
+
# Add Space
|
|
127
|
+
# Adds an existing space to the team.
|
|
128
|
+
# @param account_id Account ID
|
|
129
|
+
# @param team_id Team ID
|
|
130
|
+
# @param teams_spaces_create_parameters
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
133
|
+
# @return [nil]
|
|
134
|
+
describe 'teams_spaces_create test' do
|
|
135
|
+
it 'should work' do
|
|
136
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# unit tests for teams_spaces_delete
|
|
141
|
+
# Remove Space
|
|
142
|
+
# Removes a specified space from the specified team.
|
|
143
|
+
# @param account_id Account ID
|
|
144
|
+
# @param team_id Team ID
|
|
145
|
+
# @param id ID
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
148
|
+
# @return [nil]
|
|
149
|
+
describe 'teams_spaces_delete test' do
|
|
150
|
+
it 'should work' do
|
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# unit tests for teams_users_create
|
|
156
|
+
# Add User
|
|
157
|
+
# Adds an existing user to the team.
|
|
158
|
+
# @param account_id Account ID
|
|
159
|
+
# @param team_id Team ID
|
|
160
|
+
# @param teams_users_create_parameters
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
163
|
+
# @return [nil]
|
|
164
|
+
describe 'teams_users_create test' do
|
|
165
|
+
it 'should work' do
|
|
166
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# unit tests for teams_users_delete
|
|
171
|
+
# Remove User
|
|
172
|
+
# Removes a specified user from the specified team.
|
|
173
|
+
# @param account_id Account ID
|
|
174
|
+
# @param team_id Team ID
|
|
175
|
+
# @param id ID
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
178
|
+
# @return [nil]
|
|
179
|
+
describe 'teams_users_delete test' do
|
|
180
|
+
it 'should work' do
|
|
181
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|