phrase 2.5.1 → 2.7.1

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -4
  3. data/docs/IcuSkeletonParameters.md +2 -0
  4. data/docs/Invitation.md +3 -3
  5. data/docs/JobComment.md +29 -0
  6. data/docs/JobCommentCreateParameters.md +17 -0
  7. data/docs/JobCommentUpdateParameters.md +17 -0
  8. data/docs/JobCommentsApi.md +343 -0
  9. data/docs/JobCreateParameters.md +3 -1
  10. data/docs/JobsApi.md +130 -0
  11. data/docs/KeyCreateParameters.md +2 -0
  12. data/docs/Member.md +1 -1
  13. data/docs/ScreenshotsApi.md +12 -6
  14. data/docs/StyleguideCreateParameters.md +1 -1
  15. data/docs/StyleguideUpdateParameters.md +1 -1
  16. data/docs/{Team1.md → TeamShort.md} +2 -2
  17. data/lib/phrase/api/job_comments_api.rb +411 -0
  18. data/lib/phrase/api/jobs_api.rb +146 -0
  19. data/lib/phrase/api/screenshots_api.rb +17 -11
  20. data/lib/phrase/models/icu_skeleton_parameters.rb +11 -1
  21. data/lib/phrase/models/invitation.rb +13 -13
  22. data/lib/phrase/models/job_comment.rb +250 -0
  23. data/lib/phrase/models/job_comment_create_parameters.rb +195 -0
  24. data/lib/phrase/models/job_comment_update_parameters.rb +195 -0
  25. data/lib/phrase/models/job_create_parameters.rb +14 -4
  26. data/lib/phrase/models/key_create_parameters.rb +11 -1
  27. data/lib/phrase/models/member.rb +1 -1
  28. data/lib/phrase/models/{team1.rb → team_short.rb} +3 -3
  29. data/lib/phrase/version.rb +1 -1
  30. data/lib/phrase.rb +5 -1
  31. data/spec/api/job_comments_api_spec.rb +101 -0
  32. data/spec/api/jobs_api_spec.rb +30 -0
  33. data/spec/api/screenshots_api_spec.rb +4 -1
  34. data/spec/models/icu_skeleton_parameters_spec.rb +6 -0
  35. data/spec/models/invitation_spec.rb +6 -6
  36. data/spec/models/job_comment_create_parameters_spec.rb +29 -0
  37. data/spec/models/job_comment_spec.rb +65 -0
  38. data/spec/models/job_comment_update_parameters_spec.rb +29 -0
  39. data/spec/models/job_create_parameters_spec.rb +6 -0
  40. data/spec/models/key_create_parameters_spec.rb +6 -0
  41. data/spec/models/{team1_spec.rb → team_short_spec.rb} +6 -6
  42. metadata +217 -201
@@ -95,6 +95,21 @@ describe 'JobsApi' do
95
95
  end
96
96
  end
97
97
 
98
+ # unit tests for job_lock
99
+ # Lock a job
100
+ # If you are the job owner, you may lock a job using this API request.
101
+ # @param project_id Project ID
102
+ # @param id ID
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
105
+ # @option opts [String] :branch specify the branch to use
106
+ # @return [nil]
107
+ describe 'job_lock test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
98
113
  # unit tests for job_reopen
99
114
  # Reopen a job
100
115
  # Mark a job as uncompleted.
@@ -140,6 +155,21 @@ describe 'JobsApi' do
140
155
  end
141
156
  end
142
157
 
158
+ # unit tests for job_unlock
159
+ # Unlock a job
160
+ # If you are the job owner, you may unlock a locked job using this API request.
161
+ # @param project_id Project ID
162
+ # @param id ID
163
+ # @param [Hash] opts the optional parameters
164
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
165
+ # @option opts [String] :branch specify the branch to use
166
+ # @return [nil]
167
+ describe 'job_unlock test' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
170
+ end
171
+ end
172
+
143
173
  # unit tests for job_update
144
174
  # Update a job
145
175
  # Update an existing job.
@@ -24,9 +24,12 @@ describe 'ScreenshotsApi' do
24
24
  # Create a screenshot
25
25
  # Create a new screenshot.
26
26
  # @param project_id Project ID
27
- # @param screenshot_create_parameters
28
27
  # @param [Hash] opts the optional parameters
29
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
29
+ # @option opts [String] :branch specify the branch to use
30
+ # @option opts [String] :name Name of the screenshot
31
+ # @option opts [String] :description Description of the screenshot
32
+ # @option opts [File] :filename Screenshot file
30
33
  # @return [Screenshot]
31
34
  describe 'screenshot_create test' do
32
35
  it 'should work' do
@@ -32,6 +32,12 @@ describe 'IcuSkeletonParameters' do
32
32
  end
33
33
  end
34
34
 
35
+ describe 'test attribute "keep_content"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
35
41
  describe 'test attribute "zero_form_enabled"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,12 @@ describe 'Invitation' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "teams"' 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
+
59
65
  describe 'test attribute "default_locale_codes"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,12 +104,6 @@ describe 'Invitation' do
98
104
  end
99
105
  end
100
106
 
101
- describe 'test attribute "teams"' do
102
- it 'should work' do
103
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
- end
105
- end
106
-
107
107
  describe 'test attribute "project_role"' do
108
108
  it 'should work' do
109
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobCommentCreateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobCommentCreateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobCommentCreateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobCommentCreateParameters' do
19
+ it 'should create an instance of JobCommentCreateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::JobCommentCreateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "message"' 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
+ end
@@ -0,0 +1,65 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobComment
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobComment' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobComment.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobComment' do
19
+ it 'should create an instance of JobComment' do
20
+ expect(@instance).to be_instance_of(Phrase::JobComment)
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 "message"' 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
+ describe 'test attribute "job_id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "user"' 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
+
47
+ describe 'test attribute "created_at"' 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
+
53
+ describe 'test attribute "updated_at"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "mentioned_users"' 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
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobCommentUpdateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobCommentUpdateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobCommentUpdateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobCommentUpdateParameters' do
19
+ it 'should create an instance of JobCommentUpdateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::JobCommentUpdateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "message"' 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
+ end
@@ -68,4 +68,10 @@ describe 'JobCreateParameters' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "job_template_id"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  end
@@ -86,6 +86,12 @@ describe 'KeyCreateParameters' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "default_translation_content"' 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
  describe 'test attribute "xml_space_preserve"' do
90
96
  it 'should work' do
91
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -2,22 +2,22 @@ require 'spec_helper'
2
2
  require 'json'
3
3
  require 'date'
4
4
 
5
- # Unit tests for Phrase::Team1
5
+ # Unit tests for Phrase::TeamShort
6
6
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
7
  # Please update as you see appropriate
8
- describe 'Team1' do
8
+ describe 'TeamShort' do
9
9
  before do
10
10
  # run before each test
11
- @instance = Phrase::Team1.new
11
+ @instance = Phrase::TeamShort.new
12
12
  end
13
13
 
14
14
  after do
15
15
  # run after each test
16
16
  end
17
17
 
18
- describe 'test an instance of Team1' do
19
- it 'should create an instance of Team1' do
20
- expect(@instance).to be_instance_of(Phrase::Team1)
18
+ describe 'test an instance of TeamShort' do
19
+ it 'should create an instance of TeamShort' do
20
+ expect(@instance).to be_instance_of(Phrase::TeamShort)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "id"' do