algolia 3.28.1 → 3.29.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a9a8d49f4f5bc3ae8b75a1c9470c8c6a4b6f1af6e3c3609e166aa2835af5813
4
- data.tar.gz: 382f6cdab4882f0c945134500e700f6a92ee4adf12845b780d0ee56fe9f575a5
3
+ metadata.gz: bcde7ae71c32fa6e073950147008629bff66d7ecbf6b12a444eb77940b2554ee
4
+ data.tar.gz: f56588ae532e018f7a7b98ce88cef47b68d99eef0c5fe1652eca50823ac36d1a
5
5
  SHA512:
6
- metadata.gz: fad587a7862d83615860d0abbfb1f64b253bb1f90648d7568c3e48fe69a9be5f9c670f115b58534a787c763d9f16719fbbedc863f2414271ed0194f18c71ef08
7
- data.tar.gz: 103375b059468d554ef7578fe8f01eb240fb5e1eee585c914a3dde2f52243e2995d31f36adebedfe313e4a0e8ae30bec25568a090e9b16a1e0f02abdb7123d6b
6
+ metadata.gz: 1d1a35d5c6b0b0d0496ea9602fe3d7b8b7d451bfbb01c76403dbb8247910d99e7080ab5e4d0df11b20c38a5a9fbf8215d3669ba8a1a935c9ba9e807ed02e1daa
7
+ data.tar.gz: '0812ca5adb24357e0dfa5d48be4ef7f5e206b3ecd105bba4dd2c1cb8cc456b7b346677f793b0e8cef4e2defacf1ba949b4dc32dc473ef7a5860c997c56a540c1'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [3.29.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.28.1...3.29.0)
2
+
3
+ - [7f9de7cd9](https://github.com/algolia/api-clients-automation/commit/7f9de7cd9) fix(specs): ingestion small fix + added source input descriptions ([#5515](https://github.com/algolia/api-clients-automation/pull/5515)) by [@sbellone](https://github.com/sbellone/)
4
+ - [7287faaa7](https://github.com/algolia/api-clients-automation/commit/7287faaa7) feat(specs): add `facets` query parameter available at run time ([#5486](https://github.com/algolia/api-clients-automation/pull/5486)) by [@ClaraMuller](https://github.com/ClaraMuller/)
5
+
1
6
  ## [3.28.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.28.0...3.28.1)
2
7
 
3
8
  - [9a92b3269](https://github.com/algolia/api-clients-automation/commit/9a92b3269) chore(deps): dependencies 2025-10-13 ([#5453](https://github.com/algolia/api-clients-automation/pull/5453)) by [@algolia-bot](https://github.com/algolia-bot/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.28.1)
4
+ algolia (3.29.0)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -25,7 +25,7 @@ module Algolia
25
25
  # Attribute type mapping.
26
26
  def self.types_mapping
27
27
  {
28
- :facets => :"Facets",
28
+ :facets => :"IndexSettingsFacets",
29
29
  :values => :"Hash<String, Value>"
30
30
  }
31
31
  end
@@ -8,7 +8,7 @@ require "time"
8
8
  module Algolia
9
9
  module Composition
10
10
  # Order of facet names.
11
- class Facets
11
+ class IndexSettingsFacets
12
12
  # Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
13
13
  attr_accessor :order
14
14
 
@@ -37,7 +37,10 @@ module Algolia
37
37
  # @param [Hash] attributes Model attributes in the form of hash
38
38
  def initialize(attributes = {})
39
39
  if (!attributes.is_a?(Hash))
40
- raise ArgumentError, "The input argument (attributes) must be a hash in `Algolia::Facets` initialize method"
40
+ raise(
41
+ ArgumentError,
42
+ "The input argument (attributes) must be a hash in `Algolia::IndexSettingsFacets` initialize method"
43
+ )
41
44
  end
42
45
 
43
46
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -45,7 +48,7 @@ module Algolia
45
48
  if (!self.class.attribute_map.key?(k.to_sym))
46
49
  raise(
47
50
  ArgumentError,
48
- "`#{k}` is not a valid attribute in `Algolia::Facets`. Please check the name to make sure it's valid. List of attributes: " +
51
+ "`#{k}` is not a valid attribute in `Algolia::IndexSettingsFacets`. Please check the name to make sure it's valid. List of attributes: " +
49
52
  self.class.attribute_map.keys.inspect
50
53
  )
51
54
  end
@@ -23,6 +23,9 @@ module Algolia
23
23
  # Relevancy threshold below which less relevant results aren't included in the results You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
24
24
  attr_accessor :relevancy_strictness
25
25
 
26
+ # Facets for which to retrieve facet values that match the search criteria and the number of matching facet values To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
27
+ attr_accessor :facets
28
+
26
29
  attr_accessor :facet_filters
27
30
 
28
31
  attr_accessor :optional_filters
@@ -91,6 +94,7 @@ module Algolia
91
94
  :page => :page,
92
95
  :get_ranking_info => :getRankingInfo,
93
96
  :relevancy_strictness => :relevancyStrictness,
97
+ :facets => :facets,
94
98
  :facet_filters => :facetFilters,
95
99
  :optional_filters => :optionalFilters,
96
100
  :numeric_filters => :numericFilters,
@@ -124,6 +128,7 @@ module Algolia
124
128
  :page => :"Integer",
125
129
  :get_ranking_info => :"Boolean",
126
130
  :relevancy_strictness => :"Integer",
131
+ :facets => :"Array<String>",
127
132
  :facet_filters => :"FacetFilters",
128
133
  :optional_filters => :"OptionalFilters",
129
134
  :numeric_filters => :"NumericFilters",
@@ -198,6 +203,12 @@ module Algolia
198
203
  self.relevancy_strictness = attributes[:relevancy_strictness]
199
204
  end
200
205
 
206
+ if attributes.key?(:facets)
207
+ if (value = attributes[:facets]).is_a?(Array)
208
+ self.facets = value
209
+ end
210
+ end
211
+
201
212
  if attributes.key?(:facet_filters)
202
213
  self.facet_filters = attributes[:facet_filters]
203
214
  end
@@ -309,6 +320,7 @@ module Algolia
309
320
  page == other.page &&
310
321
  get_ranking_info == other.get_ranking_info &&
311
322
  relevancy_strictness == other.relevancy_strictness &&
323
+ facets == other.facets &&
312
324
  facet_filters == other.facet_filters &&
313
325
  optional_filters == other.optional_filters &&
314
326
  numeric_filters == other.numeric_filters &&
@@ -348,6 +360,7 @@ module Algolia
348
360
  page,
349
361
  get_ranking_info,
350
362
  relevancy_strictness,
363
+ facets,
351
364
  facet_filters,
352
365
  optional_filters,
353
366
  numeric_filters,
@@ -14,8 +14,6 @@ module Algolia
14
14
  # Descriptive name for the resource.
15
15
  attr_accessor :name
16
16
 
17
- attr_accessor :platform
18
-
19
17
  attr_accessor :input
20
18
 
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -23,7 +21,6 @@ module Algolia
23
21
  {
24
22
  :type => :type,
25
23
  :name => :name,
26
- :platform => :platform,
27
24
  :input => :input
28
25
  }
29
26
  end
@@ -33,7 +30,6 @@ module Algolia
33
30
  {
34
31
  :type => :"AuthenticationType",
35
32
  :name => :"String",
36
- :platform => :"Platform",
37
33
  :input => :"AuthInputPartial"
38
34
  }
39
35
  end
@@ -41,9 +37,7 @@ module Algolia
41
37
  # List of attributes with nullable: true
42
38
  def self.openapi_nullable
43
39
  Set.new(
44
- [
45
- :platform
46
- ]
40
+ []
47
41
  )
48
42
  end
49
43
 
@@ -78,10 +72,6 @@ module Algolia
78
72
  self.name = attributes[:name]
79
73
  end
80
74
 
81
- if attributes.key?(:platform)
82
- self.platform = attributes[:platform]
83
- end
84
-
85
75
  if attributes.key?(:input)
86
76
  self.input = attributes[:input]
87
77
  end
@@ -94,7 +84,6 @@ module Algolia
94
84
  self.class == other.class &&
95
85
  type == other.type &&
96
86
  name == other.name &&
97
- platform == other.platform &&
98
87
  input == other.input
99
88
  end
100
89
 
@@ -107,7 +96,7 @@ module Algolia
107
96
  # Calculates hash code according to all attributes.
108
97
  # @return [Integer] Hash code
109
98
  def hash
110
- [type, name, platform, input].hash
99
+ [type, name, input].hash
111
100
  end
112
101
 
113
102
  # Builds the object from hash
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `bigcommerce` source.
10
11
  class SourceBigCommerce
11
12
  # Store hash identifying your BigCommerce store.
12
13
  attr_accessor :store_hash
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `bigquery` source.
10
11
  class SourceBigQuery
11
12
  # Project ID of the BigQuery source.
12
13
  attr_accessor :project_id
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `commercetools` source.
10
11
  class SourceCommercetools
11
12
  attr_accessor :store_keys
12
13
 
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `csv` source.
10
11
  class SourceCSV
11
12
  # URL of the file.
12
13
  attr_accessor :url
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `docker` source.
10
11
  class SourceDocker
11
12
  # Name of the connector.
12
13
  attr_accessor :image
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `ga4BigqueryExport` source.
10
11
  class SourceGA4BigQueryExport
11
12
  # GCP project ID that the BigQuery export writes to.
12
13
  attr_accessor :project_id
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `json` source.
10
11
  class SourceJSON
11
12
  # URL of the file.
12
13
  attr_accessor :url
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `commercetools` source.
10
11
  class SourceUpdateCommercetools
11
12
  attr_accessor :store_keys
12
13
 
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `docker` source.
10
11
  class SourceUpdateDocker
11
12
  # Configuration of the spec.
12
13
  attr_accessor :configuration
@@ -7,6 +7,7 @@ require "time"
7
7
 
8
8
  module Algolia
9
9
  module Ingestion
10
+ # Specific configuration attributes of a `shopify` source.
10
11
  class SourceUpdateShopify
11
12
  # Feature flags for the Shopify source.
12
13
  attr_accessor :feature_flags
@@ -3,5 +3,5 @@
3
3
  # 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.
4
4
 
5
5
  module Algolia
6
- VERSION = "3.28.1"
6
+ VERSION = "3.29.0"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.28.1
4
+ version: 3.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support
@@ -301,7 +301,6 @@ files:
301
301
  - lib/algolia/models/composition/facet_hits.rb
302
302
  - lib/algolia/models/composition/facet_ordering.rb
303
303
  - lib/algolia/models/composition/facet_stats.rb
304
- - lib/algolia/models/composition/facets.rb
305
304
  - lib/algolia/models/composition/get_task_response.rb
306
305
  - lib/algolia/models/composition/highlight_result.rb
307
306
  - lib/algolia/models/composition/highlight_result_option.rb
@@ -309,6 +308,7 @@ files:
309
308
  - lib/algolia/models/composition/hit_metadata.rb
310
309
  - lib/algolia/models/composition/hit_ranking_info.rb
311
310
  - lib/algolia/models/composition/ignore_plurals.rb
311
+ - lib/algolia/models/composition/index_settings_facets.rb
312
312
  - lib/algolia/models/composition/injected_item.rb
313
313
  - lib/algolia/models/composition/injected_item_hits_metadata.rb
314
314
  - lib/algolia/models/composition/injected_item_metadata.rb