algolia 3.20.0 → 3.21.1
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 +9 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +2 -2
- data/lib/algolia/models/abtesting/currency.rb +14 -4
- data/lib/algolia/models/ingestion/run_source_payload.rb +3 -3
- data/lib/algolia/models/recommend/time_range.rb +0 -4
- data/lib/algolia/models/search/time_range.rb +0 -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: 5a5e39d35817a8422093311ebd458f87bba18346808a138a8b45ca3ca86917c1
|
4
|
+
data.tar.gz: 5407640c35307096179c4b3ff1c5875bd8d62b19d2d64fb51ae250fd6be8046c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a107416244b5e4cac43ad07c3f6605f31ceab1c8bec776e373ad760a189cd5eb463708b6500b76cb70d71d4bcde74af46f2a0d0bf244231784d2c0c5b01f351
|
7
|
+
data.tar.gz: 11e88b59830fd81a37d7b8a2e0f832b85824c792e5539e6877927c66eea86184e87f3351c3ca09bdd3bb5d90acbda29f7e5c9edb8c0211610b2780c69a4ef87b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [3.21.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.21.0...3.21.1)
|
2
|
+
|
3
|
+
- [4c9416a9fe](https://github.com/algolia/api-clients-automation/commit/4c9416a9fe) fix(specs): update sourceRun docs ([#5057](https://github.com/algolia/api-clients-automation/pull/5057)) by [@DevinCodes](https://github.com/DevinCodes/)
|
4
|
+
- [754efceb80](https://github.com/algolia/api-clients-automation/commit/754efceb80) fix(specs): allow one sided rule validity ([#5060](https://github.com/algolia/api-clients-automation/pull/5060)) by [@millotp](https://github.com/millotp/)
|
5
|
+
|
6
|
+
## [3.21.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.20.0...3.21.0)
|
7
|
+
|
8
|
+
- [791a0c045d](https://github.com/algolia/api-clients-automation/commit/791a0c045d) feat(specs): abtesting winsorizedAmount ([#5053](https://github.com/algolia/api-clients-automation/pull/5053)) by [@cdhawke](https://github.com/cdhawke/)
|
9
|
+
|
1
10
|
## [3.20.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.19.0...3.20.0)
|
2
11
|
|
3
12
|
- [a2ebbf496c](https://github.com/algolia/api-clients-automation/commit/a2ebbf496c) feat(clients): add `replaceAllObjectsWithTransformation` ([#5008](https://github.com/algolia/api-clients-automation/pull/5008)) by [@shortcuts](https://github.com/shortcuts/)
|
data/Gemfile.lock
CHANGED
@@ -2265,7 +2265,7 @@ module Algolia
|
|
2265
2265
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::WatchResponse")
|
2266
2266
|
end
|
2267
2267
|
|
2268
|
-
# Runs all tasks linked to a source, only available for Shopify sources.
|
2268
|
+
# Runs all tasks linked to a source, only available for Shopify, BigCommerce and commercetools sources. Creates one run per task.
|
2269
2269
|
#
|
2270
2270
|
# Required API Key ACLs:
|
2271
2271
|
# - addObject
|
@@ -2300,7 +2300,7 @@ module Algolia
|
|
2300
2300
|
@api_client.call_api(:POST, path, new_options)
|
2301
2301
|
end
|
2302
2302
|
|
2303
|
-
# Runs all tasks linked to a source, only available for Shopify sources.
|
2303
|
+
# Runs all tasks linked to a source, only available for Shopify, BigCommerce and commercetools sources. Creates one run per task.
|
2304
2304
|
#
|
2305
2305
|
# Required API Key ACLs:
|
2306
2306
|
# - addObject
|
@@ -20,13 +20,17 @@ module Algolia
|
|
20
20
|
# Standard deviation for this currency.
|
21
21
|
attr_accessor :standard_deviation
|
22
22
|
|
23
|
+
# The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
|
24
|
+
attr_accessor :winsorized_amount
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:currency => :currency,
|
27
30
|
:revenue => :revenue,
|
28
31
|
:mean => :mean,
|
29
|
-
:standard_deviation => :standardDeviation
|
32
|
+
:standard_deviation => :standardDeviation,
|
33
|
+
:winsorized_amount => :winsorizedAmount
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -36,7 +40,8 @@ module Algolia
|
|
36
40
|
:currency => :"String",
|
37
41
|
:revenue => :"Float",
|
38
42
|
:mean => :"Float",
|
39
|
-
:standard_deviation => :"Float"
|
43
|
+
:standard_deviation => :"Float",
|
44
|
+
:winsorized_amount => :"Float"
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -82,6 +87,10 @@ module Algolia
|
|
82
87
|
if attributes.key?(:standard_deviation)
|
83
88
|
self.standard_deviation = attributes[:standard_deviation]
|
84
89
|
end
|
90
|
+
|
91
|
+
if attributes.key?(:winsorized_amount)
|
92
|
+
self.winsorized_amount = attributes[:winsorized_amount]
|
93
|
+
end
|
85
94
|
end
|
86
95
|
|
87
96
|
# Checks equality by comparing each attribute.
|
@@ -92,7 +101,8 @@ module Algolia
|
|
92
101
|
currency == other.currency &&
|
93
102
|
revenue == other.revenue &&
|
94
103
|
mean == other.mean &&
|
95
|
-
standard_deviation == other.standard_deviation
|
104
|
+
standard_deviation == other.standard_deviation &&
|
105
|
+
winsorized_amount == other.winsorized_amount
|
96
106
|
end
|
97
107
|
|
98
108
|
# @see the `==` method
|
@@ -104,7 +114,7 @@ module Algolia
|
|
104
114
|
# Calculates hash code according to all attributes.
|
105
115
|
# @return [Integer] Hash code
|
106
116
|
def hash
|
107
|
-
[currency, revenue, mean, standard_deviation].hash
|
117
|
+
[currency, revenue, mean, standard_deviation, winsorized_amount].hash
|
108
118
|
end
|
109
119
|
|
110
120
|
# Builds the object from hash
|
@@ -8,13 +8,13 @@ require "time"
|
|
8
8
|
module Algolia
|
9
9
|
module Ingestion
|
10
10
|
class RunSourcePayload
|
11
|
-
# List of index names to include in
|
11
|
+
# List of index names to include in reindex/update.
|
12
12
|
attr_accessor :index_to_include
|
13
13
|
|
14
|
-
# List of index names to exclude in
|
14
|
+
# List of index names to exclude in reindex/update.
|
15
15
|
attr_accessor :index_to_exclude
|
16
16
|
|
17
|
-
# List of
|
17
|
+
# List of entityIDs to update.
|
18
18
|
attr_accessor :entity_ids
|
19
19
|
|
20
20
|
attr_accessor :entity_type
|
data/lib/algolia/version.rb
CHANGED