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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile +1 -1
  4. data/README.md +6 -3
  5. data/docs/JobCreateParameters.md +4 -2
  6. data/docs/JobDetails.md +3 -1
  7. data/docs/JobTemplateCreateParameters.md +2 -0
  8. data/docs/JobTemplateDetails.md +3 -1
  9. data/docs/JobTemplateUpdateParameters.md +2 -0
  10. data/docs/JobUpdateParameters.md +3 -1
  11. data/docs/KeysApi.md +6 -2
  12. data/docs/OrganizationJobTemplateCreateParameters.md +2 -0
  13. data/docs/OrganizationJobTemplateDetails.md +3 -1
  14. data/docs/OrganizationJobTemplateUpdateParameters.md +2 -0
  15. data/docs/RepoSyncEvent.md +3 -1
  16. data/docs/RepoSyncEventUploadsInner.md +19 -0
  17. data/docs/TranslationKey.md +3 -1
  18. data/docs/TranslationKeyDetails.md +2 -0
  19. data/docs/TranslationKeyLinkedKey.md +21 -0
  20. data/docs/TranslationKeyLinkedKeyParent.md +19 -0
  21. data/docs/TranslationsApi.md +7 -7
  22. data/docs/TranslationsExcludeParameters.md +2 -2
  23. data/docs/TranslationsIncludeParameters.md +2 -2
  24. data/docs/TranslationsReviewParameters.md +2 -2
  25. data/docs/TranslationsSearchParameters.md +2 -2
  26. data/docs/TranslationsUnreviewParameters.md +2 -2
  27. data/docs/TranslationsUnverifyParameters.md +2 -2
  28. data/docs/TranslationsVerifyParameters.md +2 -2
  29. data/lib/phrase/api/keys_api.rb +6 -0
  30. data/lib/phrase/api/translations_api.rb +8 -8
  31. data/lib/phrase/models/job_create_parameters.rb +15 -5
  32. data/lib/phrase/models/job_details.rb +14 -4
  33. data/lib/phrase/models/job_template_create_parameters.rb +11 -1
  34. data/lib/phrase/models/job_template_details.rb +14 -4
  35. data/lib/phrase/models/job_template_update_parameters.rb +11 -1
  36. data/lib/phrase/models/job_update_parameters.rb +14 -4
  37. data/lib/phrase/models/organization_job_template_create_parameters.rb +11 -1
  38. data/lib/phrase/models/organization_job_template_details.rb +14 -4
  39. data/lib/phrase/models/organization_job_template_update_parameters.rb +11 -1
  40. data/lib/phrase/models/repo_sync_event.rb +17 -4
  41. data/lib/phrase/models/repo_sync_event_uploads_inner.rb +241 -0
  42. data/lib/phrase/models/translation_key.rb +14 -4
  43. data/lib/phrase/models/translation_key_details.rb +11 -1
  44. data/lib/phrase/models/translation_key_linked_key.rb +253 -0
  45. data/lib/phrase/models/translation_key_linked_key_parent.rb +208 -0
  46. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  47. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  48. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  49. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  50. data/lib/phrase/models/translations_unreview_parameters.rb +1 -1
  51. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  52. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  53. data/lib/phrase/version.rb +1 -1
  54. data/lib/phrase.rb +3 -0
  55. data/spec/api/keys_api_spec.rb +2 -0
  56. data/spec/api/translations_api_spec.rb +4 -4
  57. data/spec/models/job_create_parameters_spec.rb +6 -0
  58. data/spec/models/job_details_spec.rb +6 -0
  59. data/spec/models/job_template_create_parameters_spec.rb +6 -0
  60. data/spec/models/job_template_details_spec.rb +6 -0
  61. data/spec/models/job_template_update_parameters_spec.rb +6 -0
  62. data/spec/models/job_update_parameters_spec.rb +6 -0
  63. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  64. data/spec/models/organization_job_template_details_spec.rb +6 -0
  65. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  66. data/spec/models/repo_sync_event_spec.rb +6 -0
  67. data/spec/models/repo_sync_event_uploads_inner_spec.rb +39 -0
  68. data/spec/models/translation_key_details_spec.rb +6 -0
  69. data/spec/models/translation_key_linked_key_parent_spec.rb +35 -0
  70. data/spec/models/translation_key_linked_key_spec.rb +45 -0
  71. data/spec/models/translation_key_spec.rb +6 -0
  72. 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
@@ -86,4 +86,10 @@ describe 'JobTemplateDetails' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "exclude_linked_child_keys"' 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
+
89
95
  end
@@ -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
@@ -70,4 +70,10 @@ describe 'RepoSyncEvent' do
70
70
  end
71
71
  end
72
72
 
73
+ describe 'test attribute "uploads"' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
73
79
  end
@@ -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
@@ -80,4 +80,10 @@ describe 'TranslationKey' 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
  end