algolia 3.14.0 → 3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d20896ef848b1f294d635976bec438dcd5d5d295b73684b572507f2e3bd37155
4
- data.tar.gz: 5e27c47d71e9f264112e814e91f495285d7534a0e1cbeb95429fc92fc9454aa5
3
+ metadata.gz: a49f2b3b754dab6ef3b7bcfa2752a03bae39cd207f881922f2d26bcfd7cad634
4
+ data.tar.gz: f91ee3bb2dda26cda2283e67eb3e66610ceafed88912c00a107931479b9ac0ef
5
5
  SHA512:
6
- metadata.gz: 1232023160daae40b2d071b6c8851e5819d2af7cf5615faa09cf646e52b41ebf31079d6227f1b7f86f949cacd07098b2f3f441c1f92ef47fe8c0a21172905710
7
- data.tar.gz: 72b7b96ed599b63db62d5e185625b5a32a5789c3ca880d64fdfbe1ac09a16f85a05c05a8b2b13ab69a1dd51cf60096af997e5c6a33a3706e2050f57637acfead
6
+ metadata.gz: b7300e4cf06719b2b0536b66382d0b14108e03f826662a8e2fbf970b45c59a6ef19c3ddb5552c9d8a0e3788ae1b9b294ed71890fef1c13022aa60ed8cf7e038d
7
+ data.tar.gz: 60b4a9286ea4133ba44a11311a25c43af0a0506b158b9310a94ce7f045b515e7b9f7df558082d1c8ca22e319ddcd7ee3794c404fffdb2b380fc1138e3b8ad34c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.15.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.14.0...3.15.0)
2
+
3
+ - [c3addb449](https://github.com/algolia/api-clients-automation/commit/c3addb449) feat(specs): add CT Query predicate property ([#4654](https://github.com/algolia/api-clients-automation/pull/4654)) by [@morganleroi](https://github.com/morganleroi/)
4
+
1
5
  ## [3.14.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.13.0...3.14.0)
2
6
 
3
7
  - [26457d0ec8](https://github.com/algolia/api-clients-automation/commit/26457d0ec8) feat(specs): add the owner attributes to ingestion resources ([#4616](https://github.com/algolia/api-clients-automation/pull/4616)) by [@millotp](https://github.com/millotp/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.14.0)
4
+ algolia (3.15.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)
@@ -20,6 +20,9 @@ module Algolia
20
20
  # Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
21
21
  attr_accessor :fallback_is_in_stock_value
22
22
 
23
+ # Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
24
+ attr_accessor :product_query_predicate
25
+
23
26
  attr_accessor :custom_fields
24
27
 
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,6 +33,7 @@ module Algolia
30
33
  :url => :url,
31
34
  :project_key => :projectKey,
32
35
  :fallback_is_in_stock_value => :fallbackIsInStockValue,
36
+ :product_query_predicate => :productQueryPredicate,
33
37
  :custom_fields => :customFields
34
38
  }
35
39
  end
@@ -49,6 +53,7 @@ module Algolia
49
53
  :url => :"String",
50
54
  :project_key => :"String",
51
55
  :fallback_is_in_stock_value => :"Boolean",
56
+ :product_query_predicate => :"String",
52
57
  :custom_fields => :"CommercetoolsCustomFields"
53
58
  }
54
59
  end
@@ -111,6 +116,10 @@ module Algolia
111
116
  self.fallback_is_in_stock_value = attributes[:fallback_is_in_stock_value]
112
117
  end
113
118
 
119
+ if attributes.key?(:product_query_predicate)
120
+ self.product_query_predicate = attributes[:product_query_predicate]
121
+ end
122
+
114
123
  if attributes.key?(:custom_fields)
115
124
  self.custom_fields = attributes[:custom_fields]
116
125
  end
@@ -126,6 +135,7 @@ module Algolia
126
135
  url == other.url &&
127
136
  project_key == other.project_key &&
128
137
  fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
138
+ product_query_predicate == other.product_query_predicate &&
129
139
  custom_fields == other.custom_fields
130
140
  end
131
141
 
@@ -138,7 +148,7 @@ module Algolia
138
148
  # Calculates hash code according to all attributes.
139
149
  # @return [Integer] Hash code
140
150
  def hash
141
- [store_keys, locales, url, project_key, fallback_is_in_stock_value, custom_fields].hash
151
+ [store_keys, locales, url, project_key, fallback_is_in_stock_value, product_query_predicate, custom_fields].hash
142
152
  end
143
153
 
144
154
  # Builds the object from hash
@@ -18,6 +18,9 @@ module Algolia
18
18
  # Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
19
19
  attr_accessor :fallback_is_in_stock_value
20
20
 
21
+ # Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
22
+ attr_accessor :product_query_predicate
23
+
21
24
  attr_accessor :custom_fields
22
25
 
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -27,6 +30,7 @@ module Algolia
27
30
  :locales => :locales,
28
31
  :url => :url,
29
32
  :fallback_is_in_stock_value => :fallbackIsInStockValue,
33
+ :product_query_predicate => :productQueryPredicate,
30
34
  :custom_fields => :customFields
31
35
  }
32
36
  end
@@ -38,6 +42,7 @@ module Algolia
38
42
  :locales => :"Array<String>",
39
43
  :url => :"String",
40
44
  :fallback_is_in_stock_value => :"Boolean",
45
+ :product_query_predicate => :"String",
41
46
  :custom_fields => :"CommercetoolsCustomFields"
42
47
  }
43
48
  end
@@ -92,6 +97,10 @@ module Algolia
92
97
  self.fallback_is_in_stock_value = attributes[:fallback_is_in_stock_value]
93
98
  end
94
99
 
100
+ if attributes.key?(:product_query_predicate)
101
+ self.product_query_predicate = attributes[:product_query_predicate]
102
+ end
103
+
95
104
  if attributes.key?(:custom_fields)
96
105
  self.custom_fields = attributes[:custom_fields]
97
106
  end
@@ -106,6 +115,7 @@ module Algolia
106
115
  locales == other.locales &&
107
116
  url == other.url &&
108
117
  fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
118
+ product_query_predicate == other.product_query_predicate &&
109
119
  custom_fields == other.custom_fields
110
120
  end
111
121
 
@@ -118,7 +128,7 @@ module Algolia
118
128
  # Calculates hash code according to all attributes.
119
129
  # @return [Integer] Hash code
120
130
  def hash
121
- [store_keys, locales, url, fallback_is_in_stock_value, custom_fields].hash
131
+ [store_keys, locales, url, fallback_is_in_stock_value, product_query_predicate, custom_fields].hash
122
132
  end
123
133
 
124
134
  # Builds the object from hash
@@ -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.14.0"
6
+ VERSION = "3.15.0"
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.0
4
+ version: 3.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-24 00:00:00.000000000 Z
10
+ date: 2025-03-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday