phrase 2.13.0 → 2.15.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 +14 -0
- data/README.md +11 -3
- data/docs/Comment.md +5 -1
- data/docs/CommentReactionsApi.md +3 -1
- data/docs/CommentRepliesApi.md +433 -0
- data/docs/CommentsApi.md +17 -5
- data/docs/CommentsListParameters.md +23 -0
- data/docs/RepliesListParameters.md +21 -0
- data/lib/phrase/api/comment_reactions_api.rb +3 -0
- data/lib/phrase/api/comment_replies_api.rb +537 -0
- data/lib/phrase/api/comments_api.rb +27 -4
- data/lib/phrase/models/comment.rb +24 -4
- data/lib/phrase/models/comments_list_parameters.rb +229 -0
- data/lib/phrase/models/replies_list_parameters.rb +217 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +3 -0
- data/spec/api/comment_reactions_api_spec.rb +1 -0
- data/spec/api/comment_replies_api_spec.rb +129 -0
- data/spec/api/comments_api_spec.rb +6 -0
- data/spec/models/comment_spec.rb +12 -0
- data/spec/models/comments_list_parameters_spec.rb +47 -0
- data/spec/models/replies_list_parameters_spec.rb +41 -0
- metadata +14 -2
@@ -28,6 +28,8 @@ 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
|
+
# @option opts [String] :message specify the message for the comment
|
32
|
+
# @option opts [Array<String>] :locale_ids specify the locales for the comment
|
31
33
|
# @return [Comment]
|
32
34
|
describe 'comment_create test' do
|
33
35
|
it 'should work' do
|
@@ -136,11 +138,15 @@ describe 'CommentsApi' do
|
|
136
138
|
# List all comments for a key.
|
137
139
|
# @param project_id Project ID
|
138
140
|
# @param key_id Translation Key ID
|
141
|
+
# @param comments_list_parameters
|
139
142
|
# @param [Hash] opts the optional parameters
|
140
143
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
141
144
|
# @option opts [Integer] :page Page number
|
142
145
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
143
146
|
# @option opts [String] :branch specify the branch to use
|
147
|
+
# @option opts [String] :query Search query for comment messages
|
148
|
+
# @option opts [Array<String>] :locale_ids Search comments by their assigned locales
|
149
|
+
# @option opts [Array<String>] :filters Specify the filter for the comments
|
144
150
|
# @return [Array<Comment>]
|
145
151
|
describe 'comments_list test' do
|
146
152
|
it 'should work' do
|
data/spec/models/comment_spec.rb
CHANGED
@@ -32,6 +32,12 @@ describe 'Comment' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
describe 'test attribute "has_replies"' 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 "user"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -56,4 +62,10 @@ describe 'Comment' do
|
|
56
62
|
end
|
57
63
|
end
|
58
64
|
|
65
|
+
describe 'test attribute "locales"' 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
|
+
|
59
71
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::CommentsListParameters
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CommentsListParameters' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::CommentsListParameters.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of CommentsListParameters' do
|
19
|
+
it 'should create an instance of CommentsListParameters' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CommentsListParameters)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "branch"' 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 "query"' 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 "locale_ids"' 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 "filters"' 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
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::RepliesListParameters
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'RepliesListParameters' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::RepliesListParameters.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of RepliesListParameters' do
|
19
|
+
it 'should create an instance of RepliesListParameters' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::RepliesListParameters)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "branch"' 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 "query"' 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 "filters"' 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
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phrase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phrase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -129,8 +129,10 @@ files:
|
|
129
129
|
- docs/CommentMarkReadParameters.md
|
130
130
|
- docs/CommentReaction.md
|
131
131
|
- docs/CommentReactionsApi.md
|
132
|
+
- docs/CommentRepliesApi.md
|
132
133
|
- docs/CommentUpdateParameters.md
|
133
134
|
- docs/CommentsApi.md
|
135
|
+
- docs/CommentsListParameters.md
|
134
136
|
- docs/CurrentUser.md
|
135
137
|
- docs/Distribution.md
|
136
138
|
- docs/DistributionCreateParameters.md
|
@@ -264,6 +266,7 @@ files:
|
|
264
266
|
- docs/ReleasePreview.md
|
265
267
|
- docs/ReleaseUpdateParameters.md
|
266
268
|
- docs/ReleasesApi.md
|
269
|
+
- docs/RepliesListParameters.md
|
267
270
|
- docs/Screenshot.md
|
268
271
|
- docs/ScreenshotCreateParameters.md
|
269
272
|
- docs/ScreenshotMarker.md
|
@@ -354,6 +357,7 @@ files:
|
|
354
357
|
- lib/phrase/api/blacklisted_keys_api.rb
|
355
358
|
- lib/phrase/api/branches_api.rb
|
356
359
|
- lib/phrase/api/comment_reactions_api.rb
|
360
|
+
- lib/phrase/api/comment_replies_api.rb
|
357
361
|
- lib/phrase/api/comments_api.rb
|
358
362
|
- lib/phrase/api/distributions_api.rb
|
359
363
|
- lib/phrase/api/documents_api.rb
|
@@ -425,6 +429,7 @@ files:
|
|
425
429
|
- lib/phrase/models/comment_mark_read_parameters.rb
|
426
430
|
- lib/phrase/models/comment_reaction.rb
|
427
431
|
- lib/phrase/models/comment_update_parameters.rb
|
432
|
+
- lib/phrase/models/comments_list_parameters.rb
|
428
433
|
- lib/phrase/models/current_user.rb
|
429
434
|
- lib/phrase/models/distribution.rb
|
430
435
|
- lib/phrase/models/distribution_create_parameters.rb
|
@@ -533,6 +538,7 @@ files:
|
|
533
538
|
- lib/phrase/models/release_create_parameters.rb
|
534
539
|
- lib/phrase/models/release_preview.rb
|
535
540
|
- lib/phrase/models/release_update_parameters.rb
|
541
|
+
- lib/phrase/models/replies_list_parameters.rb
|
536
542
|
- lib/phrase/models/screenshot.rb
|
537
543
|
- lib/phrase/models/screenshot_create_parameters.rb
|
538
544
|
- lib/phrase/models/screenshot_marker.rb
|
@@ -610,6 +616,7 @@ files:
|
|
610
616
|
- spec/api/blacklisted_keys_api_spec.rb
|
611
617
|
- spec/api/branches_api_spec.rb
|
612
618
|
- spec/api/comment_reactions_api_spec.rb
|
619
|
+
- spec/api/comment_replies_api_spec.rb
|
613
620
|
- spec/api/comments_api_spec.rb
|
614
621
|
- spec/api/distributions_api_spec.rb
|
615
622
|
- spec/api/documents_api_spec.rb
|
@@ -680,6 +687,7 @@ files:
|
|
680
687
|
- spec/models/comment_reaction_spec.rb
|
681
688
|
- spec/models/comment_spec.rb
|
682
689
|
- spec/models/comment_update_parameters_spec.rb
|
690
|
+
- spec/models/comments_list_parameters_spec.rb
|
683
691
|
- spec/models/current_user_spec.rb
|
684
692
|
- spec/models/distribution_create_parameters_spec.rb
|
685
693
|
- spec/models/distribution_preview_spec.rb
|
@@ -788,6 +796,7 @@ files:
|
|
788
796
|
- spec/models/release_preview_spec.rb
|
789
797
|
- spec/models/release_spec.rb
|
790
798
|
- spec/models/release_update_parameters_spec.rb
|
799
|
+
- spec/models/replies_list_parameters_spec.rb
|
791
800
|
- spec/models/screenshot_create_parameters_spec.rb
|
792
801
|
- spec/models/screenshot_marker_create_parameters_spec.rb
|
793
802
|
- spec/models/screenshot_marker_spec.rb
|
@@ -888,6 +897,7 @@ summary: You can collaborate on language file translation with your team or orde
|
|
888
897
|
test_files:
|
889
898
|
- spec/api/bitbucket_sync_api_spec.rb
|
890
899
|
- spec/api/orders_api_spec.rb
|
900
|
+
- spec/api/comment_replies_api_spec.rb
|
891
901
|
- spec/api/job_comments_api_spec.rb
|
892
902
|
- spec/api/users_api_spec.rb
|
893
903
|
- spec/api/variables_api_spec.rb
|
@@ -970,6 +980,7 @@ test_files:
|
|
970
980
|
- spec/models/subscription_spec.rb
|
971
981
|
- spec/models/teams_projects_create_parameters_spec.rb
|
972
982
|
- spec/models/gitlab_sync_history_spec.rb
|
983
|
+
- spec/models/replies_list_parameters_spec.rb
|
973
984
|
- spec/models/team_detail_spec.rb
|
974
985
|
- spec/models/screenshot_update_parameters_spec.rb
|
975
986
|
- spec/models/release_spec.rb
|
@@ -1024,6 +1035,7 @@ test_files:
|
|
1024
1035
|
- spec/models/locale_team_preview_spec.rb
|
1025
1036
|
- spec/models/blacklisted_key_spec.rb
|
1026
1037
|
- spec/models/comment_spec.rb
|
1038
|
+
- spec/models/comments_list_parameters_spec.rb
|
1027
1039
|
- spec/models/space_spec.rb
|
1028
1040
|
- spec/models/account_spec.rb
|
1029
1041
|
- spec/models/webhook_update_parameters_spec.rb
|