algolia 3.0.0.beta.11 → 3.0.0.beta.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +2 -2
- data/lib/algolia/api/ingestion_client.rb +127 -3
- data/lib/algolia/api/query_suggestions_client.rb +4 -10
- data/lib/algolia/api/search_client.rb +2 -2
- data/lib/algolia/api/usage_client.rb +4 -4
- data/lib/algolia/models/abtesting/{filter_effects_empty_search.rb → empty_search_filter.rb} +3 -3
- data/lib/algolia/models/abtesting/filter_effects.rb +2 -2
- data/lib/algolia/models/abtesting/{filter_effects_outliers.rb → outliers_filter.rb} +3 -3
- data/lib/algolia/models/analytics/{click_positions_inner.rb → click_position.rb} +3 -3
- data/lib/algolia/models/analytics/get_click_positions_response.rb +1 -1
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +1 -1
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +1 -1
- data/lib/algolia/models/ingestion/destination.rb +15 -4
- data/lib/algolia/models/ingestion/destination_create.rb +15 -4
- data/lib/algolia/models/ingestion/destination_input.rb +1 -2
- data/lib/algolia/models/ingestion/destination_update.rb +15 -4
- data/lib/algolia/models/ingestion/docker_streams_input.rb +1 -0
- data/lib/algolia/models/ingestion/entity_type.rb +32 -0
- data/lib/algolia/models/ingestion/{destination_index_prefix.rb → model.rb} +55 -15
- data/lib/algolia/models/{recommend/trending_items.rb → ingestion/run_source_payload.rb} +39 -34
- data/lib/algolia/models/{search/base_get_api_key_response.rb → ingestion/run_source_response.rb} +19 -15
- data/lib/algolia/models/ingestion/{transformation_try_response_error.rb → transformation_error.rb} +3 -3
- data/lib/algolia/models/ingestion/{source_shopify_base.rb → transformation_models.rb} +14 -12
- data/lib/algolia/models/ingestion/transformation_try_response.rb +1 -1
- data/lib/algolia/models/monitoring/{incidents_inner.rb → incident_entry.rb} +3 -3
- data/lib/algolia/models/monitoring/{indexing_time_response_metrics.rb → indexing_metric.rb} +3 -3
- data/lib/algolia/models/monitoring/indexing_time_response.rb +1 -1
- data/lib/algolia/models/monitoring/infrastructure_response.rb +1 -1
- data/lib/algolia/models/monitoring/{latency_response_metrics.rb → latency_metric.rb} +3 -3
- data/lib/algolia/models/monitoring/latency_response.rb +1 -1
- data/lib/algolia/models/monitoring/{infrastructure_response_metrics.rb → metrics.rb} +3 -6
- data/lib/algolia/models/monitoring/{time_inner.rb → time_entry.rb} +3 -3
- data/lib/algolia/models/{search/search_for_hits_options.rb → query-suggestions/config_status.rb} +43 -36
- data/lib/algolia/models/{recommend/related_products.rb → query-suggestions/log_file.rb} +36 -32
- data/lib/algolia/models/recommend/around_precision.rb +1 -1
- data/lib/algolia/models/recommend/fallback_params.rb +1 -1
- data/lib/algolia/models/recommend/{around_precision_from_value_inner.rb → range.rb} +3 -6
- data/lib/algolia/models/recommend/recommend_rule.rb +1 -1
- data/lib/algolia/models/recommend/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
- data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +1 -1
- data/lib/algolia/models/recommend/{recommend_rule_metadata.rb → rule_metadata.rb} +3 -3
- data/lib/algolia/models/recommend/search_params.rb +1 -1
- data/lib/algolia/models/recommend/search_params_object.rb +1 -1
- data/lib/algolia/models/search/around_precision.rb +1 -1
- data/lib/algolia/models/search/browse_params_object.rb +1 -1
- data/lib/algolia/models/search/built_in_operation.rb +1 -2
- data/lib/algolia/models/search/built_in_operation_value.rb +105 -0
- data/lib/algolia/models/search/consequence_params.rb +1 -1
- data/lib/algolia/models/search/dictionary_entry.rb +13 -6
- data/lib/algolia/models/search/dictionary_entry_type.rb +32 -0
- data/lib/algolia/models/search/index_settings.rb +2 -2
- data/lib/algolia/models/search/multiple_batch_request.rb +0 -2
- data/lib/algolia/models/search/{around_precision_from_value_inner.rb → range.rb} +3 -6
- data/lib/algolia/models/search/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
- data/lib/algolia/models/search/redirect_rule_index_metadata.rb +1 -1
- data/lib/algolia/models/search/search_for_facets.rb +1 -1
- data/lib/algolia/models/search/search_for_hits.rb +1 -1
- data/lib/algolia/models/search/search_params_object.rb +1 -1
- data/lib/algolia/models/search/search_params_string.rb +1 -0
- data/lib/algolia/models/search/settings_response.rb +2 -2
- data/lib/algolia/models/usage/{get_usage400_response_error_errors_inner.rb → error_item.rb} +3 -3
- data/lib/algolia/models/usage/{get_usage400_response_error.rb → forbidden_error.rb} +4 -4
- data/lib/algolia/models/usage/{get_usage200_response.rb → index_usage.rb} +4 -4
- data/lib/algolia/models/usage/invalid_request_error.rb +231 -0
- data/lib/algolia/models/usage/{get_usage200_response_statistics_inner.rb → statistic_entry.rb} +3 -3
- data/lib/algolia/version.rb +1 -1
- metadata +30 -65
- data/lib/algolia/models/abtesting/custom_search_params.rb +0 -214
- data/lib/algolia/models/abtesting/error_base.rb +0 -212
- data/lib/algolia/models/analytics/error_base.rb +0 -212
- data/lib/algolia/models/ingestion/error_base.rb +0 -212
- data/lib/algolia/models/insights/error_base.rb +0 -212
- data/lib/algolia/models/monitoring/error_base.rb +0 -212
- data/lib/algolia/models/monitoring/get_servers403_response.rb +0 -211
- data/lib/algolia/models/personalization/error_base.rb +0 -212
- data/lib/algolia/models/query-suggestions/app_id.rb +0 -209
- data/lib/algolia/models/query-suggestions/error_base.rb +0 -212
- data/lib/algolia/models/recommend/base_recommend_request.rb +0 -281
- data/lib/algolia/models/recommend/base_search_params.rb +0 -635
- data/lib/algolia/models/recommend/base_search_params_without_query.rb +0 -616
- data/lib/algolia/models/recommend/base_search_response.rb +0 -499
- data/lib/algolia/models/recommend/error_base.rb +0 -212
- data/lib/algolia/models/recommend/frequently_bought_together.rb +0 -247
- data/lib/algolia/models/recommend/index_settings_as_search_params.rb +0 -788
- data/lib/algolia/models/recommend/looking_similar.rb +0 -256
- data/lib/algolia/models/recommend/recommendations_hits.rb +0 -215
- data/lib/algolia/models/recommend/recommended_for_you.rb +0 -244
- data/lib/algolia/models/recommend/search_pagination.rb +0 -282
- data/lib/algolia/models/recommend/search_params_query.rb +0 -212
- data/lib/algolia/models/recommend/trending_facets.rb +0 -258
- data/lib/algolia/models/search/base_index_settings.rb +0 -426
- data/lib/algolia/models/search/base_search_params.rb +0 -635
- data/lib/algolia/models/search/base_search_params_without_query.rb +0 -616
- data/lib/algolia/models/search/base_search_response.rb +0 -499
- data/lib/algolia/models/search/browse_pagination.rb +0 -274
- data/lib/algolia/models/search/cursor.rb +0 -209
- data/lib/algolia/models/search/error_base.rb +0 -212
- data/lib/algolia/models/search/index_settings_as_search_params.rb +0 -788
- data/lib/algolia/models/search/params.rb +0 -236
- data/lib/algolia/models/search/search_for_facets_options.rb +0 -293
- data/lib/algolia/models/search/search_hits.rb +0 -240
- data/lib/algolia/models/search/search_pagination.rb +0 -282
- data/lib/algolia/models/search/search_params_query.rb +0 -212
- data/lib/algolia/models/search/with_primary.rb +0 -212
- data/lib/algolia/models/usage/error_base.rb +0 -212
- data/lib/algolia/models/usage/get_usage400_response.rb +0 -213
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.13
|
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-
|
11
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,19 +151,17 @@ files:
|
|
151
151
|
- lib/algolia/models/abtesting/add_ab_tests_request.rb
|
152
152
|
- lib/algolia/models/abtesting/add_ab_tests_variant.rb
|
153
153
|
- lib/algolia/models/abtesting/currency.rb
|
154
|
-
- lib/algolia/models/abtesting/custom_search_params.rb
|
155
154
|
- lib/algolia/models/abtesting/effect.rb
|
156
155
|
- lib/algolia/models/abtesting/empty_search.rb
|
157
|
-
- lib/algolia/models/abtesting/
|
156
|
+
- lib/algolia/models/abtesting/empty_search_filter.rb
|
158
157
|
- lib/algolia/models/abtesting/filter_effects.rb
|
159
|
-
- lib/algolia/models/abtesting/filter_effects_empty_search.rb
|
160
|
-
- lib/algolia/models/abtesting/filter_effects_outliers.rb
|
161
158
|
- lib/algolia/models/abtesting/list_ab_tests_response.rb
|
162
159
|
- lib/algolia/models/abtesting/minimum_detectable_effect.rb
|
163
160
|
- lib/algolia/models/abtesting/outliers.rb
|
161
|
+
- lib/algolia/models/abtesting/outliers_filter.rb
|
164
162
|
- lib/algolia/models/abtesting/status.rb
|
165
163
|
- lib/algolia/models/abtesting/variant.rb
|
166
|
-
- lib/algolia/models/analytics/
|
164
|
+
- lib/algolia/models/analytics/click_position.rb
|
167
165
|
- lib/algolia/models/analytics/currencies_value.rb
|
168
166
|
- lib/algolia/models/analytics/daily_add_to_cart_rates.rb
|
169
167
|
- lib/algolia/models/analytics/daily_average_clicks.rb
|
@@ -178,7 +176,6 @@ files:
|
|
178
176
|
- lib/algolia/models/analytics/daily_searches_no_results.rb
|
179
177
|
- lib/algolia/models/analytics/daily_users.rb
|
180
178
|
- lib/algolia/models/analytics/direction.rb
|
181
|
-
- lib/algolia/models/analytics/error_base.rb
|
182
179
|
- lib/algolia/models/analytics/get_add_to_cart_rate_response.rb
|
183
180
|
- lib/algolia/models/analytics/get_average_click_position_response.rb
|
184
181
|
- lib/algolia/models/analytics/get_click_positions_response.rb
|
@@ -253,7 +250,6 @@ files:
|
|
253
250
|
- lib/algolia/models/ingestion/destination_create.rb
|
254
251
|
- lib/algolia/models/ingestion/destination_create_response.rb
|
255
252
|
- lib/algolia/models/ingestion/destination_index_name.rb
|
256
|
-
- lib/algolia/models/ingestion/destination_index_prefix.rb
|
257
253
|
- lib/algolia/models/ingestion/destination_input.rb
|
258
254
|
- lib/algolia/models/ingestion/destination_search.rb
|
259
255
|
- lib/algolia/models/ingestion/destination_sort_keys.rb
|
@@ -263,7 +259,7 @@ files:
|
|
263
259
|
- lib/algolia/models/ingestion/docker_image_type.rb
|
264
260
|
- lib/algolia/models/ingestion/docker_registry.rb
|
265
261
|
- lib/algolia/models/ingestion/docker_streams_input.rb
|
266
|
-
- lib/algolia/models/ingestion/
|
262
|
+
- lib/algolia/models/ingestion/entity_type.rb
|
267
263
|
- lib/algolia/models/ingestion/event.rb
|
268
264
|
- lib/algolia/models/ingestion/event_sort_keys.rb
|
269
265
|
- lib/algolia/models/ingestion/event_status.rb
|
@@ -281,6 +277,7 @@ files:
|
|
281
277
|
- lib/algolia/models/ingestion/mapping_kit_action.rb
|
282
278
|
- lib/algolia/models/ingestion/mapping_type_csv.rb
|
283
279
|
- lib/algolia/models/ingestion/method_type.rb
|
280
|
+
- lib/algolia/models/ingestion/model.rb
|
284
281
|
- lib/algolia/models/ingestion/on_demand_trigger.rb
|
285
282
|
- lib/algolia/models/ingestion/on_demand_trigger_input.rb
|
286
283
|
- lib/algolia/models/ingestion/on_demand_trigger_type.rb
|
@@ -297,6 +294,8 @@ files:
|
|
297
294
|
- lib/algolia/models/ingestion/run_reason_code.rb
|
298
295
|
- lib/algolia/models/ingestion/run_response.rb
|
299
296
|
- lib/algolia/models/ingestion/run_sort_keys.rb
|
297
|
+
- lib/algolia/models/ingestion/run_source_payload.rb
|
298
|
+
- lib/algolia/models/ingestion/run_source_response.rb
|
300
299
|
- lib/algolia/models/ingestion/run_status.rb
|
301
300
|
- lib/algolia/models/ingestion/run_type.rb
|
302
301
|
- lib/algolia/models/ingestion/schedule_trigger.rb
|
@@ -319,7 +318,6 @@ files:
|
|
319
318
|
- lib/algolia/models/ingestion/source_json.rb
|
320
319
|
- lib/algolia/models/ingestion/source_search.rb
|
321
320
|
- lib/algolia/models/ingestion/source_shopify.rb
|
322
|
-
- lib/algolia/models/ingestion/source_shopify_base.rb
|
323
321
|
- lib/algolia/models/ingestion/source_sort_keys.rb
|
324
322
|
- lib/algolia/models/ingestion/source_type.rb
|
325
323
|
- lib/algolia/models/ingestion/source_update.rb
|
@@ -349,10 +347,11 @@ files:
|
|
349
347
|
- lib/algolia/models/ingestion/transformation.rb
|
350
348
|
- lib/algolia/models/ingestion/transformation_create.rb
|
351
349
|
- lib/algolia/models/ingestion/transformation_create_response.rb
|
350
|
+
- lib/algolia/models/ingestion/transformation_error.rb
|
351
|
+
- lib/algolia/models/ingestion/transformation_models.rb
|
352
352
|
- lib/algolia/models/ingestion/transformation_search.rb
|
353
353
|
- lib/algolia/models/ingestion/transformation_try.rb
|
354
354
|
- lib/algolia/models/ingestion/transformation_try_response.rb
|
355
|
-
- lib/algolia/models/ingestion/transformation_try_response_error.rb
|
356
355
|
- lib/algolia/models/ingestion/transformation_update_response.rb
|
357
356
|
- lib/algolia/models/ingestion/trigger.rb
|
358
357
|
- lib/algolia/models/ingestion/trigger_type.rb
|
@@ -370,7 +369,6 @@ files:
|
|
370
369
|
- lib/algolia/models/insights/converted_object_ids.rb
|
371
370
|
- lib/algolia/models/insights/converted_object_ids_after_search.rb
|
372
371
|
- lib/algolia/models/insights/discount.rb
|
373
|
-
- lib/algolia/models/insights/error_base.rb
|
374
372
|
- lib/algolia/models/insights/events_items.rb
|
375
373
|
- lib/algolia/models/insights/events_response.rb
|
376
374
|
- lib/algolia/models/insights/insights_events.rb
|
@@ -384,19 +382,17 @@ files:
|
|
384
382
|
- lib/algolia/models/insights/view_event.rb
|
385
383
|
- lib/algolia/models/insights/viewed_filters.rb
|
386
384
|
- lib/algolia/models/insights/viewed_object_ids.rb
|
387
|
-
- lib/algolia/models/monitoring/error_base.rb
|
388
|
-
- lib/algolia/models/monitoring/get_servers403_response.rb
|
389
385
|
- lib/algolia/models/monitoring/incident.rb
|
390
|
-
- lib/algolia/models/monitoring/
|
386
|
+
- lib/algolia/models/monitoring/incident_entry.rb
|
391
387
|
- lib/algolia/models/monitoring/incidents_response.rb
|
388
|
+
- lib/algolia/models/monitoring/indexing_metric.rb
|
392
389
|
- lib/algolia/models/monitoring/indexing_time_response.rb
|
393
|
-
- lib/algolia/models/monitoring/indexing_time_response_metrics.rb
|
394
390
|
- lib/algolia/models/monitoring/infrastructure_response.rb
|
395
|
-
- lib/algolia/models/monitoring/infrastructure_response_metrics.rb
|
396
391
|
- lib/algolia/models/monitoring/inventory_response.rb
|
392
|
+
- lib/algolia/models/monitoring/latency_metric.rb
|
397
393
|
- lib/algolia/models/monitoring/latency_response.rb
|
398
|
-
- lib/algolia/models/monitoring/latency_response_metrics.rb
|
399
394
|
- lib/algolia/models/monitoring/metric.rb
|
395
|
+
- lib/algolia/models/monitoring/metrics.rb
|
400
396
|
- lib/algolia/models/monitoring/period.rb
|
401
397
|
- lib/algolia/models/monitoring/probes_metric.rb
|
402
398
|
- lib/algolia/models/monitoring/region.rb
|
@@ -404,28 +400,27 @@ files:
|
|
404
400
|
- lib/algolia/models/monitoring/server_status.rb
|
405
401
|
- lib/algolia/models/monitoring/status.rb
|
406
402
|
- lib/algolia/models/monitoring/status_response.rb
|
407
|
-
- lib/algolia/models/monitoring/
|
403
|
+
- lib/algolia/models/monitoring/time_entry.rb
|
408
404
|
- lib/algolia/models/monitoring/type.rb
|
409
405
|
- lib/algolia/models/personalization/delete_user_profile_response.rb
|
410
|
-
- lib/algolia/models/personalization/error_base.rb
|
411
406
|
- lib/algolia/models/personalization/event_scoring.rb
|
412
407
|
- lib/algolia/models/personalization/event_type.rb
|
413
408
|
- lib/algolia/models/personalization/facet_scoring.rb
|
414
409
|
- lib/algolia/models/personalization/get_user_token_response.rb
|
415
410
|
- lib/algolia/models/personalization/personalization_strategy_params.rb
|
416
411
|
- lib/algolia/models/personalization/set_personalization_strategy_response.rb
|
417
|
-
- lib/algolia/models/query-suggestions/app_id.rb
|
418
412
|
- lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb
|
419
413
|
- lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb
|
420
414
|
- lib/algolia/models/query-suggestions/base_response.rb
|
415
|
+
- lib/algolia/models/query-suggestions/config_status.rb
|
421
416
|
- lib/algolia/models/query-suggestions/configuration.rb
|
422
417
|
- lib/algolia/models/query-suggestions/configuration_response.rb
|
423
418
|
- lib/algolia/models/query-suggestions/configuration_with_index.rb
|
424
|
-
- lib/algolia/models/query-suggestions/error_base.rb
|
425
419
|
- lib/algolia/models/query-suggestions/facet.rb
|
426
420
|
- lib/algolia/models/query-suggestions/get_config_status200_response.rb
|
427
421
|
- lib/algolia/models/query-suggestions/get_log_file200_response.rb
|
428
422
|
- lib/algolia/models/query-suggestions/languages.rb
|
423
|
+
- lib/algolia/models/query-suggestions/log_file.rb
|
429
424
|
- lib/algolia/models/query-suggestions/log_level.rb
|
430
425
|
- lib/algolia/models/query-suggestions/query_suggestions_configuration.rb
|
431
426
|
- lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb
|
@@ -434,20 +429,14 @@ files:
|
|
434
429
|
- lib/algolia/models/recommend/advanced_syntax_features.rb
|
435
430
|
- lib/algolia/models/recommend/alternatives_as_exact.rb
|
436
431
|
- lib/algolia/models/recommend/around_precision.rb
|
437
|
-
- lib/algolia/models/recommend/around_precision_from_value_inner.rb
|
438
432
|
- lib/algolia/models/recommend/around_radius.rb
|
439
433
|
- lib/algolia/models/recommend/around_radius_all.rb
|
440
434
|
- lib/algolia/models/recommend/auto_facet_filter.rb
|
441
|
-
- lib/algolia/models/recommend/base_recommend_request.rb
|
442
|
-
- lib/algolia/models/recommend/base_search_params.rb
|
443
|
-
- lib/algolia/models/recommend/base_search_params_without_query.rb
|
444
|
-
- lib/algolia/models/recommend/base_search_response.rb
|
445
435
|
- lib/algolia/models/recommend/bought_together_query.rb
|
446
436
|
- lib/algolia/models/recommend/condition.rb
|
447
437
|
- lib/algolia/models/recommend/consequence.rb
|
448
438
|
- lib/algolia/models/recommend/deleted_at_response.rb
|
449
439
|
- lib/algolia/models/recommend/distinct.rb
|
450
|
-
- lib/algolia/models/recommend/error_base.rb
|
451
440
|
- lib/algolia/models/recommend/exact_on_single_word_query.rb
|
452
441
|
- lib/algolia/models/recommend/exhaustive.rb
|
453
442
|
- lib/algolia/models/recommend/facet_filters.rb
|
@@ -456,7 +445,6 @@ files:
|
|
456
445
|
- lib/algolia/models/recommend/facets_stats.rb
|
457
446
|
- lib/algolia/models/recommend/fallback_params.rb
|
458
447
|
- lib/algolia/models/recommend/fbt_model.rb
|
459
|
-
- lib/algolia/models/recommend/frequently_bought_together.rb
|
460
448
|
- lib/algolia/models/recommend/get_recommend_task_response.rb
|
461
449
|
- lib/algolia/models/recommend/get_recommendations_params.rb
|
462
450
|
- lib/algolia/models/recommend/get_recommendations_response.rb
|
@@ -464,8 +452,6 @@ files:
|
|
464
452
|
- lib/algolia/models/recommend/highlight_result.rb
|
465
453
|
- lib/algolia/models/recommend/highlight_result_option.rb
|
466
454
|
- lib/algolia/models/recommend/ignore_plurals.rb
|
467
|
-
- lib/algolia/models/recommend/index_settings_as_search_params.rb
|
468
|
-
- lib/algolia/models/recommend/looking_similar.rb
|
469
455
|
- lib/algolia/models/recommend/looking_similar_model.rb
|
470
456
|
- lib/algolia/models/recommend/looking_similar_query.rb
|
471
457
|
- lib/algolia/models/recommend/match_level.rb
|
@@ -477,33 +463,29 @@ files:
|
|
477
463
|
- lib/algolia/models/recommend/personalization.rb
|
478
464
|
- lib/algolia/models/recommend/promote_consequence_object.rb
|
479
465
|
- lib/algolia/models/recommend/query_type.rb
|
466
|
+
- lib/algolia/models/recommend/range.rb
|
480
467
|
- lib/algolia/models/recommend/ranking_info.rb
|
481
468
|
- lib/algolia/models/recommend/re_ranking_apply_filter.rb
|
482
469
|
- lib/algolia/models/recommend/recommend_hit.rb
|
483
470
|
- lib/algolia/models/recommend/recommend_models.rb
|
484
471
|
- lib/algolia/models/recommend/recommend_rule.rb
|
485
|
-
- lib/algolia/models/recommend/recommend_rule_metadata.rb
|
486
472
|
- lib/algolia/models/recommend/recommendations_hit.rb
|
487
|
-
- lib/algolia/models/recommend/recommendations_hits.rb
|
488
473
|
- lib/algolia/models/recommend/recommendations_request.rb
|
489
474
|
- lib/algolia/models/recommend/recommendations_results.rb
|
490
|
-
- lib/algolia/models/recommend/recommended_for_you.rb
|
491
475
|
- lib/algolia/models/recommend/recommended_for_you_model.rb
|
492
476
|
- lib/algolia/models/recommend/recommended_for_you_query.rb
|
493
477
|
- lib/algolia/models/recommend/redirect.rb
|
478
|
+
- lib/algolia/models/recommend/redirect_rule_index_data.rb
|
494
479
|
- lib/algolia/models/recommend/redirect_rule_index_metadata.rb
|
495
|
-
- lib/algolia/models/recommend/redirect_rule_index_metadata_data.rb
|
496
480
|
- lib/algolia/models/recommend/redirect_url.rb
|
497
481
|
- lib/algolia/models/recommend/related_model.rb
|
498
|
-
- lib/algolia/models/recommend/related_products.rb
|
499
482
|
- lib/algolia/models/recommend/related_query.rb
|
500
483
|
- lib/algolia/models/recommend/remove_stop_words.rb
|
501
484
|
- lib/algolia/models/recommend/remove_words_if_no_results.rb
|
502
485
|
- lib/algolia/models/recommend/rendering_content.rb
|
503
|
-
- lib/algolia/models/recommend/
|
486
|
+
- lib/algolia/models/recommend/rule_metadata.rb
|
504
487
|
- lib/algolia/models/recommend/search_params.rb
|
505
488
|
- lib/algolia/models/recommend/search_params_object.rb
|
506
|
-
- lib/algolia/models/recommend/search_params_query.rb
|
507
489
|
- lib/algolia/models/recommend/search_recommend_rules_params.rb
|
508
490
|
- lib/algolia/models/recommend/search_recommend_rules_response.rb
|
509
491
|
- lib/algolia/models/recommend/semantic_search.rb
|
@@ -514,10 +496,8 @@ files:
|
|
514
496
|
- lib/algolia/models/recommend/tag_filters.rb
|
515
497
|
- lib/algolia/models/recommend/task_status.rb
|
516
498
|
- lib/algolia/models/recommend/trending_facet_hit.rb
|
517
|
-
- lib/algolia/models/recommend/trending_facets.rb
|
518
499
|
- lib/algolia/models/recommend/trending_facets_model.rb
|
519
500
|
- lib/algolia/models/recommend/trending_facets_query.rb
|
520
|
-
- lib/algolia/models/recommend/trending_items.rb
|
521
501
|
- lib/algolia/models/recommend/trending_items_model.rb
|
522
502
|
- lib/algolia/models/recommend/trending_items_query.rb
|
523
503
|
- lib/algolia/models/recommend/typo_tolerance.rb
|
@@ -532,18 +512,12 @@ files:
|
|
532
512
|
- lib/algolia/models/search/api_key.rb
|
533
513
|
- lib/algolia/models/search/api_key_operation.rb
|
534
514
|
- lib/algolia/models/search/around_precision.rb
|
535
|
-
- lib/algolia/models/search/around_precision_from_value_inner.rb
|
536
515
|
- lib/algolia/models/search/around_radius.rb
|
537
516
|
- lib/algolia/models/search/around_radius_all.rb
|
538
517
|
- lib/algolia/models/search/assign_user_id_params.rb
|
539
518
|
- lib/algolia/models/search/attribute_to_update.rb
|
540
519
|
- lib/algolia/models/search/automatic_facet_filter.rb
|
541
520
|
- lib/algolia/models/search/automatic_facet_filters.rb
|
542
|
-
- lib/algolia/models/search/base_get_api_key_response.rb
|
543
|
-
- lib/algolia/models/search/base_index_settings.rb
|
544
|
-
- lib/algolia/models/search/base_search_params.rb
|
545
|
-
- lib/algolia/models/search/base_search_params_without_query.rb
|
546
|
-
- lib/algolia/models/search/base_search_response.rb
|
547
521
|
- lib/algolia/models/search/batch_assign_user_ids_params.rb
|
548
522
|
- lib/algolia/models/search/batch_dictionary_entries_params.rb
|
549
523
|
- lib/algolia/models/search/batch_dictionary_entries_request.rb
|
@@ -551,12 +525,12 @@ files:
|
|
551
525
|
- lib/algolia/models/search/batch_request.rb
|
552
526
|
- lib/algolia/models/search/batch_response.rb
|
553
527
|
- lib/algolia/models/search/batch_write_params.rb
|
554
|
-
- lib/algolia/models/search/browse_pagination.rb
|
555
528
|
- lib/algolia/models/search/browse_params.rb
|
556
529
|
- lib/algolia/models/search/browse_params_object.rb
|
557
530
|
- lib/algolia/models/search/browse_response.rb
|
558
531
|
- lib/algolia/models/search/built_in_operation.rb
|
559
532
|
- lib/algolia/models/search/built_in_operation_type.rb
|
533
|
+
- lib/algolia/models/search/built_in_operation_value.rb
|
560
534
|
- lib/algolia/models/search/condition.rb
|
561
535
|
- lib/algolia/models/search/consequence.rb
|
562
536
|
- lib/algolia/models/search/consequence_hide.rb
|
@@ -564,7 +538,6 @@ files:
|
|
564
538
|
- lib/algolia/models/search/consequence_query.rb
|
565
539
|
- lib/algolia/models/search/consequence_query_object.rb
|
566
540
|
- lib/algolia/models/search/created_at_response.rb
|
567
|
-
- lib/algolia/models/search/cursor.rb
|
568
541
|
- lib/algolia/models/search/delete_api_key_response.rb
|
569
542
|
- lib/algolia/models/search/delete_by_params.rb
|
570
543
|
- lib/algolia/models/search/delete_source_response.rb
|
@@ -572,13 +545,13 @@ files:
|
|
572
545
|
- lib/algolia/models/search/dictionary_action.rb
|
573
546
|
- lib/algolia/models/search/dictionary_entry.rb
|
574
547
|
- lib/algolia/models/search/dictionary_entry_state.rb
|
548
|
+
- lib/algolia/models/search/dictionary_entry_type.rb
|
575
549
|
- lib/algolia/models/search/dictionary_language.rb
|
576
550
|
- lib/algolia/models/search/dictionary_settings_params.rb
|
577
551
|
- lib/algolia/models/search/dictionary_type.rb
|
578
552
|
- lib/algolia/models/search/distinct.rb
|
579
553
|
- lib/algolia/models/search/edit.rb
|
580
554
|
- lib/algolia/models/search/edit_type.rb
|
581
|
-
- lib/algolia/models/search/error_base.rb
|
582
555
|
- lib/algolia/models/search/exact_on_single_word_query.rb
|
583
556
|
- lib/algolia/models/search/exhaustive.rb
|
584
557
|
- lib/algolia/models/search/facet_filters.rb
|
@@ -601,7 +574,6 @@ files:
|
|
601
574
|
- lib/algolia/models/search/hit.rb
|
602
575
|
- lib/algolia/models/search/ignore_plurals.rb
|
603
576
|
- lib/algolia/models/search/index_settings.rb
|
604
|
-
- lib/algolia/models/search/index_settings_as_search_params.rb
|
605
577
|
- lib/algolia/models/search/languages.rb
|
606
578
|
- lib/algolia/models/search/list_api_keys_response.rb
|
607
579
|
- lib/algolia/models/search/list_clusters_response.rb
|
@@ -619,17 +591,17 @@ files:
|
|
619
591
|
- lib/algolia/models/search/operation_index_params.rb
|
620
592
|
- lib/algolia/models/search/operation_type.rb
|
621
593
|
- lib/algolia/models/search/optional_filters.rb
|
622
|
-
- lib/algolia/models/search/params.rb
|
623
594
|
- lib/algolia/models/search/personalization.rb
|
624
595
|
- lib/algolia/models/search/promote.rb
|
625
596
|
- lib/algolia/models/search/promote_object_id.rb
|
626
597
|
- lib/algolia/models/search/promote_object_ids.rb
|
627
598
|
- lib/algolia/models/search/query_type.rb
|
599
|
+
- lib/algolia/models/search/range.rb
|
628
600
|
- lib/algolia/models/search/ranking_info.rb
|
629
601
|
- lib/algolia/models/search/re_ranking_apply_filter.rb
|
630
602
|
- lib/algolia/models/search/redirect.rb
|
603
|
+
- lib/algolia/models/search/redirect_rule_index_data.rb
|
631
604
|
- lib/algolia/models/search/redirect_rule_index_metadata.rb
|
632
|
-
- lib/algolia/models/search/redirect_rule_index_metadata_data.rb
|
633
605
|
- lib/algolia/models/search/redirect_url.rb
|
634
606
|
- lib/algolia/models/search/remove_stop_words.rb
|
635
607
|
- lib/algolia/models/search/remove_user_id_response.rb
|
@@ -646,15 +618,10 @@ files:
|
|
646
618
|
- lib/algolia/models/search/search_for_facet_values_request.rb
|
647
619
|
- lib/algolia/models/search/search_for_facet_values_response.rb
|
648
620
|
- lib/algolia/models/search/search_for_facets.rb
|
649
|
-
- lib/algolia/models/search/search_for_facets_options.rb
|
650
621
|
- lib/algolia/models/search/search_for_hits.rb
|
651
|
-
- lib/algolia/models/search/search_for_hits_options.rb
|
652
|
-
- lib/algolia/models/search/search_hits.rb
|
653
622
|
- lib/algolia/models/search/search_method_params.rb
|
654
|
-
- lib/algolia/models/search/search_pagination.rb
|
655
623
|
- lib/algolia/models/search/search_params.rb
|
656
624
|
- lib/algolia/models/search/search_params_object.rb
|
657
|
-
- lib/algolia/models/search/search_params_query.rb
|
658
625
|
- lib/algolia/models/search/search_params_string.rb
|
659
626
|
- lib/algolia/models/search/search_query.rb
|
660
627
|
- lib/algolia/models/search/search_response.rb
|
@@ -693,15 +660,13 @@ files:
|
|
693
660
|
- lib/algolia/models/search/user_hit.rb
|
694
661
|
- lib/algolia/models/search/user_id.rb
|
695
662
|
- lib/algolia/models/search/value.rb
|
696
|
-
- lib/algolia/models/
|
697
|
-
- lib/algolia/models/usage/
|
698
|
-
- lib/algolia/models/usage/get_usage200_response.rb
|
699
|
-
- lib/algolia/models/usage/get_usage200_response_statistics_inner.rb
|
700
|
-
- lib/algolia/models/usage/get_usage400_response.rb
|
701
|
-
- lib/algolia/models/usage/get_usage400_response_error.rb
|
702
|
-
- lib/algolia/models/usage/get_usage400_response_error_errors_inner.rb
|
663
|
+
- lib/algolia/models/usage/error_item.rb
|
664
|
+
- lib/algolia/models/usage/forbidden_error.rb
|
703
665
|
- lib/algolia/models/usage/granularity.rb
|
666
|
+
- lib/algolia/models/usage/index_usage.rb
|
667
|
+
- lib/algolia/models/usage/invalid_request_error.rb
|
704
668
|
- lib/algolia/models/usage/statistic.rb
|
669
|
+
- lib/algolia/models/usage/statistic_entry.rb
|
705
670
|
- lib/algolia/models/usage/statistic_value.rb
|
706
671
|
- lib/algolia/transport/call_type.rb
|
707
672
|
- lib/algolia/transport/echo_requester.rb
|
@@ -1,214 +0,0 @@
|
|
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
|
-
|
3
|
-
require "date"
|
4
|
-
require "time"
|
5
|
-
|
6
|
-
module Algolia
|
7
|
-
module Abtesting
|
8
|
-
# Search parameters to add to the test variant. Only use this parameter if the two variants use the same index.
|
9
|
-
class CustomSearchParams
|
10
|
-
attr_accessor :custom_search_parameters
|
11
|
-
|
12
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
13
|
-
def self.attribute_map
|
14
|
-
{
|
15
|
-
:custom_search_parameters => :customSearchParameters
|
16
|
-
}
|
17
|
-
end
|
18
|
-
|
19
|
-
# Returns all the JSON keys this model knows about
|
20
|
-
def self.acceptable_attributes
|
21
|
-
attribute_map.values
|
22
|
-
end
|
23
|
-
|
24
|
-
# Attribute type mapping.
|
25
|
-
def self.types_mapping
|
26
|
-
{
|
27
|
-
:custom_search_parameters => :"Object"
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# List of attributes with nullable: true
|
32
|
-
def self.openapi_nullable
|
33
|
-
Set.new(
|
34
|
-
[]
|
35
|
-
)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Initializes the object
|
39
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
-
def initialize(attributes = {})
|
41
|
-
if (!attributes.is_a?(Hash))
|
42
|
-
raise(
|
43
|
-
ArgumentError,
|
44
|
-
"The input argument (attributes) must be a hash in `Algolia::CustomSearchParams` initialize method"
|
45
|
-
)
|
46
|
-
end
|
47
|
-
|
48
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
raise(
|
52
|
-
ArgumentError,
|
53
|
-
"`#{k}` is not a valid attribute in `Algolia::CustomSearchParams`. Please check the name to make sure it's valid. List of attributes: " +
|
54
|
-
self.class.attribute_map.keys.inspect
|
55
|
-
)
|
56
|
-
end
|
57
|
-
|
58
|
-
h[k.to_sym] = v
|
59
|
-
}
|
60
|
-
|
61
|
-
if attributes.key?(:custom_search_parameters)
|
62
|
-
self.custom_search_parameters = attributes[:custom_search_parameters]
|
63
|
-
else
|
64
|
-
self.custom_search_parameters = nil
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Checks equality by comparing each attribute.
|
69
|
-
# @param [Object] Object to be compared
|
70
|
-
def ==(other)
|
71
|
-
return true if self.equal?(other)
|
72
|
-
self.class == other.class &&
|
73
|
-
custom_search_parameters == other.custom_search_parameters
|
74
|
-
end
|
75
|
-
|
76
|
-
# @see the `==` method
|
77
|
-
# @param [Object] Object to be compared
|
78
|
-
def eql?(other)
|
79
|
-
self == other
|
80
|
-
end
|
81
|
-
|
82
|
-
# Calculates hash code according to all attributes.
|
83
|
-
# @return [Integer] Hash code
|
84
|
-
def hash
|
85
|
-
[custom_search_parameters].hash
|
86
|
-
end
|
87
|
-
|
88
|
-
# Builds the object from hash
|
89
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
-
# @return [Object] Returns the model itself
|
91
|
-
def self.build_from_hash(attributes)
|
92
|
-
return nil unless attributes.is_a?(Hash)
|
93
|
-
attributes = attributes.transform_keys(&:to_sym)
|
94
|
-
transformed_hash = {}
|
95
|
-
types_mapping.each_pair do |key, type|
|
96
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
97
|
-
transformed_hash[key.to_sym] = nil
|
98
|
-
elsif type =~ /\AArray<(.*)>/i
|
99
|
-
# check to ensure the input is an array given that the attribute
|
100
|
-
# is documented as an array but the input is not
|
101
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
102
|
-
transformed_hash[key.to_sym] = attributes[attribute_map[key]].map { |v|
|
103
|
-
_deserialize(::Regexp.last_match(1), v)
|
104
|
-
}
|
105
|
-
end
|
106
|
-
elsif !attributes[attribute_map[key]].nil?
|
107
|
-
transformed_hash[key.to_sym] = _deserialize(type, attributes[attribute_map[key]])
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
new(transformed_hash)
|
112
|
-
end
|
113
|
-
|
114
|
-
# Deserializes the data based on type
|
115
|
-
# @param string type Data type
|
116
|
-
# @param string value Value to be deserialized
|
117
|
-
# @return [Object] Deserialized data
|
118
|
-
def self._deserialize(type, value)
|
119
|
-
case type.to_sym
|
120
|
-
when :Time
|
121
|
-
Time.parse(value)
|
122
|
-
when :Date
|
123
|
-
Date.parse(value)
|
124
|
-
when :String
|
125
|
-
value.to_s
|
126
|
-
when :Integer
|
127
|
-
value.to_i
|
128
|
-
when :Float
|
129
|
-
value.to_f
|
130
|
-
when :Boolean
|
131
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
132
|
-
true
|
133
|
-
else
|
134
|
-
false
|
135
|
-
end
|
136
|
-
|
137
|
-
when :Object
|
138
|
-
# generic object (usually a Hash), return directly
|
139
|
-
value
|
140
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
141
|
-
inner_type = Regexp.last_match[:inner_type]
|
142
|
-
value.map { |v| _deserialize(inner_type, v) }
|
143
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
|
-
k_type = Regexp.last_match[:k_type]
|
145
|
-
v_type = Regexp.last_match[:v_type]
|
146
|
-
{}.tap do |hash|
|
147
|
-
value.each do |k, v|
|
148
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
149
|
-
end
|
150
|
-
end
|
151
|
-
# model
|
152
|
-
else
|
153
|
-
# models (e.g. Pet) or oneOf
|
154
|
-
klass = Algolia::Abtesting.const_get(type)
|
155
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
|
156
|
-
.build_from_hash(value)
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
# Returns the string representation of the object
|
161
|
-
# @return [String] String presentation of the object
|
162
|
-
def to_s
|
163
|
-
to_hash.to_s
|
164
|
-
end
|
165
|
-
|
166
|
-
# to_body is an alias to to_hash (backward compatibility)
|
167
|
-
# @return [Hash] Returns the object in the form of hash
|
168
|
-
def to_body
|
169
|
-
to_hash
|
170
|
-
end
|
171
|
-
|
172
|
-
def to_json(*_args)
|
173
|
-
to_hash.to_json
|
174
|
-
end
|
175
|
-
|
176
|
-
# Returns the object in the form of hash
|
177
|
-
# @return [Hash] Returns the object in the form of hash
|
178
|
-
def to_hash
|
179
|
-
hash = {}
|
180
|
-
self.class.attribute_map.each_pair do |attr, param|
|
181
|
-
value = send(attr)
|
182
|
-
if value.nil?
|
183
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
184
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
185
|
-
end
|
186
|
-
|
187
|
-
hash[param] = _to_hash(value)
|
188
|
-
end
|
189
|
-
|
190
|
-
hash
|
191
|
-
end
|
192
|
-
|
193
|
-
# Outputs non-array value in the form of hash
|
194
|
-
# For object, use to_hash. Otherwise, just return the value
|
195
|
-
# @param [Object] value Any valid value
|
196
|
-
# @return [Hash] Returns the value in the form of hash
|
197
|
-
def _to_hash(value)
|
198
|
-
if value.is_a?(Array)
|
199
|
-
value.compact.map { |v| _to_hash(v) }
|
200
|
-
elsif value.is_a?(Hash)
|
201
|
-
{}.tap do |hash|
|
202
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
203
|
-
end
|
204
|
-
elsif value.respond_to?(:to_hash)
|
205
|
-
value.to_hash
|
206
|
-
else
|
207
|
-
value
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
end
|
212
|
-
|
213
|
-
end
|
214
|
-
end
|