Skip to content

Commit 2560555

Browse files
author
Phrase
committed
1 parent e389e05 commit 2560555

15 files changed

+67
-13
lines changed

docs/CommentRepliesApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ opts = {
4848
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
4949
branch: 'my-feature-branch', # String | specify the branch to use
5050
query: 'Some comment content', # String | Search query for comment messages
51-
filters: ['[\"read\",\"unread\"]'] # Array<String> | Specify the filter for the comments
51+
filters: ['[\"read\",\"unread\"]'], # Array<String> | Specify the filter for the comments
52+
order: 'desc' # String | Order direction. Can be one of: asc, desc.
5253
}
5354

5455
begin
@@ -75,6 +76,7 @@ Name | Type | Description | Notes
7576
**branch** | **String**| specify the branch to use | [optional]
7677
**query** | **String**| Search query for comment messages | [optional]
7778
**filters** | [**Array&lt;String&gt;**](String.md)| Specify the filter for the comments | [optional]
79+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
7880

7981
### Return type
8082

docs/CommentsApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ opts = {
517517
branch: 'my-feature-branch', # String | specify the branch to use
518518
query: 'Some comment content', # String | Search query for comment messages
519519
locale_ids: ['[\"someId\"]'], # Array<String> | Search comments by their assigned locales
520-
filters: ['[\"read\",\"unread\"]'] # Array<String> | Specify the filter for the comments
520+
filters: ['[\"read\",\"unread\"]'], # Array<String> | Specify the filter for the comments
521+
order: 'desc' # String | Order direction. Can be one of: asc, desc.
521522
}
522523

523524
begin
@@ -544,6 +545,7 @@ Name | Type | Description | Notes
544545
**query** | **String**| Search query for comment messages | [optional]
545546
**locale_ids** | [**Array&lt;String&gt;**](String.md)| Search comments by their assigned locales | [optional]
546547
**filters** | [**Array&lt;String&gt;**](String.md)| Specify the filter for the comments | [optional]
548+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
547549

548550
### Return type
549551

docs/CommentsListParameters.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**query** | **String** | Search query for comment messages | [optional]
99
**locale_ids** | **Array&lt;String&gt;** | Search comments by their assigned locales | [optional]
1010
**filters** | **Array&lt;String&gt;** | Specify filters to find comments by | [optional]
11+
**order** | **String** | Specify ordering of comments | [optional]
1112

1213
## Code Sample
1314

@@ -17,7 +18,8 @@ require 'Phrase'
1718
instance = Phrase::CommentsListParameters.new(branch: my-feature-branch,
1819
query: Some comment content,
1920
locale_ids: [&quot;someId&quot;,&quot;otherId&quot;],
20-
filters: [&quot;read&quot;,&quot;unread&quot;])
21+
filters: [&quot;read&quot;,&quot;unread&quot;],
22+
order: desc)
2123
```
2224

2325

docs/JobCommentsApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ project_id = 'project_id_example' # String | Project ID
306306
job_id = 'job_id_example' # String | Job ID
307307
opts = {
308308
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
309-
branch: 'my-feature-branch' # String | specify the branch to use
309+
branch: 'my-feature-branch', # String | specify the branch to use
310+
order: 'desc' # String | Order direction. Can be one of: asc, desc.
310311
}
311312

312313
begin
@@ -327,6 +328,7 @@ Name | Type | Description | Notes
327328
**job_id** | **String**| Job ID |
328329
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
329330
**branch** | **String**| specify the branch to use | [optional]
331+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
330332

331333
### Return type
332334

docs/RepliesListParameters.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**branch** | **String** | Specify the branch to use | [optional]
88
**query** | **String** | Search query for comment messages | [optional]
99
**filters** | **Array&lt;String&gt;** | Specify filters to find comments by | [optional]
10+
**order** | **String** | Specify ordering of comments | [optional]
1011

1112
## Code Sample
1213

@@ -15,7 +16,8 @@ require 'Phrase'
1516

1617
instance = Phrase::RepliesListParameters.new(branch: my-feature-branch,
1718
query: Some comment content,
18-
filters: [&quot;read&quot;,&quot;unread&quot;])
19+
filters: [&quot;read&quot;,&quot;unread&quot;],
20+
order: desc)
1921
```
2022

2123

lib/phrase/api/comment_replies_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def initialize(api_client = ApiClient.default)
2020
# @option opts [String] :branch specify the branch to use
2121
# @option opts [String] :query Search query for comment messages
2222
# @option opts [Array<String>] :filters Specify the filter for the comments
23+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
2324
# @return [Array<Comment>]
2425
def replies_list(project_id, key_id, comment_id, replies_list_parameters, opts = {})
2526
data, _status_code, _headers = replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, opts)
@@ -39,6 +40,7 @@ def replies_list(project_id, key_id, comment_id, replies_list_parameters, opts =
3940
# @option opts [String] :branch specify the branch to use
4041
# @option opts [String] :query Search query for comment messages
4142
# @option opts [Array<String>] :filters Specify the filter for the comments
43+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
4244
# @return [Array<(Response<(Array<Comment>)>, Integer, Hash)>] Response<(Array<Comment>)> data, response status code and response headers
4345
def replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, opts = {})
4446
if @api_client.config.debugging
@@ -70,6 +72,7 @@ def replies_list_with_http_info(project_id, key_id, comment_id, replies_list_par
7072
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
7173
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
7274
query_params[:'filters'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
75+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
7376

7477
# header parameters
7578
header_params = opts[:header_params] || {}

lib/phrase/api/comments_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ def comment_update_with_http_info(project_id, key_id, id, comment_update_paramet
594594
# @option opts [String] :query Search query for comment messages
595595
# @option opts [Array<String>] :locale_ids Search comments by their assigned locales
596596
# @option opts [Array<String>] :filters Specify the filter for the comments
597+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
597598
# @return [Array<Comment>]
598599
def comments_list(project_id, key_id, comments_list_parameters, opts = {})
599600
data, _status_code, _headers = comments_list_with_http_info(project_id, key_id, comments_list_parameters, opts)
@@ -613,6 +614,7 @@ def comments_list(project_id, key_id, comments_list_parameters, opts = {})
613614
# @option opts [String] :query Search query for comment messages
614615
# @option opts [Array<String>] :locale_ids Search comments by their assigned locales
615616
# @option opts [Array<String>] :filters Specify the filter for the comments
617+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
616618
# @return [Array<(Response<(Array<Comment>)>, Integer, Hash)>] Response<(Array<Comment>)> data, response status code and response headers
617619
def comments_list_with_http_info(project_id, key_id, comments_list_parameters, opts = {})
618620
if @api_client.config.debugging
@@ -641,6 +643,7 @@ def comments_list_with_http_info(project_id, key_id, comments_list_parameters, o
641643
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
642644
query_params[:'locale_ids'] = @api_client.build_collection_param(opts[:'locale_ids'], :multi) if !opts[:'locale_ids'].nil?
643645
query_params[:'filters'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
646+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
644647

645648
# header parameters
646649
header_params = opts[:header_params] || {}

lib/phrase/api/job_comments_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ def job_comment_update_with_http_info(project_id, key_id, id, job_comment_update
340340
# @param [Hash] opts the optional parameters
341341
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
342342
# @option opts [String] :branch specify the branch to use
343+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
343344
# @return [Array<JobComment>]
344345
def job_comments_list(project_id, job_id, opts = {})
345346
data, _status_code, _headers = job_comments_list_with_http_info(project_id, job_id, opts)
@@ -353,6 +354,7 @@ def job_comments_list(project_id, job_id, opts = {})
353354
# @param [Hash] opts the optional parameters
354355
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
355356
# @option opts [String] :branch specify the branch to use
357+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
356358
# @return [Array<(Response<(Array<JobComment>)>, Integer, Hash)>] Response<(Array<JobComment>)> data, response status code and response headers
357359
def job_comments_list_with_http_info(project_id, job_id, opts = {})
358360
if @api_client.config.debugging
@@ -372,6 +374,7 @@ def job_comments_list_with_http_info(project_id, job_id, opts = {})
372374
# query parameters
373375
query_params = opts[:query_params] || {}
374376
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
377+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
375378

376379
# header parameters
377380
header_params = opts[:header_params] || {}

lib/phrase/models/comments_list_parameters.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ class CommentsListParameters
1414
# Specify filters to find comments by
1515
attr_accessor :filters
1616

17+
# Specify ordering of comments
18+
attr_accessor :order
19+
1720
# Attribute mapping from ruby-style variable name to JSON key.
1821
def self.attribute_map
1922
{
2023
:'branch' => :'branch',
2124
:'query' => :'query',
2225
:'locale_ids' => :'locale_ids',
23-
:'filters' => :'filters'
26+
:'filters' => :'filters',
27+
:'order' => :'order'
2428
}
2529
end
2630

@@ -30,7 +34,8 @@ def self.openapi_types
3034
:'branch' => :'String',
3135
:'query' => :'String',
3236
:'locale_ids' => :'Array<String>',
33-
:'filters' => :'Array<String>'
37+
:'filters' => :'Array<String>',
38+
:'order' => :'String'
3439
}
3540
end
3641

@@ -74,6 +79,10 @@ def initialize(attributes = {})
7479
self.filters = value
7580
end
7681
end
82+
83+
if attributes.key?(:'order')
84+
self.order = attributes[:'order']
85+
end
7786
end
7887

7988
# Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +106,8 @@ def ==(o)
97106
branch == o.branch &&
98107
query == o.query &&
99108
locale_ids == o.locale_ids &&
100-
filters == o.filters
109+
filters == o.filters &&
110+
order == o.order
101111
end
102112

103113
# @see the `==` method
@@ -109,7 +119,7 @@ def eql?(o)
109119
# Calculates hash code according to all attributes.
110120
# @return [Integer] Hash code
111121
def hash
112-
[branch, query, locale_ids, filters].hash
122+
[branch, query, locale_ids, filters, order].hash
113123
end
114124

115125
# Builds the object from hash

lib/phrase/models/replies_list_parameters.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ class RepliesListParameters
1111
# Specify filters to find comments by
1212
attr_accessor :filters
1313

14+
# Specify ordering of comments
15+
attr_accessor :order
16+
1417
# Attribute mapping from ruby-style variable name to JSON key.
1518
def self.attribute_map
1619
{
1720
:'branch' => :'branch',
1821
:'query' => :'query',
19-
:'filters' => :'filters'
22+
:'filters' => :'filters',
23+
:'order' => :'order'
2024
}
2125
end
2226

@@ -25,7 +29,8 @@ def self.openapi_types
2529
{
2630
:'branch' => :'String',
2731
:'query' => :'String',
28-
:'filters' => :'Array<String>'
32+
:'filters' => :'Array<String>',
33+
:'order' => :'String'
2934
}
3035
end
3136

@@ -63,6 +68,10 @@ def initialize(attributes = {})
6368
self.filters = value
6469
end
6570
end
71+
72+
if attributes.key?(:'order')
73+
self.order = attributes[:'order']
74+
end
6675
end
6776

6877
# Show invalid properties with the reasons. Usually used together with valid?
@@ -85,7 +94,8 @@ def ==(o)
8594
self.class == o.class &&
8695
branch == o.branch &&
8796
query == o.query &&
88-
filters == o.filters
97+
filters == o.filters &&
98+
order == o.order
8999
end
90100

91101
# @see the `==` method
@@ -97,7 +107,7 @@ def eql?(o)
97107
# Calculates hash code according to all attributes.
98108
# @return [Integer] Hash code
99109
def hash
100-
[branch, query, filters].hash
110+
[branch, query, filters, order].hash
101111
end
102112

103113
# Builds the object from hash

0 commit comments

Comments
 (0)