algolia 3.0.0.beta.14 → 3.0.0.beta.16
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 +8 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +68 -2
- data/lib/algolia/models/ingestion/transformation.rb +13 -1
- data/lib/algolia/models/ingestion/transformation_create.rb +16 -4
- data/lib/algolia/models/ingestion/transformation_try.rb +15 -4
- data/lib/algolia/models/recommend/highlight_result.rb +1 -0
- data/lib/algolia/models/recommend/snippet_result.rb +1 -0
- data/lib/algolia/models/search/highlight_result.rb +1 -0
- data/lib/algolia/models/search/snippet_result.rb +1 -0
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2168d288b3c9cccca0d1926fc96f335d268c91ebdcea70702710fbcd83dd1ae0
|
4
|
+
data.tar.gz: 826a6c524fe2be4e9ee48ba7b37ea42ac3ffd8652ec9ac6e5c8407d56ec3bfbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f720f425044bc5e12c38684d498b4a16480daa6537f4dda2070ac9227adb9b19822d854254896213cd15690fd85cb0468af63b867b6e719e8aebd73ab0f033e4
|
7
|
+
data.tar.gz: d839249f4f7b8f47f6d0e610db42ac02cf83db06a3fa062dbfee8166bb239aa8bfcf80237df1007b54b0b28690431f4af2818cc10c29fef3655167fa3174da6b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [3.0.0.beta.16](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.15...3.0.0.beta.16)
|
2
|
+
|
3
|
+
- [4c052002e](https://github.com/algolia/api-clients-automation/commit/4c052002e) feat(specs): recursive snippets and highlights result ([#3497](https://github.com/algolia/api-clients-automation/pull/3497)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
|
5
|
+
## [3.0.0.beta.15](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.14...3.0.0.beta.15)
|
6
|
+
|
7
|
+
- [7d2ab99ce](https://github.com/algolia/api-clients-automation/commit/7d2ab99ce) feat(specs): add authentications to ingestion transformations ([#3494](https://github.com/algolia/api-clients-automation/pull/3494)) by [@shortcuts](https://github.com/shortcuts/)
|
8
|
+
|
1
9
|
## [3.0.0.beta.14](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.13...3.0.0.beta.14)
|
2
10
|
|
3
11
|
- [2c6147ee7](https://github.com/algolia/api-clients-automation/commit/2c6147ee7) feat(specs): add generate code endpoint to ingestion specs ([#3489](https://github.com/algolia/api-clients-automation/pull/3489)) by [@shortcuts](https://github.com/shortcuts/)
|
data/Gemfile.lock
CHANGED
@@ -2877,7 +2877,7 @@ module Algolia
|
|
2877
2877
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceWatchResponse")
|
2878
2878
|
end
|
2879
2879
|
|
2880
|
-
# Try a transformation.
|
2880
|
+
# Try a transformation before creating it.
|
2881
2881
|
#
|
2882
2882
|
# Required API Key ACLs:
|
2883
2883
|
# - addObject
|
@@ -2911,7 +2911,7 @@ module Algolia
|
|
2911
2911
|
@api_client.call_api(:POST, path, new_options)
|
2912
2912
|
end
|
2913
2913
|
|
2914
|
-
# Try a transformation.
|
2914
|
+
# Try a transformation before creating it.
|
2915
2915
|
#
|
2916
2916
|
# Required API Key ACLs:
|
2917
2917
|
# - addObject
|
@@ -2928,6 +2928,72 @@ module Algolia
|
|
2928
2928
|
)
|
2929
2929
|
end
|
2930
2930
|
|
2931
|
+
# Try a transformation before updating it.
|
2932
|
+
#
|
2933
|
+
# Required API Key ACLs:
|
2934
|
+
# - addObject
|
2935
|
+
# - deleteIndex
|
2936
|
+
# - editSettings
|
2937
|
+
# @param transformation_id [String] Unique identifier of a transformation. (required)
|
2938
|
+
# @param transformation_try [TransformationTry] (required)
|
2939
|
+
# @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)
|
2940
|
+
# @return [Http::Response] the response
|
2941
|
+
def try_transformation_before_update_with_http_info(transformation_id, transformation_try, request_options = {})
|
2942
|
+
# verify the required parameter 'transformation_id' is set
|
2943
|
+
if @api_client.config.client_side_validation && transformation_id.nil?
|
2944
|
+
raise(
|
2945
|
+
ArgumentError,
|
2946
|
+
"Parameter `transformation_id` is required when calling `try_transformation_before_update`."
|
2947
|
+
)
|
2948
|
+
end
|
2949
|
+
# verify the required parameter 'transformation_try' is set
|
2950
|
+
if @api_client.config.client_side_validation && transformation_try.nil?
|
2951
|
+
raise(
|
2952
|
+
ArgumentError,
|
2953
|
+
"Parameter `transformation_try` is required when calling `try_transformation_before_update`."
|
2954
|
+
)
|
2955
|
+
end
|
2956
|
+
|
2957
|
+
path = "/1/transformations/{transformationID}/try".sub(
|
2958
|
+
"{" + "transformationID" + "}",
|
2959
|
+
Transport.encode_uri(transformation_id.to_s)
|
2960
|
+
)
|
2961
|
+
query_params = {}
|
2962
|
+
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2963
|
+
header_params = {}
|
2964
|
+
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
2965
|
+
|
2966
|
+
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_try)
|
2967
|
+
|
2968
|
+
new_options = request_options.merge(
|
2969
|
+
:operation => :"IngestionClient.try_transformation_before_update",
|
2970
|
+
:header_params => header_params,
|
2971
|
+
:query_params => query_params,
|
2972
|
+
:body => post_body,
|
2973
|
+
:use_read_transporter => false
|
2974
|
+
)
|
2975
|
+
|
2976
|
+
@api_client.call_api(:POST, path, new_options)
|
2977
|
+
end
|
2978
|
+
|
2979
|
+
# Try a transformation before updating it.
|
2980
|
+
#
|
2981
|
+
# Required API Key ACLs:
|
2982
|
+
# - addObject
|
2983
|
+
# - deleteIndex
|
2984
|
+
# - editSettings
|
2985
|
+
# @param transformation_id [String] Unique identifier of a transformation. (required)
|
2986
|
+
# @param transformation_try [TransformationTry] (required)
|
2987
|
+
# @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)
|
2988
|
+
# @return [TransformationTryResponse]
|
2989
|
+
def try_transformation_before_update(transformation_id, transformation_try, request_options = {})
|
2990
|
+
response = try_transformation_before_update_with_http_info(transformation_id, transformation_try, request_options)
|
2991
|
+
@api_client.deserialize(
|
2992
|
+
response.body,
|
2993
|
+
request_options[:debug_return_type] || "Ingestion::TransformationTryResponse"
|
2994
|
+
)
|
2995
|
+
end
|
2996
|
+
|
2931
2997
|
# Updates an authentication resource.
|
2932
2998
|
#
|
2933
2999
|
# Required API Key ACLs:
|
@@ -9,6 +9,9 @@ module Algolia
|
|
9
9
|
# Universally unique identifier (UUID) of a transformation.
|
10
10
|
attr_accessor :transformation_id
|
11
11
|
|
12
|
+
# The authentications associated for the current transformation.
|
13
|
+
attr_accessor :authentication_ids
|
14
|
+
|
12
15
|
# The source code of the transformation.
|
13
16
|
attr_accessor :code
|
14
17
|
|
@@ -28,6 +31,7 @@ module Algolia
|
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:transformation_id => :transformationID,
|
34
|
+
:authentication_ids => :authenticationIDs,
|
31
35
|
:code => :code,
|
32
36
|
:name => :name,
|
33
37
|
:description => :description,
|
@@ -45,6 +49,7 @@ module Algolia
|
|
45
49
|
def self.types_mapping
|
46
50
|
{
|
47
51
|
:transformation_id => :"String",
|
52
|
+
:authentication_ids => :"Array<String>",
|
48
53
|
:code => :"String",
|
49
54
|
:name => :"String",
|
50
55
|
:description => :"String",
|
@@ -89,6 +94,12 @@ module Algolia
|
|
89
94
|
self.transformation_id = nil
|
90
95
|
end
|
91
96
|
|
97
|
+
if attributes.key?(:authentication_ids)
|
98
|
+
if (value = attributes[:authentication_ids]).is_a?(Array)
|
99
|
+
self.authentication_ids = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
92
103
|
if attributes.key?(:code)
|
93
104
|
self.code = attributes[:code]
|
94
105
|
else
|
@@ -122,6 +133,7 @@ module Algolia
|
|
122
133
|
return true if self.equal?(other)
|
123
134
|
self.class == other.class &&
|
124
135
|
transformation_id == other.transformation_id &&
|
136
|
+
authentication_ids == other.authentication_ids &&
|
125
137
|
code == other.code &&
|
126
138
|
name == other.name &&
|
127
139
|
description == other.description &&
|
@@ -138,7 +150,7 @@ module Algolia
|
|
138
150
|
# Calculates hash code according to all attributes.
|
139
151
|
# @return [Integer] Hash code
|
140
152
|
def hash
|
141
|
-
[transformation_id, code, name, description, created_at, updated_at].hash
|
153
|
+
[transformation_id, authentication_ids, code, name, description, created_at, updated_at].hash
|
142
154
|
end
|
143
155
|
|
144
156
|
# Builds the object from hash
|
@@ -16,12 +16,16 @@ module Algolia
|
|
16
16
|
# A descriptive name for your transformation of what it does.
|
17
17
|
attr_accessor :description
|
18
18
|
|
19
|
+
# The authentications associated for the current transformation.
|
20
|
+
attr_accessor :authentication_ids
|
21
|
+
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
25
|
:code => :code,
|
23
26
|
:name => :name,
|
24
|
-
:description => :description
|
27
|
+
:description => :description,
|
28
|
+
:authentication_ids => :authenticationIDs
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -35,7 +39,8 @@ module Algolia
|
|
35
39
|
{
|
36
40
|
:code => :"String",
|
37
41
|
:name => :"String",
|
38
|
-
:description => :"String"
|
42
|
+
:description => :"String",
|
43
|
+
:authentication_ids => :"Array<String>"
|
39
44
|
}
|
40
45
|
end
|
41
46
|
|
@@ -84,6 +89,12 @@ module Algolia
|
|
84
89
|
if attributes.key?(:description)
|
85
90
|
self.description = attributes[:description]
|
86
91
|
end
|
92
|
+
|
93
|
+
if attributes.key?(:authentication_ids)
|
94
|
+
if (value = attributes[:authentication_ids]).is_a?(Array)
|
95
|
+
self.authentication_ids = value
|
96
|
+
end
|
97
|
+
end
|
87
98
|
end
|
88
99
|
|
89
100
|
# Checks equality by comparing each attribute.
|
@@ -93,7 +104,8 @@ module Algolia
|
|
93
104
|
self.class == other.class &&
|
94
105
|
code == other.code &&
|
95
106
|
name == other.name &&
|
96
|
-
description == other.description
|
107
|
+
description == other.description &&
|
108
|
+
authentication_ids == other.authentication_ids
|
97
109
|
end
|
98
110
|
|
99
111
|
# @see the `==` method
|
@@ -105,7 +117,7 @@ module Algolia
|
|
105
117
|
# Calculates hash code according to all attributes.
|
106
118
|
# @return [Integer] Hash code
|
107
119
|
def hash
|
108
|
-
[code, name, description].hash
|
120
|
+
[code, name, description, authentication_ids].hash
|
109
121
|
end
|
110
122
|
|
111
123
|
# Builds the object from hash
|
@@ -12,11 +12,14 @@ module Algolia
|
|
12
12
|
# The record to apply the given code to.
|
13
13
|
attr_accessor :sample_record
|
14
14
|
|
15
|
+
attr_accessor :authentications
|
16
|
+
|
15
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
18
|
def self.attribute_map
|
17
19
|
{
|
18
20
|
:code => :code,
|
19
|
-
:sample_record => :sampleRecord
|
21
|
+
:sample_record => :sampleRecord,
|
22
|
+
:authentications => :authentications
|
20
23
|
}
|
21
24
|
end
|
22
25
|
|
@@ -29,7 +32,8 @@ module Algolia
|
|
29
32
|
def self.types_mapping
|
30
33
|
{
|
31
34
|
:code => :"String",
|
32
|
-
:sample_record => :"Object"
|
35
|
+
:sample_record => :"Object",
|
36
|
+
:authentications => :"Array<AuthenticationCreate>"
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -74,6 +78,12 @@ module Algolia
|
|
74
78
|
else
|
75
79
|
self.sample_record = nil
|
76
80
|
end
|
81
|
+
|
82
|
+
if attributes.key?(:authentications)
|
83
|
+
if (value = attributes[:authentications]).is_a?(Array)
|
84
|
+
self.authentications = value
|
85
|
+
end
|
86
|
+
end
|
77
87
|
end
|
78
88
|
|
79
89
|
# Checks equality by comparing each attribute.
|
@@ -82,7 +92,8 @@ module Algolia
|
|
82
92
|
return true if self.equal?(other)
|
83
93
|
self.class == other.class &&
|
84
94
|
code == other.code &&
|
85
|
-
sample_record == other.sample_record
|
95
|
+
sample_record == other.sample_record &&
|
96
|
+
authentications == other.authentications
|
86
97
|
end
|
87
98
|
|
88
99
|
# @see the `==` method
|
@@ -94,7 +105,7 @@ module Algolia
|
|
94
105
|
# Calculates hash code according to all attributes.
|
95
106
|
# @return [Integer] Hash code
|
96
107
|
def hash
|
97
|
-
[code, sample_record].hash
|
108
|
+
[code, sample_record, authentications].hash
|
98
109
|
end
|
99
110
|
|
100
111
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# 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.
|
2
2
|
|
3
3
|
module Algolia
|
4
|
-
VERSION = "3.0.0.beta.
|
4
|
+
VERSION = "3.0.0.beta.16".freeze
|
5
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algolia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.beta.
|
4
|
+
version: 3.0.0.beta.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://alg.li/support
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|