phrase 4.32.0 → 4.34.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 +15 -0
- data/Gemfile +1 -1
- data/README.md +6 -3
- data/docs/JobCreateParameters.md +4 -2
- data/docs/JobDetails.md +3 -1
- data/docs/JobTemplateCreateParameters.md +2 -0
- data/docs/JobTemplateDetails.md +3 -1
- data/docs/JobTemplateUpdateParameters.md +2 -0
- data/docs/JobUpdateParameters.md +3 -1
- data/docs/KeysApi.md +6 -2
- data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
- data/docs/OrganizationJobTemplateDetails.md +3 -1
- data/docs/OrganizationJobTemplateUpdateParameters.md +2 -0
- data/docs/RepoSyncEvent.md +3 -1
- data/docs/RepoSyncEventUploadsInner.md +19 -0
- data/docs/TranslationKey.md +3 -1
- data/docs/TranslationKeyDetails.md +2 -0
- data/docs/TranslationKeyLinkedKey.md +21 -0
- data/docs/TranslationKeyLinkedKeyParent.md +19 -0
- data/docs/TranslationsApi.md +7 -7
- data/docs/TranslationsExcludeParameters.md +2 -2
- data/docs/TranslationsIncludeParameters.md +2 -2
- data/docs/TranslationsReviewParameters.md +2 -2
- data/docs/TranslationsSearchParameters.md +2 -2
- data/docs/TranslationsUnreviewParameters.md +2 -2
- data/docs/TranslationsUnverifyParameters.md +2 -2
- data/docs/TranslationsVerifyParameters.md +2 -2
- data/lib/phrase/api/keys_api.rb +6 -0
- data/lib/phrase/api/translations_api.rb +8 -8
- data/lib/phrase/models/job_create_parameters.rb +15 -5
- data/lib/phrase/models/job_details.rb +14 -4
- data/lib/phrase/models/job_template_create_parameters.rb +11 -1
- data/lib/phrase/models/job_template_details.rb +14 -4
- data/lib/phrase/models/job_template_update_parameters.rb +11 -1
- data/lib/phrase/models/job_update_parameters.rb +14 -4
- data/lib/phrase/models/organization_job_template_create_parameters.rb +11 -1
- data/lib/phrase/models/organization_job_template_details.rb +14 -4
- data/lib/phrase/models/organization_job_template_update_parameters.rb +11 -1
- data/lib/phrase/models/repo_sync_event.rb +17 -4
- data/lib/phrase/models/repo_sync_event_uploads_inner.rb +241 -0
- data/lib/phrase/models/translation_key.rb +14 -4
- data/lib/phrase/models/translation_key_details.rb +11 -1
- data/lib/phrase/models/translation_key_linked_key.rb +253 -0
- data/lib/phrase/models/translation_key_linked_key_parent.rb +208 -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_unreview_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/version.rb +1 -1
- data/lib/phrase.rb +3 -0
- data/spec/api/keys_api_spec.rb +2 -0
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/models/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/job_template_create_parameters_spec.rb +6 -0
- data/spec/models/job_template_details_spec.rb +6 -0
- data/spec/models/job_template_update_parameters_spec.rb +6 -0
- data/spec/models/job_update_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
- data/spec/models/organization_job_template_details_spec.rb +6 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
- data/spec/models/repo_sync_event_spec.rb +6 -0
- data/spec/models/repo_sync_event_uploads_inner_spec.rb +39 -0
- data/spec/models/translation_key_details_spec.rb +6 -0
- data/spec/models/translation_key_linked_key_parent_spec.rb +35 -0
- data/spec/models/translation_key_linked_key_spec.rb +45 -0
- data/spec/models/translation_key_spec.rb +6 -0
- metadata +280 -268
|
@@ -44,6 +44,12 @@ describe 'JobTemplateCreateParameters' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
describe 'test attribute "source_locale_id"' do
|
|
48
54
|
it 'should work' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,6 +44,12 @@ describe 'JobTemplateUpdateParameters' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
describe 'test attribute "source_locale_id"' do
|
|
48
54
|
it 'should work' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -62,4 +62,10 @@ describe 'JobUpdateParameters' do
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
65
71
|
end
|
|
@@ -38,6 +38,12 @@ describe 'OrganizationJobTemplateCreateParameters' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "owner_id"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -80,4 +80,10 @@ describe 'OrganizationJobTemplateDetails' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
83
89
|
end
|
|
@@ -38,6 +38,12 @@ describe 'OrganizationJobTemplateUpdateParameters' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "exclude_linked_child_keys"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "owner_id"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::RepoSyncEventUploadsInner
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'RepoSyncEventUploadsInner' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::RepoSyncEventUploadsInner.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of RepoSyncEventUploadsInner' do
|
|
19
|
+
it 'should create an instance of RepoSyncEventUploadsInner' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::RepoSyncEventUploadsInner)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "id"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test attribute "state"' do
|
|
30
|
+
it 'should work' do
|
|
31
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["initialized", "waiting_for_preview", "processing", "success", "error"])
|
|
33
|
+
# validator.allowable_values.each do |value|
|
|
34
|
+
# expect { @instance.state = value }.not_to raise_error
|
|
35
|
+
# end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -80,6 +80,12 @@ describe 'TranslationKeyDetails' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
describe 'test attribute "linked_key"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
83
89
|
describe 'test attribute "name_plural"' do
|
|
84
90
|
it 'should work' do
|
|
85
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::TranslationKeyLinkedKeyParent
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'TranslationKeyLinkedKeyParent' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::TranslationKeyLinkedKeyParent.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of TranslationKeyLinkedKeyParent' do
|
|
19
|
+
it 'should create an instance of TranslationKeyLinkedKeyParent' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::TranslationKeyLinkedKeyParent)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "id"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test attribute "name"' do
|
|
30
|
+
it 'should work' do
|
|
31
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::TranslationKeyLinkedKey
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'TranslationKeyLinkedKey' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::TranslationKeyLinkedKey.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of TranslationKeyLinkedKey' do
|
|
19
|
+
it 'should create an instance of TranslationKeyLinkedKey' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::TranslationKeyLinkedKey)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "role"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["parent", "child"])
|
|
27
|
+
# validator.allowable_values.each do |value|
|
|
28
|
+
# expect { @instance.role = value }.not_to raise_error
|
|
29
|
+
# end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "parent"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "children_count"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|