algolia 3.10.2 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/Bug_report.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +8 -2
- data/lib/algolia/api/search_client.rb +56 -51
- data/lib/algolia/models/abtesting/ab_test.rb +0 -5
- data/lib/algolia/models/abtesting/ab_test_configuration.rb +0 -5
- data/lib/algolia/models/abtesting/ab_test_response.rb +0 -5
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -5
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +5 -3
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -5
- data/lib/algolia/models/abtesting/add_ab_tests_variant.rb +5 -6
- data/lib/algolia/models/abtesting/currency.rb +0 -5
- data/lib/algolia/models/abtesting/empty_search.rb +0 -5
- data/lib/algolia/models/abtesting/empty_search_filter.rb +0 -5
- data/lib/algolia/models/abtesting/error_base.rb +0 -5
- data/lib/algolia/models/abtesting/estimate_ab_test_request.rb +0 -5
- data/lib/algolia/models/abtesting/estimate_ab_test_response.rb +0 -5
- data/lib/algolia/models/abtesting/estimate_configuration.rb +0 -5
- data/lib/algolia/models/abtesting/filter_effects.rb +0 -5
- data/lib/algolia/models/abtesting/list_ab_tests_response.rb +0 -5
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -5
- data/lib/algolia/models/abtesting/outliers.rb +0 -5
- data/lib/algolia/models/abtesting/outliers_filter.rb +0 -5
- data/lib/algolia/models/abtesting/schedule_ab_test_response.rb +0 -5
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -5
- data/lib/algolia/models/abtesting/variant.rb +0 -5
- data/lib/algolia/models/analytics/click_position.rb +0 -5
- data/lib/algolia/models/analytics/currency_code.rb +0 -5
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -5
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -5
- data/lib/algolia/models/analytics/daily_revenue.rb +0 -5
- data/lib/algolia/models/analytics/daily_searches.rb +0 -5
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -5
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -5
- data/lib/algolia/models/analytics/daily_users.rb +0 -5
- data/lib/algolia/models/analytics/error_base.rb +0 -5
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -5
- data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -5
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -5
- data/lib/algolia/models/analytics/get_revenue.rb +0 -5
- data/lib/algolia/models/analytics/get_searches_count_response.rb +0 -5
- data/lib/algolia/models/analytics/get_searches_no_clicks_response.rb +0 -5
- data/lib/algolia/models/analytics/get_searches_no_results_response.rb +0 -5
- data/lib/algolia/models/analytics/get_status_response.rb +0 -5
- data/lib/algolia/models/analytics/get_top_countries_response.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filter_attribute.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filter_attributes_response.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filter_for_attribute.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filter_for_attribute_response.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filters_no_results_response.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filters_no_results_value.rb +0 -5
- data/lib/algolia/models/analytics/get_top_filters_no_results_values.rb +0 -5
- data/lib/algolia/models/analytics/get_top_hits_response.rb +5 -6
- data/lib/algolia/models/analytics/get_top_searches_response.rb +5 -6
- data/lib/algolia/models/analytics/get_users_count_response.rb +0 -5
- data/lib/algolia/models/analytics/top_country.rb +0 -5
- data/lib/algolia/models/analytics/top_hit.rb +0 -5
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_hits_response.rb +0 -5
- data/lib/algolia/models/analytics/top_hits_response_with_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_hits_response_with_revenue_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_search.rb +0 -5
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_searches_response.rb +0 -5
- data/lib/algolia/models/analytics/top_searches_response_with_analytics.rb +0 -5
- data/lib/algolia/models/analytics/top_searches_response_with_revenue_analytics.rb +0 -5
- data/lib/algolia/models/ingestion/auth_algolia.rb +0 -5
- data/lib/algolia/models/ingestion/auth_algolia_insights.rb +0 -5
- data/lib/algolia/models/ingestion/auth_algolia_insights_partial.rb +0 -5
- data/lib/algolia/models/ingestion/auth_algolia_partial.rb +0 -5
- data/lib/algolia/models/ingestion/auth_api_key.rb +5 -3
- data/lib/algolia/models/ingestion/auth_api_key_partial.rb +5 -3
- data/lib/algolia/models/ingestion/auth_basic.rb +6 -3
- data/lib/algolia/models/ingestion/auth_basic_partial.rb +5 -3
- data/lib/algolia/models/ingestion/auth_google_service_account.rb +6 -3
- data/lib/algolia/models/ingestion/auth_google_service_account_partial.rb +5 -3
- data/lib/algolia/models/ingestion/auth_input.rb +5 -6
- data/lib/algolia/models/ingestion/auth_input_partial.rb +5 -6
- data/lib/algolia/models/ingestion/auth_o_auth.rb +7 -3
- data/lib/algolia/models/ingestion/auth_o_auth_partial.rb +5 -3
- data/lib/algolia/models/ingestion/authentication.rb +0 -5
- data/lib/algolia/models/ingestion/authentication_create.rb +0 -5
- data/lib/algolia/models/ingestion/authentication_create_response.rb +0 -5
- data/lib/algolia/models/ingestion/authentication_search.rb +0 -5
- data/lib/algolia/models/ingestion/authentication_update.rb +0 -5
- data/lib/algolia/models/ingestion/authentication_update_response.rb +0 -5
- data/lib/algolia/models/ingestion/big_commerce_channel.rb +0 -5
- data/lib/algolia/models/ingestion/big_commerce_metafield.rb +0 -5
- data/lib/algolia/models/ingestion/commercetools_custom_fields.rb +0 -5
- data/lib/algolia/models/ingestion/delete_response.rb +0 -5
- data/lib/algolia/models/ingestion/destination.rb +0 -5
- data/lib/algolia/models/ingestion/destination_create.rb +0 -5
- data/lib/algolia/models/ingestion/destination_create_response.rb +0 -5
- data/lib/algolia/models/ingestion/destination_index_name.rb +0 -5
- data/lib/algolia/models/ingestion/destination_input.rb +5 -6
- data/lib/algolia/models/ingestion/destination_search.rb +0 -5
- data/lib/algolia/models/ingestion/destination_update.rb +0 -5
- data/lib/algolia/models/ingestion/destination_update_response.rb +0 -5
- data/lib/algolia/models/ingestion/docker_image_type.rb +1 -2
- data/lib/algolia/models/ingestion/docker_streams.rb +0 -5
- data/lib/algolia/models/ingestion/docker_streams_input.rb +6 -4
- data/lib/algolia/models/ingestion/email_notifications.rb +207 -0
- data/lib/algolia/models/ingestion/error_base.rb +0 -5
- data/lib/algolia/models/ingestion/event.rb +0 -5
- data/lib/algolia/models/ingestion/list_authentications_response.rb +0 -5
- data/lib/algolia/models/ingestion/list_destinations_response.rb +0 -5
- data/lib/algolia/models/ingestion/list_events_response.rb +0 -5
- data/lib/algolia/models/ingestion/list_sources_response.rb +0 -5
- data/lib/algolia/models/ingestion/list_tasks_response.rb +0 -5
- data/lib/algolia/models/ingestion/list_tasks_response_v1.rb +0 -5
- data/lib/algolia/models/ingestion/list_transformations_response.rb +0 -5
- data/lib/algolia/models/ingestion/mapping_field_directive.rb +0 -5
- data/lib/algolia/models/ingestion/mapping_input.rb +6 -3
- data/lib/algolia/models/ingestion/mapping_kit_action.rb +0 -5
- data/lib/algolia/models/ingestion/notifications.rb +209 -0
- data/lib/algolia/models/ingestion/on_demand_trigger.rb +0 -5
- data/lib/algolia/models/ingestion/on_demand_trigger_input.rb +0 -5
- data/lib/algolia/models/ingestion/pagination.rb +0 -5
- data/lib/algolia/models/ingestion/platform_with_none.rb +5 -6
- data/lib/algolia/models/ingestion/policies.rb +205 -0
- data/lib/algolia/models/ingestion/push_task_payload.rb +0 -5
- data/lib/algolia/models/ingestion/push_task_records.rb +0 -5
- data/lib/algolia/models/ingestion/run.rb +0 -5
- data/lib/algolia/models/ingestion/run_list_response.rb +0 -5
- data/lib/algolia/models/ingestion/run_progress.rb +0 -5
- data/lib/algolia/models/ingestion/run_response.rb +0 -5
- data/lib/algolia/models/ingestion/run_source_payload.rb +0 -5
- data/lib/algolia/models/ingestion/run_source_response.rb +0 -5
- data/lib/algolia/models/ingestion/schedule_trigger.rb +0 -5
- data/lib/algolia/models/ingestion/schedule_trigger_input.rb +5 -3
- data/lib/algolia/models/ingestion/shopify_input.rb +0 -5
- data/lib/algolia/models/ingestion/shopify_market.rb +0 -5
- data/lib/algolia/models/ingestion/shopify_metafield.rb +0 -5
- data/lib/algolia/models/ingestion/source.rb +0 -5
- data/lib/algolia/models/ingestion/source_big_commerce.rb +5 -3
- data/lib/algolia/models/ingestion/source_big_query.rb +5 -3
- data/lib/algolia/models/ingestion/source_commercetools.rb +5 -3
- data/lib/algolia/models/ingestion/source_create.rb +0 -5
- data/lib/algolia/models/ingestion/source_create_response.rb +0 -5
- data/lib/algolia/models/ingestion/source_csv.rb +0 -5
- data/lib/algolia/models/ingestion/source_docker.rb +8 -3
- data/lib/algolia/models/ingestion/source_ga4_big_query_export.rb +7 -3
- data/lib/algolia/models/ingestion/source_input.rb +5 -6
- data/lib/algolia/models/ingestion/source_json.rb +0 -5
- data/lib/algolia/models/ingestion/source_search.rb +0 -5
- data/lib/algolia/models/ingestion/source_shopify.rb +5 -3
- data/lib/algolia/models/ingestion/source_update.rb +0 -5
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +0 -5
- data/lib/algolia/models/ingestion/source_update_docker.rb +5 -3
- data/lib/algolia/models/ingestion/source_update_input.rb +5 -6
- data/lib/algolia/models/ingestion/source_update_response.rb +0 -5
- data/lib/algolia/models/ingestion/source_update_shopify.rb +0 -5
- data/lib/algolia/models/ingestion/streaming_input.rb +5 -3
- data/lib/algolia/models/ingestion/streaming_trigger.rb +0 -5
- data/lib/algolia/models/ingestion/subscription_trigger.rb +0 -5
- data/lib/algolia/models/ingestion/task.rb +20 -5
- data/lib/algolia/models/ingestion/task_create.rb +22 -9
- data/lib/algolia/models/ingestion/task_create_response.rb +0 -5
- data/lib/algolia/models/ingestion/task_create_trigger.rb +5 -6
- data/lib/algolia/models/ingestion/task_create_v1.rb +0 -5
- data/lib/algolia/models/ingestion/task_input.rb +5 -6
- data/lib/algolia/models/ingestion/task_search.rb +0 -5
- data/lib/algolia/models/ingestion/task_update.rb +22 -9
- data/lib/algolia/models/ingestion/task_update_response.rb +0 -5
- data/lib/algolia/models/ingestion/task_update_v1.rb +0 -5
- data/lib/algolia/models/ingestion/task_v1.rb +20 -5
- data/lib/algolia/models/ingestion/transformation.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_create.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_create_response.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_error.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_search.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_try.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_try_response.rb +0 -5
- data/lib/algolia/models/ingestion/transformation_update_response.rb +0 -5
- data/lib/algolia/models/ingestion/trigger.rb +5 -6
- data/lib/algolia/models/ingestion/trigger_update_input.rb +0 -5
- data/lib/algolia/models/ingestion/watch_response.rb +0 -5
- data/lib/algolia/models/ingestion/window.rb +0 -5
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +7 -3
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +8 -3
- data/lib/algolia/models/insights/clicked_filters.rb +6 -3
- data/lib/algolia/models/insights/clicked_object_ids.rb +6 -3
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +7 -3
- data/lib/algolia/models/insights/converted_filters.rb +6 -3
- data/lib/algolia/models/insights/converted_object_ids.rb +6 -3
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +6 -3
- data/lib/algolia/models/insights/discount.rb +5 -6
- data/lib/algolia/models/insights/error_base.rb +0 -5
- data/lib/algolia/models/insights/events_items.rb +5 -6
- data/lib/algolia/models/insights/events_response.rb +0 -5
- data/lib/algolia/models/insights/insights_events.rb +0 -5
- data/lib/algolia/models/insights/object_data.rb +0 -5
- data/lib/algolia/models/insights/object_data_after_search.rb +0 -5
- data/lib/algolia/models/insights/price.rb +5 -6
- data/lib/algolia/models/insights/purchased_object_ids.rb +7 -3
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +8 -3
- data/lib/algolia/models/insights/value.rb +5 -6
- data/lib/algolia/models/insights/viewed_filters.rb +6 -3
- data/lib/algolia/models/insights/viewed_object_ids.rb +6 -3
- data/lib/algolia/models/monitoring/error_base.rb +0 -5
- data/lib/algolia/models/monitoring/incident.rb +0 -5
- data/lib/algolia/models/monitoring/incident_entry.rb +0 -5
- data/lib/algolia/models/monitoring/incidents_response.rb +0 -5
- data/lib/algolia/models/monitoring/indexing_metric.rb +0 -5
- data/lib/algolia/models/monitoring/indexing_time_response.rb +0 -5
- data/lib/algolia/models/monitoring/infrastructure_response.rb +0 -5
- data/lib/algolia/models/monitoring/inventory_response.rb +0 -5
- data/lib/algolia/models/monitoring/latency_metric.rb +0 -5
- data/lib/algolia/models/monitoring/latency_response.rb +0 -5
- data/lib/algolia/models/monitoring/metrics.rb +0 -5
- data/lib/algolia/models/monitoring/probes_metric.rb +0 -5
- data/lib/algolia/models/monitoring/server.rb +0 -5
- data/lib/algolia/models/monitoring/status_response.rb +0 -5
- data/lib/algolia/models/monitoring/time_entry.rb +0 -5
- data/lib/algolia/models/personalization/delete_user_profile_response.rb +0 -5
- data/lib/algolia/models/personalization/error_base.rb +0 -5
- data/lib/algolia/models/personalization/{event_scoring.rb → events_scoring.rb} +3 -8
- data/lib/algolia/models/personalization/{facet_scoring.rb → facets_scoring.rb} +3 -8
- data/lib/algolia/models/personalization/get_user_token_response.rb +0 -5
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +17 -22
- data/lib/algolia/models/personalization/set_personalization_strategy_response.rb +0 -5
- data/lib/algolia/models/query-suggestions/base_response.rb +0 -5
- data/lib/algolia/models/query-suggestions/config_status.rb +0 -5
- data/lib/algolia/models/query-suggestions/configuration.rb +0 -5
- data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -5
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -5
- data/lib/algolia/models/query-suggestions/error_base.rb +0 -5
- data/lib/algolia/models/query-suggestions/facet.rb +0 -5
- data/lib/algolia/models/query-suggestions/languages.rb +5 -6
- data/lib/algolia/models/query-suggestions/log_file.rb +0 -5
- data/lib/algolia/models/query-suggestions/source_index.rb +0 -5
- data/lib/algolia/models/recommend/around_precision.rb +5 -6
- data/lib/algolia/models/recommend/around_radius.rb +5 -6
- data/lib/algolia/models/recommend/auto_facet_filter.rb +0 -5
- data/lib/algolia/models/recommend/banner.rb +0 -5
- data/lib/algolia/models/recommend/banner_image.rb +0 -5
- data/lib/algolia/models/recommend/banner_image_url.rb +0 -5
- data/lib/algolia/models/recommend/banner_link.rb +0 -5
- data/lib/algolia/models/recommend/bought_together_query.rb +0 -5
- data/lib/algolia/models/recommend/condition.rb +0 -5
- data/lib/algolia/models/recommend/consequence.rb +0 -5
- data/lib/algolia/models/recommend/deleted_at_response.rb +0 -5
- data/lib/algolia/models/recommend/distinct.rb +5 -6
- data/lib/algolia/models/recommend/error_base.rb +0 -5
- data/lib/algolia/models/recommend/exhaustive.rb +0 -5
- data/lib/algolia/models/recommend/facet_filters.rb +5 -6
- data/lib/algolia/models/recommend/facet_ordering.rb +0 -5
- data/lib/algolia/models/recommend/facet_stats.rb +0 -5
- data/lib/algolia/models/recommend/fallback_params.rb +0 -5
- data/lib/algolia/models/recommend/get_recommend_task_response.rb +0 -5
- data/lib/algolia/models/recommend/get_recommendations_params.rb +0 -5
- data/lib/algolia/models/recommend/get_recommendations_response.rb +0 -5
- data/lib/algolia/models/recommend/hide_consequence_object.rb +0 -5
- data/lib/algolia/models/recommend/highlight_result.rb +5 -6
- data/lib/algolia/models/recommend/highlight_result_option.rb +6 -3
- data/lib/algolia/models/recommend/ignore_plurals.rb +5 -6
- data/lib/algolia/models/recommend/index_settings_facets.rb +0 -5
- data/lib/algolia/models/recommend/inside_bounding_box.rb +5 -6
- data/lib/algolia/models/recommend/looking_similar_query.rb +0 -5
- data/lib/algolia/models/recommend/matched_geo_location.rb +0 -5
- data/lib/algolia/models/recommend/numeric_filters.rb +5 -6
- data/lib/algolia/models/recommend/optional_filters.rb +5 -6
- data/lib/algolia/models/recommend/optional_words.rb +5 -6
- data/lib/algolia/models/recommend/params_consequence.rb +0 -5
- data/lib/algolia/models/recommend/personalization.rb +0 -5
- data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -5
- data/lib/algolia/models/recommend/range.rb +0 -5
- data/lib/algolia/models/recommend/ranking_info.rb +0 -5
- data/lib/algolia/models/recommend/re_ranking_apply_filter.rb +5 -6
- data/lib/algolia/models/recommend/recommend_hit.rb +5 -3
- data/lib/algolia/models/recommend/recommend_rule.rb +0 -5
- data/lib/algolia/models/recommend/recommend_search_params.rb +0 -5
- data/lib/algolia/models/recommend/recommend_updated_at_response.rb +0 -5
- data/lib/algolia/models/recommend/recommendations_hit.rb +5 -6
- data/lib/algolia/models/recommend/recommendations_request.rb +5 -6
- data/lib/algolia/models/recommend/recommendations_results.rb +0 -5
- data/lib/algolia/models/recommend/redirect.rb +0 -5
- data/lib/algolia/models/recommend/redirect_rule_index_data.rb +0 -5
- data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +0 -5
- data/lib/algolia/models/recommend/redirect_url.rb +0 -5
- data/lib/algolia/models/recommend/related_query.rb +0 -5
- data/lib/algolia/models/recommend/remove_stop_words.rb +5 -6
- data/lib/algolia/models/recommend/rendering_content.rb +0 -5
- data/lib/algolia/models/recommend/rule_metadata.rb +0 -5
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +0 -5
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -5
- data/lib/algolia/models/recommend/snippet_result.rb +5 -6
- data/lib/algolia/models/recommend/snippet_result_option.rb +5 -3
- data/lib/algolia/models/recommend/tag_filters.rb +5 -6
- data/lib/algolia/models/recommend/time_range.rb +0 -5
- data/lib/algolia/models/recommend/trending_facet_hit.rb +6 -3
- data/lib/algolia/models/recommend/trending_facets_query.rb +0 -5
- data/lib/algolia/models/recommend/trending_items_query.rb +0 -5
- data/lib/algolia/models/recommend/typo_tolerance.rb +5 -6
- data/lib/algolia/models/recommend/value.rb +0 -5
- data/lib/algolia/models/recommend/widgets.rb +0 -5
- data/lib/algolia/models/search/add_api_key_response.rb +0 -5
- data/lib/algolia/models/search/api_key.rb +0 -5
- data/lib/algolia/models/search/around_precision.rb +5 -6
- data/lib/algolia/models/search/around_radius.rb +5 -6
- data/lib/algolia/models/search/assign_user_id_params.rb +0 -5
- data/lib/algolia/models/search/attribute_to_update.rb +5 -6
- data/lib/algolia/models/search/automatic_facet_filter.rb +0 -5
- data/lib/algolia/models/search/automatic_facet_filters.rb +5 -6
- data/lib/algolia/models/search/banner.rb +0 -5
- data/lib/algolia/models/search/banner_image.rb +0 -5
- data/lib/algolia/models/search/banner_image_url.rb +0 -5
- data/lib/algolia/models/search/banner_link.rb +0 -5
- data/lib/algolia/models/search/batch_assign_user_ids_params.rb +0 -5
- data/lib/algolia/models/search/batch_dictionary_entries_params.rb +0 -5
- data/lib/algolia/models/search/batch_dictionary_entries_request.rb +0 -5
- data/lib/algolia/models/search/batch_params.rb +0 -5
- data/lib/algolia/models/search/batch_request.rb +0 -5
- data/lib/algolia/models/search/batch_response.rb +0 -5
- data/lib/algolia/models/search/batch_write_params.rb +0 -5
- data/lib/algolia/models/search/browse_params.rb +5 -6
- data/lib/algolia/models/search/browse_params_object.rb +0 -5
- data/lib/algolia/models/search/browse_response.rb +0 -5
- data/lib/algolia/models/search/built_in_operation.rb +0 -5
- data/lib/algolia/models/search/built_in_operation_value.rb +5 -6
- data/lib/algolia/models/search/condition.rb +0 -5
- data/lib/algolia/models/search/consequence.rb +0 -5
- data/lib/algolia/models/search/consequence_hide.rb +0 -5
- data/lib/algolia/models/search/consequence_params.rb +0 -5
- data/lib/algolia/models/search/consequence_query.rb +5 -6
- data/lib/algolia/models/search/consequence_query_object.rb +0 -5
- data/lib/algolia/models/search/created_at_response.rb +0 -5
- data/lib/algolia/models/search/delete_api_key_response.rb +0 -5
- data/lib/algolia/models/search/delete_by_params.rb +0 -5
- data/lib/algolia/models/search/delete_source_response.rb +0 -5
- data/lib/algolia/models/search/deleted_at_response.rb +0 -5
- data/lib/algolia/models/search/dictionary_entry.rb +0 -5
- data/lib/algolia/models/search/dictionary_language.rb +0 -5
- data/lib/algolia/models/search/dictionary_settings_params.rb +0 -5
- data/lib/algolia/models/search/distinct.rb +5 -6
- data/lib/algolia/models/search/edit.rb +0 -5
- data/lib/algolia/models/search/error_base.rb +0 -5
- data/lib/algolia/models/search/exhaustive.rb +0 -5
- data/lib/algolia/models/search/facet_filters.rb +5 -6
- data/lib/algolia/models/search/facet_hits.rb +0 -5
- data/lib/algolia/models/search/facet_ordering.rb +0 -5
- data/lib/algolia/models/search/facet_stats.rb +0 -5
- data/lib/algolia/models/search/facets.rb +0 -5
- data/lib/algolia/models/search/fetched_index.rb +0 -5
- data/lib/algolia/models/search/get_api_key_response.rb +0 -5
- data/lib/algolia/models/search/get_dictionary_settings_response.rb +0 -5
- data/lib/algolia/models/search/get_logs_response.rb +0 -5
- data/lib/algolia/models/search/get_objects_params.rb +0 -5
- data/lib/algolia/models/search/get_objects_request.rb +0 -5
- data/lib/algolia/models/search/get_objects_response.rb +0 -5
- data/lib/algolia/models/search/get_task_response.rb +0 -5
- data/lib/algolia/models/search/get_top_user_ids_response.rb +0 -5
- data/lib/algolia/models/search/has_pending_mappings_response.rb +0 -5
- data/lib/algolia/models/search/highlight_result.rb +5 -6
- data/lib/algolia/models/search/highlight_result_option.rb +6 -3
- data/lib/algolia/models/search/hit.rb +0 -5
- data/lib/algolia/models/search/ignore_plurals.rb +5 -6
- data/lib/algolia/models/search/index_settings.rb +0 -5
- data/lib/algolia/models/search/inside_bounding_box.rb +5 -6
- data/lib/algolia/models/search/languages.rb +0 -5
- data/lib/algolia/models/search/list_api_keys_response.rb +0 -5
- data/lib/algolia/models/search/list_clusters_response.rb +0 -5
- data/lib/algolia/models/search/list_indices_response.rb +0 -5
- data/lib/algolia/models/search/list_user_ids_response.rb +0 -5
- data/lib/algolia/models/search/log.rb +0 -5
- data/lib/algolia/models/search/log_query.rb +0 -5
- data/lib/algolia/models/search/matched_geo_location.rb +0 -5
- data/lib/algolia/models/search/multiple_batch_request.rb +0 -5
- data/lib/algolia/models/search/multiple_batch_response.rb +0 -5
- data/lib/algolia/models/search/numeric_filters.rb +5 -6
- data/lib/algolia/models/search/operation_index_params.rb +0 -5
- data/lib/algolia/models/search/optional_filters.rb +5 -6
- data/lib/algolia/models/search/optional_words.rb +5 -6
- data/lib/algolia/models/search/personalization.rb +0 -5
- data/lib/algolia/models/search/promote.rb +5 -6
- data/lib/algolia/models/search/promote_object_id.rb +5 -3
- data/lib/algolia/models/search/promote_object_ids.rb +5 -3
- data/lib/algolia/models/search/range.rb +0 -5
- data/lib/algolia/models/search/ranking_info.rb +0 -5
- data/lib/algolia/models/search/re_ranking_apply_filter.rb +5 -6
- data/lib/algolia/models/search/redirect.rb +0 -5
- data/lib/algolia/models/search/redirect_rule_index_data.rb +0 -5
- data/lib/algolia/models/search/redirect_rule_index_metadata.rb +0 -5
- data/lib/algolia/models/search/redirect_url.rb +0 -5
- data/lib/algolia/models/search/remove_stop_words.rb +5 -6
- data/lib/algolia/models/search/remove_user_id_response.rb +0 -5
- data/lib/algolia/models/search/rendering_content.rb +0 -5
- data/lib/algolia/models/search/replace_all_objects_response.rb +0 -5
- data/lib/algolia/models/search/replace_source_response.rb +0 -5
- data/lib/algolia/models/search/rule.rb +0 -5
- data/lib/algolia/models/search/save_object_response.rb +0 -5
- data/lib/algolia/models/search/save_synonym_response.rb +0 -5
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -5
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +0 -5
- data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -5
- data/lib/algolia/models/search/search_for_facet_values_response.rb +5 -3
- data/lib/algolia/models/search/search_for_facets.rb +6 -3
- data/lib/algolia/models/search/search_for_hits.rb +0 -5
- data/lib/algolia/models/search/search_method_params.rb +0 -5
- data/lib/algolia/models/search/search_params.rb +5 -6
- data/lib/algolia/models/search/search_params_object.rb +0 -5
- data/lib/algolia/models/search/search_params_string.rb +5 -3
- data/lib/algolia/models/search/search_query.rb +5 -6
- data/lib/algolia/models/search/search_response.rb +0 -5
- data/lib/algolia/models/search/search_responses.rb +0 -5
- data/lib/algolia/models/search/search_result.rb +5 -6
- data/lib/algolia/models/search/search_rules_params.rb +0 -5
- data/lib/algolia/models/search/search_rules_response.rb +0 -5
- data/lib/algolia/models/search/search_synonyms_params.rb +0 -5
- data/lib/algolia/models/search/search_synonyms_response.rb +0 -5
- data/lib/algolia/models/search/search_user_ids_params.rb +0 -5
- data/lib/algolia/models/search/search_user_ids_response.rb +0 -5
- data/lib/algolia/models/search/secured_api_key_restrictions.rb +0 -5
- data/lib/algolia/models/search/semantic_search.rb +0 -5
- data/lib/algolia/models/search/settings_response.rb +0 -5
- data/lib/algolia/models/search/snippet_result.rb +5 -6
- data/lib/algolia/models/search/snippet_result_option.rb +5 -3
- data/lib/algolia/models/search/source.rb +0 -5
- data/lib/algolia/models/search/standard_entries.rb +0 -5
- data/lib/algolia/models/search/synonym_hit.rb +0 -5
- data/lib/algolia/models/search/tag_filters.rb +5 -6
- data/lib/algolia/models/search/time_range.rb +0 -5
- data/lib/algolia/models/search/typo_tolerance.rb +5 -6
- data/lib/algolia/models/search/update_api_key_response.rb +0 -5
- data/lib/algolia/models/search/updated_at_response.rb +0 -5
- data/lib/algolia/models/search/updated_at_with_object_id_response.rb +0 -5
- data/lib/algolia/models/search/user_highlight_result.rb +0 -5
- data/lib/algolia/models/search/user_hit.rb +0 -5
- data/lib/algolia/models/search/user_id.rb +0 -5
- data/lib/algolia/models/search/value.rb +0 -5
- data/lib/algolia/models/search/widgets.rb +0 -5
- data/lib/algolia/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e03e27a671f4b6127d02f16243cb618a72c903783922e011e4554618460461f3
|
4
|
+
data.tar.gz: f294f28279df6d8c8a926d1f0316d9446e81408ff4634548aa483bbc6b0ccc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67bfbead5107d4e2ff34f09ead938fb187369e7dfe262a844ecd3ffab78193e59c424d1f5fda64fd84346cc745361f4ee08cb772948d7df0d04454a2ef4c3b6e
|
7
|
+
data.tar.gz: aa6e751a43e053fd96364d4b0711663e2f3b1a2be571b61f1c7eaa5a94ea2ec561fb8b8fd91f2e14dafca308691663bf3ce9840916c59e7eda3c60a92ad0729c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## [3.11.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.10.2...3.11.0)
|
2
|
+
|
3
|
+
- [b569646304](https://github.com/algolia/api-clients-automation/commit/b569646304) fix(specs): drop singer from ingestion specs ([#4281](https://github.com/algolia/api-clients-automation/pull/4281)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
- [b2b5acddab](https://github.com/algolia/api-clients-automation/commit/b2b5acddab) chore(deps): dependencies 2024-12-30 ([#4286](https://github.com/algolia/api-clients-automation/pull/4286)) by [@algolia-bot](https://github.com/algolia-bot/)
|
5
|
+
- [37223c9779](https://github.com/algolia/api-clients-automation/commit/37223c9779) feat(clients): cleanup after replaceAllObjects failure ([#3824](https://github.com/algolia/api-clients-automation/pull/3824)) by [@millotp](https://github.com/millotp/)
|
6
|
+
- [47b567fd0d](https://github.com/algolia/api-clients-automation/commit/47b567fd0d) chore(deps): dependencies 2025-01-06 ([#4299](https://github.com/algolia/api-clients-automation/pull/4299)) by [@algolia-bot](https://github.com/algolia-bot/)
|
7
|
+
- [5328ce8333](https://github.com/algolia/api-clients-automation/commit/5328ce8333) feat(specs): add notification settings to tasks ([#4297](https://github.com/algolia/api-clients-automation/pull/4297)) by [@millotp](https://github.com/millotp/)
|
8
|
+
- [653b4f32c0](https://github.com/algolia/api-clients-automation/commit/653b4f32c0) fix(ruby): use discriminators for oneOf ([#4310](https://github.com/algolia/api-clients-automation/pull/4310)) by [@millotp](https://github.com/millotp/)
|
9
|
+
- [e7b3898f06](https://github.com/algolia/api-clients-automation/commit/e7b3898f06) feat(clients): add optionnal scopes to replaceAllObjects ([#4296](https://github.com/algolia/api-clients-automation/pull/4296)) by [@millotp](https://github.com/millotp/)
|
10
|
+
- [47193ad3d1](https://github.com/algolia/api-clients-automation/commit/47193ad3d1) chore: revert release ([#4314](https://github.com/algolia/api-clients-automation/pull/4314)) by [@shortcuts](https://github.com/shortcuts/)
|
11
|
+
|
1
12
|
## [3.10.2](https://github.com/algolia/algoliasearch-client-ruby/compare/3.10.1...3.10.2)
|
2
13
|
|
3
14
|
- [0481473fe0](https://github.com/algolia/api-clients-automation/commit/0481473fe0) chore: trigger auto close pr ([#4250](https://github.com/algolia/api-clients-automation/pull/4250)) by [@shortcuts](https://github.com/shortcuts/)
|
data/Gemfile.lock
CHANGED
@@ -1862,6 +1862,7 @@ module Algolia
|
|
1862
1862
|
# @param source_type [Array<SourceType>] Filters the tasks with the specified source type.
|
1863
1863
|
# @param destination_id [Array<String>] Destination IDs for filtering the list of tasks.
|
1864
1864
|
# @param trigger_type [Array<TriggerType>] Type of task trigger for filtering the list of tasks.
|
1865
|
+
# @param with_email_notifications [Boolean] If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
1865
1866
|
# @param sort [TaskSortKeys] Property by which to sort the list of tasks. (default to 'createdAt')
|
1866
1867
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1867
1868
|
# @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)
|
@@ -1875,6 +1876,7 @@ module Algolia
|
|
1875
1876
|
source_type = nil,
|
1876
1877
|
destination_id = nil,
|
1877
1878
|
trigger_type = nil,
|
1879
|
+
with_email_notifications = nil,
|
1878
1880
|
sort = nil,
|
1879
1881
|
order = nil,
|
1880
1882
|
request_options = {}
|
@@ -1892,6 +1894,7 @@ module Algolia
|
|
1892
1894
|
end
|
1893
1895
|
|
1894
1896
|
query_params[:triggerType] = @api_client.build_collection_param(trigger_type, :csv) unless trigger_type.nil?
|
1897
|
+
query_params[:withEmailNotifications] = with_email_notifications unless with_email_notifications.nil?
|
1895
1898
|
query_params[:sort] = sort unless sort.nil?
|
1896
1899
|
query_params[:order] = order unless order.nil?
|
1897
1900
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -1925,6 +1928,7 @@ module Algolia
|
|
1925
1928
|
# @param source_type [Array<SourceType>] Filters the tasks with the specified source type.
|
1926
1929
|
# @param destination_id [Array<String>] Destination IDs for filtering the list of tasks.
|
1927
1930
|
# @param trigger_type [Array<TriggerType>] Type of task trigger for filtering the list of tasks.
|
1931
|
+
# @param with_email_notifications [Boolean] If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
1928
1932
|
# @param sort [TaskSortKeys] Property by which to sort the list of tasks. (default to 'createdAt')
|
1929
1933
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1930
1934
|
# @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)
|
@@ -1938,6 +1942,7 @@ module Algolia
|
|
1938
1942
|
source_type = nil,
|
1939
1943
|
destination_id = nil,
|
1940
1944
|
trigger_type = nil,
|
1945
|
+
with_email_notifications = nil,
|
1941
1946
|
sort = nil,
|
1942
1947
|
order = nil,
|
1943
1948
|
request_options = {}
|
@@ -1951,6 +1956,7 @@ module Algolia
|
|
1951
1956
|
source_type,
|
1952
1957
|
destination_id,
|
1953
1958
|
trigger_type,
|
1959
|
+
with_email_notifications,
|
1954
1960
|
sort,
|
1955
1961
|
order,
|
1956
1962
|
request_options
|
@@ -2616,7 +2622,7 @@ module Algolia
|
|
2616
2622
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Transformation>")
|
2617
2623
|
end
|
2618
2624
|
|
2619
|
-
# Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
2625
|
+
# Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
2620
2626
|
#
|
2621
2627
|
# Required API Key ACLs:
|
2622
2628
|
# - addObject
|
@@ -2651,7 +2657,7 @@ module Algolia
|
|
2651
2657
|
@api_client.call_api(:POST, path, new_options)
|
2652
2658
|
end
|
2653
2659
|
|
2654
|
-
# Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
2660
|
+
# Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
2655
2661
|
#
|
2656
2662
|
# Required API Key ACLs:
|
2657
2663
|
# - addObject
|
@@ -3472,69 +3472,74 @@ module Algolia
|
|
3472
3472
|
# @param index_name [String] The `index_name` to replace `objects` in.
|
3473
3473
|
# @param objects [Array] The array of `objects` to store in the given Algolia `index_name`.
|
3474
3474
|
# @param batch_size [int] The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
3475
|
+
# @param scopes [Array] The `scopes` to keep from the index. Defaults to `['settings', 'rules', 'synonyms']`.
|
3475
3476
|
# @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)
|
3476
3477
|
#
|
3477
3478
|
# @return [Array<ReplaceAllObjectsResponse>]
|
3478
|
-
def replace_all_objects(
|
3479
|
+
def replace_all_objects(
|
3480
|
+
index_name,
|
3481
|
+
objects,
|
3482
|
+
batch_size = 1000,
|
3483
|
+
scopes = [Search::ScopeType::SETTINGS, Search::ScopeType::RULES, Search::ScopeType::SYNONYMS],
|
3484
|
+
request_options = {}
|
3485
|
+
)
|
3479
3486
|
tmp_index_name = index_name + "_tmp_" + rand(10_000_000).to_s
|
3480
3487
|
|
3481
|
-
|
3482
|
-
|
3483
|
-
|
3484
|
-
|
3485
|
-
|
3486
|
-
|
3487
|
-
|
3488
|
-
|
3489
|
-
|
3490
|
-
|
3491
|
-
),
|
3492
|
-
request_options
|
3493
|
-
)
|
3488
|
+
begin
|
3489
|
+
copy_operation_response = operation_index(
|
3490
|
+
index_name,
|
3491
|
+
Search::OperationIndexParams.new(
|
3492
|
+
operation: Search::OperationType::COPY,
|
3493
|
+
destination: tmp_index_name,
|
3494
|
+
scope: scopes
|
3495
|
+
),
|
3496
|
+
request_options
|
3497
|
+
)
|
3494
3498
|
|
3495
|
-
|
3496
|
-
|
3497
|
-
|
3498
|
-
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3502
|
-
|
3499
|
+
batch_responses = chunked_batch(
|
3500
|
+
tmp_index_name,
|
3501
|
+
objects,
|
3502
|
+
Search::Action::ADD_OBJECT,
|
3503
|
+
true,
|
3504
|
+
batch_size,
|
3505
|
+
request_options
|
3506
|
+
)
|
3503
3507
|
|
3504
|
-
|
3508
|
+
wait_for_task(tmp_index_name, copy_operation_response.task_id)
|
3505
3509
|
|
3506
|
-
|
3507
|
-
|
3508
|
-
|
3509
|
-
|
3510
|
-
|
3511
|
-
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
]
|
3516
|
-
),
|
3517
|
-
request_options
|
3518
|
-
)
|
3510
|
+
copy_operation_response = operation_index(
|
3511
|
+
index_name,
|
3512
|
+
Search::OperationIndexParams.new(
|
3513
|
+
operation: Search::OperationType::COPY,
|
3514
|
+
destination: tmp_index_name,
|
3515
|
+
scope: scopes
|
3516
|
+
),
|
3517
|
+
request_options
|
3518
|
+
)
|
3519
3519
|
|
3520
|
-
|
3520
|
+
wait_for_task(tmp_index_name, copy_operation_response.task_id)
|
3521
3521
|
|
3522
|
-
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3529
|
-
|
3522
|
+
move_operation_response = operation_index(
|
3523
|
+
tmp_index_name,
|
3524
|
+
Search::OperationIndexParams.new(
|
3525
|
+
operation: Search::OperationType::MOVE,
|
3526
|
+
destination: index_name
|
3527
|
+
),
|
3528
|
+
request_options
|
3529
|
+
)
|
3530
3530
|
|
3531
|
-
|
3531
|
+
wait_for_task(tmp_index_name, move_operation_response.task_id)
|
3532
3532
|
|
3533
|
-
|
3534
|
-
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3533
|
+
Search::ReplaceAllObjectsResponse.new(
|
3534
|
+
copy_operation_response: copy_operation_response,
|
3535
|
+
batch_responses: batch_responses,
|
3536
|
+
move_operation_response: move_operation_response
|
3537
|
+
)
|
3538
|
+
rescue Exception => e
|
3539
|
+
delete_index(tmp_index_name)
|
3540
|
+
|
3541
|
+
raise e
|
3542
|
+
end
|
3538
3543
|
end
|
3539
3544
|
|
3540
3545
|
def index_exists?(index_name)
|
@@ -27,9 +27,11 @@ module Algolia
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
-
# Returns
|
31
|
-
def self.
|
32
|
-
|
30
|
+
# Returns the keys that uniquely identify this oneOf variant when present
|
31
|
+
def self.discriminator_attributes
|
32
|
+
[
|
33
|
+
:customSearchParameters
|
34
|
+
]
|
33
35
|
end
|
34
36
|
|
35
37
|
# Attribute type mapping.
|
@@ -44,7 +44,6 @@ module Algolia
|
|
44
44
|
|
45
45
|
SchemaMismatchError = Class.new(StandardError)
|
46
46
|
|
47
|
-
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
48
47
|
def find_and_cast_into_type(klass, data)
|
49
48
|
return if data.nil?
|
50
49
|
|
@@ -83,12 +82,12 @@ module Algolia
|
|
83
82
|
if const.respond_to?(:openapi_one_of)
|
84
83
|
# nested oneOf model
|
85
84
|
model = const.build(data)
|
86
|
-
elsif const.respond_to?(:
|
87
|
-
|
88
|
-
|
89
|
-
|
85
|
+
elsif const.respond_to?(:discriminator_attributes)
|
86
|
+
if const.discriminator_attributes.all? { |attr| data.key?(attr) }
|
87
|
+
model = const.build_from_hash(data)
|
88
|
+
end
|
90
89
|
else
|
91
|
-
# maybe it's an enum
|
90
|
+
# maybe it's an enum, or doens't have discriminators
|
92
91
|
model = const.build_from_hash(data)
|
93
92
|
end
|
94
93
|
|