algolia 3.3.3 → 3.3.4
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +14 -8
- data/lib/algolia/models/ingestion/authentication_sort_keys.rb +2 -2
- data/lib/algolia/models/ingestion/{sort_keys.rb → transformation_sort_keys.rb} +4 -5
- data/lib/algolia/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e842b6445174b15f603c6be870648f174cb25c8bbb34d6161a103dd7025847e
|
4
|
+
data.tar.gz: 17ec2b406f7afca974b677838e937e30a56c52149e5c7816a3e088beb3b73916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6d09d160eaafc1eb68b77af6f93e7d641fd4c8e4a650e398770c1d826d47b5e683f9abf1fdcf94416c315a22ff0d6afc86ffb7f565863677c867705733b27b4
|
7
|
+
data.tar.gz: 2cf6c454d6a504fdfc63da2519a24549ad725df1c005e4e3cce60c6f2400914bace7d620cbc490dfa1acbb876f24daa7f28b93828975e33cc9e6298f1e421bb1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [3.3.4](https://github.com/algolia/algoliasearch-client-ruby/compare/3.3.3...3.3.4)
|
2
|
+
|
3
|
+
- [022131871](https://github.com/algolia/api-clients-automation/commit/022131871) fix(specs): correct query params for ingestion [skip-bc] ([#3830](https://github.com/algolia/api-clients-automation/pull/3830)) by [@millotp](https://github.com/millotp/)
|
4
|
+
|
1
5
|
## [3.3.3](https://github.com/algolia/algoliasearch-client-ruby/compare/3.3.2...3.3.3)
|
2
6
|
|
3
7
|
- [1a73994ff](https://github.com/algolia/api-clients-automation/commit/1a73994ff) fix(specs): recommend remove unsupported query parameters [RECO-2345] [skip-bc] ([#3692](https://github.com/algolia/api-clients-automation/pull/3692)) by [@raed667](https://github.com/raed667/)
|
data/Gemfile.lock
CHANGED
@@ -1372,8 +1372,8 @@ module Algolia
|
|
1372
1372
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
1373
1373
|
# @param page [Integer] Page number of the paginated API response.
|
1374
1374
|
# @param type [Array<AuthenticationType>] Type of authentication resource to retrieve.
|
1375
|
-
# @param platform [Array<PlatformWithNone>] Ecommerce platform for which to retrieve
|
1376
|
-
# @param sort [AuthenticationSortKeys] Property by which to sort the list of
|
1375
|
+
# @param platform [Array<PlatformWithNone>] Ecommerce platform for which to retrieve authentications.
|
1376
|
+
# @param sort [AuthenticationSortKeys] Property by which to sort the list of authentications. (default to 'createdAt')
|
1377
1377
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1378
1378
|
# @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)
|
1379
1379
|
# @return [Http::Response] the response
|
@@ -1441,8 +1441,8 @@ module Algolia
|
|
1441
1441
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
1442
1442
|
# @param page [Integer] Page number of the paginated API response.
|
1443
1443
|
# @param type [Array<AuthenticationType>] Type of authentication resource to retrieve.
|
1444
|
-
# @param platform [Array<PlatformWithNone>] Ecommerce platform for which to retrieve
|
1445
|
-
# @param sort [AuthenticationSortKeys] Property by which to sort the list of
|
1444
|
+
# @param platform [Array<PlatformWithNone>] Ecommerce platform for which to retrieve authentications.
|
1445
|
+
# @param sort [AuthenticationSortKeys] Property by which to sort the list of authentications. (default to 'createdAt')
|
1446
1446
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1447
1447
|
# @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)
|
1448
1448
|
# @return [ListAuthenticationsResponse]
|
@@ -1472,6 +1472,7 @@ module Algolia
|
|
1472
1472
|
# @param page [Integer] Page number of the paginated API response.
|
1473
1473
|
# @param type [Array<DestinationType>] Destination type.
|
1474
1474
|
# @param authentication_id [Array<String>] Authentication ID used by destinations.
|
1475
|
+
# @param transformation_id [String] Get the list of destinations used by a transformation.
|
1475
1476
|
# @param sort [DestinationSortKeys] Property by which to sort the destinations. (default to 'createdAt')
|
1476
1477
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1477
1478
|
# @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)
|
@@ -1481,6 +1482,7 @@ module Algolia
|
|
1481
1482
|
page = nil,
|
1482
1483
|
type = nil,
|
1483
1484
|
authentication_id = nil,
|
1485
|
+
transformation_id = nil,
|
1484
1486
|
sort = nil,
|
1485
1487
|
order = nil,
|
1486
1488
|
request_options = {}
|
@@ -1515,6 +1517,7 @@ module Algolia
|
|
1515
1517
|
query_params[:authenticationID] = @api_client.build_collection_param(authentication_id, :csv)
|
1516
1518
|
end
|
1517
1519
|
|
1520
|
+
query_params[:transformationID] = transformation_id unless transformation_id.nil?
|
1518
1521
|
query_params[:sort] = sort unless sort.nil?
|
1519
1522
|
query_params[:order] = order unless order.nil?
|
1520
1523
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -1544,6 +1547,7 @@ module Algolia
|
|
1544
1547
|
# @param page [Integer] Page number of the paginated API response.
|
1545
1548
|
# @param type [Array<DestinationType>] Destination type.
|
1546
1549
|
# @param authentication_id [Array<String>] Authentication ID used by destinations.
|
1550
|
+
# @param transformation_id [String] Get the list of destinations used by a transformation.
|
1547
1551
|
# @param sort [DestinationSortKeys] Property by which to sort the destinations. (default to 'createdAt')
|
1548
1552
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1549
1553
|
# @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)
|
@@ -1553,6 +1557,7 @@ module Algolia
|
|
1553
1557
|
page = nil,
|
1554
1558
|
type = nil,
|
1555
1559
|
authentication_id = nil,
|
1560
|
+
transformation_id = nil,
|
1556
1561
|
sort = nil,
|
1557
1562
|
order = nil,
|
1558
1563
|
request_options = {}
|
@@ -1562,6 +1567,7 @@ module Algolia
|
|
1562
1567
|
page,
|
1563
1568
|
type,
|
1564
1569
|
authentication_id,
|
1570
|
+
transformation_id,
|
1565
1571
|
sort,
|
1566
1572
|
order,
|
1567
1573
|
request_options
|
@@ -1829,7 +1835,7 @@ module Algolia
|
|
1829
1835
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
1830
1836
|
# @param page [Integer] Page number of the paginated API response.
|
1831
1837
|
# @param type [Array<SourceType>] Source type. Some sources require authentication.
|
1832
|
-
# @param authentication_id [Array<String>] Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication
|
1838
|
+
# @param authentication_id [Array<String>] Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication.
|
1833
1839
|
# @param sort [SourceSortKeys] Property by which to sort the list of sources. (default to 'createdAt')
|
1834
1840
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1835
1841
|
# @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)
|
@@ -1901,7 +1907,7 @@ module Algolia
|
|
1901
1907
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
1902
1908
|
# @param page [Integer] Page number of the paginated API response.
|
1903
1909
|
# @param type [Array<SourceType>] Source type. Some sources require authentication.
|
1904
|
-
# @param authentication_id [Array<String>] Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication
|
1910
|
+
# @param authentication_id [Array<String>] Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication.
|
1905
1911
|
# @param sort [SourceSortKeys] Property by which to sort the list of sources. (default to 'createdAt')
|
1906
1912
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1907
1913
|
# @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)
|
@@ -2185,7 +2191,7 @@ module Algolia
|
|
2185
2191
|
# - editSettings
|
2186
2192
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
2187
2193
|
# @param page [Integer] Page number of the paginated API response.
|
2188
|
-
# @param sort [
|
2194
|
+
# @param sort [TransformationSortKeys] Property by which to sort the list of transformations. (default to 'createdAt')
|
2189
2195
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
2190
2196
|
# @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)
|
2191
2197
|
# @return [Http::Response] the response
|
@@ -2248,7 +2254,7 @@ module Algolia
|
|
2248
2254
|
# - editSettings
|
2249
2255
|
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
2250
2256
|
# @param page [Integer] Page number of the paginated API response.
|
2251
|
-
# @param sort [
|
2257
|
+
# @param sort [TransformationSortKeys] Property by which to sort the list of transformations. (default to 'createdAt')
|
2252
2258
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
2253
2259
|
# @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)
|
2254
2260
|
# @return [ListTransformationsResponse]
|
@@ -7,13 +7,13 @@ module Algolia
|
|
7
7
|
module Ingestion
|
8
8
|
class AuthenticationSortKeys
|
9
9
|
NAME = "name".freeze
|
10
|
-
|
10
|
+
TYPE = "type".freeze
|
11
11
|
PLATFORM = "platform".freeze
|
12
12
|
UPDATED_AT = "updatedAt".freeze
|
13
13
|
CREATED_AT = "createdAt".freeze
|
14
14
|
|
15
15
|
def self.all_vars
|
16
|
-
@all_vars ||= [NAME,
|
16
|
+
@all_vars ||= [NAME, TYPE, PLATFORM, UPDATED_AT, CREATED_AT].freeze
|
17
17
|
end
|
18
18
|
|
19
19
|
# Builds the enum from string
|
@@ -5,14 +5,13 @@ require "time"
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
class
|
8
|
+
class TransformationSortKeys
|
9
9
|
NAME = "name".freeze
|
10
|
-
TYPE = "type".freeze
|
11
10
|
UPDATED_AT = "updatedAt".freeze
|
12
11
|
CREATED_AT = "createdAt".freeze
|
13
12
|
|
14
13
|
def self.all_vars
|
15
|
-
@all_vars ||= [NAME,
|
14
|
+
@all_vars ||= [NAME, UPDATED_AT, CREATED_AT].freeze
|
16
15
|
end
|
17
16
|
|
18
17
|
# Builds the enum from string
|
@@ -26,8 +25,8 @@ module Algolia
|
|
26
25
|
# @param [String] The enum value in the form of the string
|
27
26
|
# @return [String] The enum value
|
28
27
|
def build_from_hash(value)
|
29
|
-
return value if
|
30
|
-
raise "Invalid ENUM value #{value} for class #
|
28
|
+
return value if TransformationSortKeys.all_vars.include?(value)
|
29
|
+
raise "Invalid ENUM value #{value} for class #TransformationSortKeys"
|
31
30
|
end
|
32
31
|
end
|
33
32
|
end
|
data/lib/algolia/version.rb
CHANGED
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.3.
|
4
|
+
version: 3.3.4
|
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-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -311,7 +311,6 @@ files:
|
|
311
311
|
- lib/algolia/models/ingestion/shopify_input.rb
|
312
312
|
- lib/algolia/models/ingestion/shopify_market.rb
|
313
313
|
- lib/algolia/models/ingestion/shopify_metafield.rb
|
314
|
-
- lib/algolia/models/ingestion/sort_keys.rb
|
315
314
|
- lib/algolia/models/ingestion/source.rb
|
316
315
|
- lib/algolia/models/ingestion/source_big_commerce.rb
|
317
316
|
- lib/algolia/models/ingestion/source_big_query.rb
|
@@ -356,6 +355,7 @@ files:
|
|
356
355
|
- lib/algolia/models/ingestion/transformation_create_response.rb
|
357
356
|
- lib/algolia/models/ingestion/transformation_error.rb
|
358
357
|
- lib/algolia/models/ingestion/transformation_search.rb
|
358
|
+
- lib/algolia/models/ingestion/transformation_sort_keys.rb
|
359
359
|
- lib/algolia/models/ingestion/transformation_try.rb
|
360
360
|
- lib/algolia/models/ingestion/transformation_try_response.rb
|
361
361
|
- lib/algolia/models/ingestion/transformation_update_response.rb
|