algolia 3.0.0.beta.5 → 3.0.0.beta.7

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.
@@ -11,6 +11,9 @@ module Algolia
11
11
 
12
12
  attr_accessor :sort_remaining_by
13
13
 
14
+ # Hide facet values.
15
+ attr_accessor :hide
16
+
14
17
  class EnumAttributeValidator
15
18
  attr_reader :datatype
16
19
  attr_reader :allowable_values
@@ -37,7 +40,8 @@ module Algolia
37
40
  def self.attribute_map
38
41
  {
39
42
  :order => :order,
40
- :sort_remaining_by => :sortRemainingBy
43
+ :sort_remaining_by => :sortRemainingBy,
44
+ :hide => :hide
41
45
  }
42
46
  end
43
47
 
@@ -50,7 +54,8 @@ module Algolia
50
54
  def self.types_mapping
51
55
  {
52
56
  :order => :'Array<String>',
53
- :sort_remaining_by => :SortRemainingBy
57
+ :sort_remaining_by => :SortRemainingBy,
58
+ :hide => :'Array<String>'
54
59
  }
55
60
  end
56
61
 
@@ -85,6 +90,12 @@ module Algolia
85
90
  if attributes.key?(:sort_remaining_by)
86
91
  self.sort_remaining_by = attributes[:sort_remaining_by]
87
92
  end
93
+
94
+ if attributes.key?(:hide)
95
+ if (value = attributes[:hide]).is_a?(Array)
96
+ self.hide = value
97
+ end
98
+ end
88
99
  end
89
100
 
90
101
  # Checks equality by comparing each attribute.
@@ -94,7 +105,8 @@ module Algolia
94
105
 
95
106
  self.class == other.class &&
96
107
  order == other.order &&
97
- sort_remaining_by == other.sort_remaining_by
108
+ sort_remaining_by == other.sort_remaining_by &&
109
+ hide == other.hide
98
110
  end
99
111
 
100
112
  # @see the `==` method
@@ -106,7 +118,7 @@ module Algolia
106
118
  # Calculates hash code according to all attributes.
107
119
  # @return [Integer] Hash code
108
120
  def hash
109
- [order, sort_remaining_by].hash
121
+ [order, sort_remaining_by, hide].hash
110
122
  end
111
123
 
112
124
  # Builds the object from hash
@@ -1,5 +1,5 @@
1
1
  # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  module Algolia
4
- VERSION = '3.0.0.beta.5'.freeze
4
+ VERSION = '3.0.0.beta.7'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta.5
4
+ version: 3.0.0.beta.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -114,13 +114,11 @@ extra_rdoc_files: []
114
114
  files:
115
115
  - ".github/workflows/release.yml"
116
116
  - ".gitignore"
117
- - ".openapi-generator-ignore"
118
- - ".openapi-generator/FILES"
119
- - ".openapi-generator/VERSION"
120
117
  - ".rubocop.yml"
121
118
  - CHANGELOG.md
122
119
  - Gemfile
123
120
  - Gemfile.lock
121
+ - LICENSE
124
122
  - README.md
125
123
  - Rakefile
126
124
  - algolia.gemspec
@@ -409,6 +407,9 @@ files:
409
407
  - lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb
410
408
  - lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb
411
409
  - lib/algolia/models/query-suggestions/base_response.rb
410
+ - lib/algolia/models/query-suggestions/configuration.rb
411
+ - lib/algolia/models/query-suggestions/configuration_response.rb
412
+ - lib/algolia/models/query-suggestions/configuration_with_index.rb
412
413
  - lib/algolia/models/query-suggestions/error_base.rb
413
414
  - lib/algolia/models/query-suggestions/facet.rb
414
415
  - lib/algolia/models/query-suggestions/get_config_status200_response.rb
@@ -1,11 +0,0 @@
1
- lib/algolia/api/usage_client.rb
2
- lib/algolia/models/usage/error_base.rb
3
- lib/algolia/models/usage/get_usage200_response.rb
4
- lib/algolia/models/usage/get_usage200_response_statistics_inner.rb
5
- lib/algolia/models/usage/get_usage400_response.rb
6
- lib/algolia/models/usage/get_usage400_response_error.rb
7
- lib/algolia/models/usage/get_usage400_response_error_errors_inner.rb
8
- lib/algolia/models/usage/granularity.rb
9
- lib/algolia/models/usage/statistic.rb
10
- lib/algolia/models/usage/statistic_value.rb
11
- lib/algolia/version.rb
@@ -1 +0,0 @@
1
- 7.6.0
@@ -1,23 +0,0 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md