algolia 3.18.0 → 3.19.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 +6 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +12 -3
- data/lib/algolia/models/composition/search_results_item.rb +0 -2
- data/lib/algolia/models/ingestion/transformation_create.rb +0 -4
- data/lib/algolia/models/ingestion/transformation_try.rb +19 -3
- data/lib/algolia/models/recommend/recommendations_results.rb +0 -2
- data/lib/algolia/models/search/browse_response.rb +0 -2
- data/lib/algolia/models/search/search_response.rb +0 -2
- 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: 1dc1d4b4b89f71b73d4977ac3fe520bb3685edf11ffe1ee95bca8374e2e1134a
|
4
|
+
data.tar.gz: 5b4208660bc7c81beea899cb8cee45e789d8b17053e66e53e620e5d2a24e67d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92986647516aaa6d955704ef912d411e23b37976a988cf8cf672d1f72052e63e5ff6df870e655bff789f1d48fe8a673192468b277c65c1f8e526ba8ecf1aa6d
|
7
|
+
data.tar.gz: 967804977eba434d02da15689376bb88883728fbe835d0824eec79843c9cb4cf2aad8d8c250964d2fd7878a95f804cbe86c08edc943d1444076712ada010a4fa
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [3.19.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.18.0...3.19.0)
|
2
|
+
|
3
|
+
- [6031284e24](https://github.com/algolia/api-clients-automation/commit/6031284e24) feat(specs): update try transformation specs for no-code ([#4974](https://github.com/algolia/api-clients-automation/pull/4974)) by [@mehmetaligok](https://github.com/mehmetaligok/)
|
4
|
+
- [2561c945f7](https://github.com/algolia/api-clients-automation/commit/2561c945f7) fix(clients): processingTimeMS should be optional ([#5004](https://github.com/algolia/api-clients-automation/pull/5004)) by [@Fluf22](https://github.com/Fluf22/)
|
5
|
+
- [973cc0c07e](https://github.com/algolia/api-clients-automation/commit/973cc0c07e) feat(specs): add new ingestion property for push ([#5007](https://github.com/algolia/api-clients-automation/pull/5007)) by [@shortcuts](https://github.com/shortcuts/)
|
6
|
+
|
1
7
|
## [3.18.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.17.0...3.18.0)
|
2
8
|
|
3
9
|
- [835daccb48](https://github.com/algolia/api-clients-automation/commit/835daccb48) feat(specs): add with transformation helpers ([#4931](https://github.com/algolia/api-clients-automation/pull/4931)) by [@shortcuts](https://github.com/shortcuts/)
|
data/Gemfile.lock
CHANGED
@@ -2147,9 +2147,16 @@ module Algolia
|
|
2147
2147
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2148
2148
|
# @param push_task_payload [PushTaskPayload] (required)
|
2149
2149
|
# @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
|
2150
|
+
# @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
|
2150
2151
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2151
2152
|
# @return [Http::Response] the response
|
2152
|
-
def push_with_http_info(
|
2153
|
+
def push_with_http_info(
|
2154
|
+
index_name,
|
2155
|
+
push_task_payload,
|
2156
|
+
watch = nil,
|
2157
|
+
reference_index_name = nil,
|
2158
|
+
request_options = {}
|
2159
|
+
)
|
2153
2160
|
# verify the required parameter 'index_name' is set
|
2154
2161
|
if @api_client.config.client_side_validation && index_name.nil?
|
2155
2162
|
raise ArgumentError, "Parameter `index_name` is required when calling `push`."
|
@@ -2162,6 +2169,7 @@ module Algolia
|
|
2162
2169
|
path = "/1/push/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
2163
2170
|
query_params = {}
|
2164
2171
|
query_params[:watch] = watch unless watch.nil?
|
2172
|
+
query_params[:referenceIndexName] = reference_index_name unless reference_index_name.nil?
|
2165
2173
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2166
2174
|
header_params = {}
|
2167
2175
|
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
@@ -2190,10 +2198,11 @@ module Algolia
|
|
2190
2198
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2191
2199
|
# @param push_task_payload [PushTaskPayload] (required)
|
2192
2200
|
# @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
|
2201
|
+
# @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
|
2193
2202
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2194
2203
|
# @return [WatchResponse]
|
2195
|
-
def push(index_name, push_task_payload, watch = nil, request_options = {})
|
2196
|
-
response = push_with_http_info(index_name, push_task_payload, watch, request_options)
|
2204
|
+
def push(index_name, push_task_payload, watch = nil, reference_index_name = nil, request_options = {})
|
2205
|
+
response = push_with_http_info(index_name, push_task_payload, watch, reference_index_name, request_options)
|
2197
2206
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::WatchResponse")
|
2198
2207
|
end
|
2199
2208
|
|
@@ -91,14 +91,10 @@ module Algolia
|
|
91
91
|
|
92
92
|
if attributes.key?(:type)
|
93
93
|
self.type = attributes[:type]
|
94
|
-
else
|
95
|
-
self.type = nil
|
96
94
|
end
|
97
95
|
|
98
96
|
if attributes.key?(:input)
|
99
97
|
self.input = attributes[:input]
|
100
|
-
else
|
101
|
-
self.input = nil
|
102
98
|
end
|
103
99
|
|
104
100
|
if attributes.key?(:description)
|
@@ -11,6 +11,10 @@ module Algolia
|
|
11
11
|
# It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
|
12
12
|
attr_accessor :code
|
13
13
|
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
attr_accessor :input
|
17
|
+
|
14
18
|
# The record to apply the given code to.
|
15
19
|
attr_accessor :sample_record
|
16
20
|
|
@@ -20,6 +24,8 @@ module Algolia
|
|
20
24
|
def self.attribute_map
|
21
25
|
{
|
22
26
|
:code => :code,
|
27
|
+
:type => :type,
|
28
|
+
:input => :input,
|
23
29
|
:sample_record => :sampleRecord,
|
24
30
|
:authentications => :authentications
|
25
31
|
}
|
@@ -29,6 +35,8 @@ module Algolia
|
|
29
35
|
def self.types_mapping
|
30
36
|
{
|
31
37
|
:code => :"String",
|
38
|
+
:type => :"TransformationType",
|
39
|
+
:input => :"TransformationInput",
|
32
40
|
:sample_record => :"Object",
|
33
41
|
:authentications => :"Array<AuthenticationCreate>"
|
34
42
|
}
|
@@ -66,8 +74,14 @@ module Algolia
|
|
66
74
|
|
67
75
|
if attributes.key?(:code)
|
68
76
|
self.code = attributes[:code]
|
69
|
-
|
70
|
-
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:type)
|
80
|
+
self.type = attributes[:type]
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:input)
|
84
|
+
self.input = attributes[:input]
|
71
85
|
end
|
72
86
|
|
73
87
|
if attributes.key?(:sample_record)
|
@@ -89,6 +103,8 @@ module Algolia
|
|
89
103
|
return true if self.equal?(other)
|
90
104
|
self.class == other.class &&
|
91
105
|
code == other.code &&
|
106
|
+
type == other.type &&
|
107
|
+
input == other.input &&
|
92
108
|
sample_record == other.sample_record &&
|
93
109
|
authentications == other.authentications
|
94
110
|
end
|
@@ -102,7 +118,7 @@ module Algolia
|
|
102
118
|
# Calculates hash code according to all attributes.
|
103
119
|
# @return [Integer] Hash code
|
104
120
|
def hash
|
105
|
-
[code, sample_record, authentications].hash
|
121
|
+
[code, type, input, sample_record, authentications].hash
|
106
122
|
end
|
107
123
|
|
108
124
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED