algolia 3.31.0 → 3.32.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 +7 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/composition_client.rb +2 -2
- data/lib/algolia/models/ingestion/run_reason_code.rb +4 -2
- data/lib/algolia/models/ingestion/run_status.rb +1 -2
- data/lib/algolia/models/ingestion/source_commercetools.rb +20 -1
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +19 -1
- data/lib/algolia/models/search/rule.rb +24 -4
- data/lib/algolia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c255d57319b4a89c7f379c1dd4d6184e24bc0322065bc1acfb1bf230a99ce4b
|
|
4
|
+
data.tar.gz: 2a8e2644a06777f0b489175007eec0a6df91bdaf5f5d2def88f3d7d5eab7321b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fee27aa2d004cb4ea2aefe6c963acf90f23a57cfcb1c804e02676f6183154f61b86d0e3ffb8526bc05f624237db6cdc1a7121d3349f852afe605ca2aa3bf86f
|
|
7
|
+
data.tar.gz: 337c9aeafac084f6a76deb8546d5754b4ac3bec073a873adc6e69f95231ffeae8652610d422fc9ae28bd7e7da3e3e550e04ca8357be1dabf50839a5b97c1cc5b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.32.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.31.0...3.32.0)
|
|
2
|
+
|
|
3
|
+
- [7d189e024](https://github.com/algolia/api-clients-automation/commit/7d189e024) feat(specs): add useImagesObjects property in commercetools source input ([#5586](https://github.com/algolia/api-clients-automation/pull/5586)) by [@sbellone](https://github.com/sbellone/)
|
|
4
|
+
- [ee5542a32](https://github.com/algolia/api-clients-automation/commit/ee5542a32) fix(specs): Add title values to key oneOfs ([#5581](https://github.com/algolia/api-clients-automation/pull/5581)) by [@gazconroy](https://github.com/gazconroy/)
|
|
5
|
+
- [354d28b7c](https://github.com/algolia/api-clients-automation/commit/354d28b7c) fix(specs): update run reason in observability ([#5623](https://github.com/algolia/api-clients-automation/pull/5623)) by [@millotp](https://github.com/millotp/)
|
|
6
|
+
- [ae9ac597f](https://github.com/algolia/api-clients-automation/commit/ae9ac597f) fix(specs): add tags and scope to rules ([#5625](https://github.com/algolia/api-clients-automation/pull/5625)) by [@millotp](https://github.com/millotp/)
|
|
7
|
+
|
|
1
8
|
## [3.31.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.30.0...3.31.0)
|
|
2
9
|
|
|
3
10
|
- [ecfea56dc](https://github.com/algolia/api-clients-automation/commit/ecfea56dc) feat(clients): remove schedule capabilities ([#5552](https://github.com/algolia/api-clients-automation/pull/5552)) by [@cdhawke](https://github.com/cdhawke/)
|
data/Gemfile.lock
CHANGED
|
@@ -595,7 +595,7 @@ module Algolia
|
|
|
595
595
|
)
|
|
596
596
|
end
|
|
597
597
|
|
|
598
|
-
#
|
|
598
|
+
# Update and insert a composition in the current Algolia application.
|
|
599
599
|
#
|
|
600
600
|
# Required API Key ACLs:
|
|
601
601
|
# - editSettings
|
|
@@ -635,7 +635,7 @@ module Algolia
|
|
|
635
635
|
@api_client.call_api(:PUT, path, new_options)
|
|
636
636
|
end
|
|
637
637
|
|
|
638
|
-
#
|
|
638
|
+
# Update and insert a composition in the current Algolia application.
|
|
639
639
|
#
|
|
640
640
|
# Required API Key ACLs:
|
|
641
641
|
# - editSettings
|
|
@@ -9,15 +9,17 @@ module Algolia
|
|
|
9
9
|
module Ingestion
|
|
10
10
|
class RunReasonCode
|
|
11
11
|
INTERNAL = "internal".freeze
|
|
12
|
+
CANCELLED = "cancelled".freeze
|
|
12
13
|
CRITICAL = "critical".freeze
|
|
13
14
|
NO_EVENTS = "no_events".freeze
|
|
14
15
|
TOO_MANY_ERRORS = "too_many_errors".freeze
|
|
16
|
+
LACKING_EVENTS = "lacking_events".freeze
|
|
15
17
|
OK = "ok".freeze
|
|
16
|
-
DISCARDED = "discarded".freeze
|
|
17
18
|
BLOCKING = "blocking".freeze
|
|
19
|
+
IDLE = "idle".freeze
|
|
18
20
|
|
|
19
21
|
def self.all_vars
|
|
20
|
-
@all_vars ||= [INTERNAL, CRITICAL, NO_EVENTS, TOO_MANY_ERRORS, OK,
|
|
22
|
+
@all_vars ||= [INTERNAL, CANCELLED, CRITICAL, NO_EVENTS, TOO_MANY_ERRORS, LACKING_EVENTS, OK, BLOCKING, IDLE].freeze
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
# Builds the enum from string
|
|
@@ -10,12 +10,11 @@ module Algolia
|
|
|
10
10
|
class RunStatus
|
|
11
11
|
CREATED = "created".freeze
|
|
12
12
|
STARTED = "started".freeze
|
|
13
|
-
IDLED = "idled".freeze
|
|
14
13
|
FINISHED = "finished".freeze
|
|
15
14
|
SKIPPED = "skipped".freeze
|
|
16
15
|
|
|
17
16
|
def self.all_vars
|
|
18
|
-
@all_vars ||= [CREATED, STARTED,
|
|
17
|
+
@all_vars ||= [CREATED, STARTED, FINISHED, SKIPPED].freeze
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
# Builds the enum from string
|
|
@@ -24,6 +24,9 @@ module Algolia
|
|
|
24
24
|
# Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
25
25
|
attr_accessor :product_query_predicate
|
|
26
26
|
|
|
27
|
+
# When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
28
|
+
attr_accessor :use_images_objects
|
|
29
|
+
|
|
27
30
|
attr_accessor :custom_fields
|
|
28
31
|
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -35,6 +38,7 @@ module Algolia
|
|
|
35
38
|
:project_key => :projectKey,
|
|
36
39
|
:fallback_is_in_stock_value => :fallbackIsInStockValue,
|
|
37
40
|
:product_query_predicate => :productQueryPredicate,
|
|
41
|
+
:use_images_objects => :useImagesObjects,
|
|
38
42
|
:custom_fields => :customFields
|
|
39
43
|
}
|
|
40
44
|
end
|
|
@@ -55,6 +59,7 @@ module Algolia
|
|
|
55
59
|
:project_key => :"String",
|
|
56
60
|
:fallback_is_in_stock_value => :"Boolean",
|
|
57
61
|
:product_query_predicate => :"String",
|
|
62
|
+
:use_images_objects => :"Boolean",
|
|
58
63
|
:custom_fields => :"CommercetoolsCustomFields"
|
|
59
64
|
}
|
|
60
65
|
end
|
|
@@ -121,6 +126,10 @@ module Algolia
|
|
|
121
126
|
self.product_query_predicate = attributes[:product_query_predicate]
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:use_images_objects)
|
|
130
|
+
self.use_images_objects = attributes[:use_images_objects]
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.key?(:custom_fields)
|
|
125
134
|
self.custom_fields = attributes[:custom_fields]
|
|
126
135
|
end
|
|
@@ -137,6 +146,7 @@ module Algolia
|
|
|
137
146
|
project_key == other.project_key &&
|
|
138
147
|
fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
|
|
139
148
|
product_query_predicate == other.product_query_predicate &&
|
|
149
|
+
use_images_objects == other.use_images_objects &&
|
|
140
150
|
custom_fields == other.custom_fields
|
|
141
151
|
end
|
|
142
152
|
|
|
@@ -149,7 +159,16 @@ module Algolia
|
|
|
149
159
|
# Calculates hash code according to all attributes.
|
|
150
160
|
# @return [Integer] Hash code
|
|
151
161
|
def hash
|
|
152
|
-
[
|
|
162
|
+
[
|
|
163
|
+
store_keys,
|
|
164
|
+
locales,
|
|
165
|
+
url,
|
|
166
|
+
project_key,
|
|
167
|
+
fallback_is_in_stock_value,
|
|
168
|
+
product_query_predicate,
|
|
169
|
+
use_images_objects,
|
|
170
|
+
custom_fields
|
|
171
|
+
].hash
|
|
153
172
|
end
|
|
154
173
|
|
|
155
174
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Algolia
|
|
|
22
22
|
# Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
23
23
|
attr_accessor :product_query_predicate
|
|
24
24
|
|
|
25
|
+
# When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
26
|
+
attr_accessor :use_images_objects
|
|
27
|
+
|
|
25
28
|
attr_accessor :custom_fields
|
|
26
29
|
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,6 +35,7 @@ module Algolia
|
|
|
32
35
|
:url => :url,
|
|
33
36
|
:fallback_is_in_stock_value => :fallbackIsInStockValue,
|
|
34
37
|
:product_query_predicate => :productQueryPredicate,
|
|
38
|
+
:use_images_objects => :useImagesObjects,
|
|
35
39
|
:custom_fields => :customFields
|
|
36
40
|
}
|
|
37
41
|
end
|
|
@@ -44,6 +48,7 @@ module Algolia
|
|
|
44
48
|
:url => :"String",
|
|
45
49
|
:fallback_is_in_stock_value => :"Boolean",
|
|
46
50
|
:product_query_predicate => :"String",
|
|
51
|
+
:use_images_objects => :"Boolean",
|
|
47
52
|
:custom_fields => :"CommercetoolsCustomFields"
|
|
48
53
|
}
|
|
49
54
|
end
|
|
@@ -102,6 +107,10 @@ module Algolia
|
|
|
102
107
|
self.product_query_predicate = attributes[:product_query_predicate]
|
|
103
108
|
end
|
|
104
109
|
|
|
110
|
+
if attributes.key?(:use_images_objects)
|
|
111
|
+
self.use_images_objects = attributes[:use_images_objects]
|
|
112
|
+
end
|
|
113
|
+
|
|
105
114
|
if attributes.key?(:custom_fields)
|
|
106
115
|
self.custom_fields = attributes[:custom_fields]
|
|
107
116
|
end
|
|
@@ -117,6 +126,7 @@ module Algolia
|
|
|
117
126
|
url == other.url &&
|
|
118
127
|
fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
|
|
119
128
|
product_query_predicate == other.product_query_predicate &&
|
|
129
|
+
use_images_objects == other.use_images_objects &&
|
|
120
130
|
custom_fields == other.custom_fields
|
|
121
131
|
end
|
|
122
132
|
|
|
@@ -129,7 +139,15 @@ module Algolia
|
|
|
129
139
|
# Calculates hash code according to all attributes.
|
|
130
140
|
# @return [Integer] Hash code
|
|
131
141
|
def hash
|
|
132
|
-
[
|
|
142
|
+
[
|
|
143
|
+
store_keys,
|
|
144
|
+
locales,
|
|
145
|
+
url,
|
|
146
|
+
fallback_is_in_stock_value,
|
|
147
|
+
product_query_predicate,
|
|
148
|
+
use_images_objects,
|
|
149
|
+
custom_fields
|
|
150
|
+
].hash
|
|
133
151
|
end
|
|
134
152
|
|
|
135
153
|
# Builds the object from hash
|
|
@@ -26,6 +26,10 @@ module Algolia
|
|
|
26
26
|
# Time periods when the rule is active.
|
|
27
27
|
attr_accessor :validity
|
|
28
28
|
|
|
29
|
+
attr_accessor :tags
|
|
30
|
+
|
|
31
|
+
attr_accessor :scope
|
|
32
|
+
|
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
34
|
def self.attribute_map
|
|
31
35
|
{
|
|
@@ -34,7 +38,9 @@ module Algolia
|
|
|
34
38
|
:consequence => :consequence,
|
|
35
39
|
:description => :description,
|
|
36
40
|
:enabled => :enabled,
|
|
37
|
-
:validity => :validity
|
|
41
|
+
:validity => :validity,
|
|
42
|
+
:tags => :tags,
|
|
43
|
+
:scope => :scope
|
|
38
44
|
}
|
|
39
45
|
end
|
|
40
46
|
|
|
@@ -46,7 +52,9 @@ module Algolia
|
|
|
46
52
|
:consequence => :"Consequence",
|
|
47
53
|
:description => :"String",
|
|
48
54
|
:enabled => :"Boolean",
|
|
49
|
-
:validity => :"Array<TimeRange>"
|
|
55
|
+
:validity => :"Array<TimeRange>",
|
|
56
|
+
:tags => :"Array<String>",
|
|
57
|
+
:scope => :"String"
|
|
50
58
|
}
|
|
51
59
|
end
|
|
52
60
|
|
|
@@ -108,6 +116,16 @@ module Algolia
|
|
|
108
116
|
self.validity = value
|
|
109
117
|
end
|
|
110
118
|
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:tags)
|
|
121
|
+
if (value = attributes[:tags]).is_a?(Array)
|
|
122
|
+
self.tags = value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:scope)
|
|
127
|
+
self.scope = attributes[:scope]
|
|
128
|
+
end
|
|
111
129
|
end
|
|
112
130
|
|
|
113
131
|
# Checks equality by comparing each attribute.
|
|
@@ -120,7 +138,9 @@ module Algolia
|
|
|
120
138
|
consequence == other.consequence &&
|
|
121
139
|
description == other.description &&
|
|
122
140
|
enabled == other.enabled &&
|
|
123
|
-
validity == other.validity
|
|
141
|
+
validity == other.validity &&
|
|
142
|
+
tags == other.tags &&
|
|
143
|
+
scope == other.scope
|
|
124
144
|
end
|
|
125
145
|
|
|
126
146
|
# @see the `==` method
|
|
@@ -132,7 +152,7 @@ module Algolia
|
|
|
132
152
|
# Calculates hash code according to all attributes.
|
|
133
153
|
# @return [Integer] Hash code
|
|
134
154
|
def hash
|
|
135
|
-
[algolia_object_id, conditions, consequence, description, enabled, validity].hash
|
|
155
|
+
[algolia_object_id, conditions, consequence, description, enabled, validity, tags, scope].hash
|
|
136
156
|
end
|
|
137
157
|
|
|
138
158
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED