Skip to content

Commit

Permalink
trigger (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: shortcuts <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent c502280 commit 3da5b3b
Show file tree
Hide file tree
Showing 38 changed files with 255 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ public partial interface ISearchClient
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
/// <returns>Task of DeletedAtResponse</returns>
Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
/// <returns>Task of UpdatedAtResponse</returns>
Task<UpdatedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);

/// <summary>
/// This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch). (Synchronous version)
Expand All @@ -530,8 +530,8 @@ public partial interface ISearchClient
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
/// <returns>DeletedAtResponse</returns>
DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
/// <returns>UpdatedAtResponse</returns>
UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);

/// <summary>
/// Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
Expand Down Expand Up @@ -2374,7 +2374,7 @@ public DeleteApiKeyResponse DeleteApiKey(string key, RequestOptions options = nu


/// <inheritdoc />
public async Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default)
public async Task<UpdatedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default)
{

if (indexName == null)
Expand All @@ -2389,12 +2389,12 @@ public async Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByPar
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));

requestOptions.Data = deleteByParams;
return await _transport.ExecuteRequestAsync<DeletedAtResponse>(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false);
return await _transport.ExecuteRequestAsync<UpdatedAtResponse>(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false);
}


/// <inheritdoc />
public DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) =>
public UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) =>
AsyncHelper.RunSync(() => DeleteByAsync(indexName, deleteByParams, options, cancellationToken));


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ final class SearchClient implements ApiClient {
/// * [indexName] Name of the index on which to perform the operation.
/// * [deleteByParams]
/// * [requestOptions] additional request configuration.
Future<DeletedAtResponse> deleteBy({
Future<UpdatedAtResponse> deleteBy({
required String indexName,
required DeleteByParams deleteByParams,
RequestOptions? requestOptions,
Expand All @@ -692,9 +692,9 @@ final class SearchClient implements ApiClient {
request: request,
options: requestOptions,
);
return deserialize<DeletedAtResponse, DeletedAtResponse>(
return deserialize<UpdatedAtResponse, UpdatedAtResponse>(
response,
'DeletedAtResponse',
'UpdatedAtResponse',
growable: true,
);
}
Expand Down
4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/abtesting/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/analytics/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/ingestion/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/insights/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/monitoring/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/algoliasearch-client-go/algolia/recommend/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions clients/algoliasearch-client-go/algolia/search/api_search.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ public CompletableFuture<DeleteApiKeyResponse> deleteApiKeyAsync(@Nonnull String
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams, RequestOptions requestOptions)
public UpdatedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams, RequestOptions requestOptions)
throws AlgoliaRuntimeException {
return LaunderThrowable.await(deleteByAsync(indexName, deleteByParams, requestOptions));
}
Expand All @@ -1504,7 +1504,7 @@ public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByPa
* @param deleteByParams (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) throws AlgoliaRuntimeException {
public UpdatedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) throws AlgoliaRuntimeException {
return this.deleteBy(indexName, deleteByParams, null);
}

Expand All @@ -1519,7 +1519,7 @@ public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByPa
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<DeletedAtResponse> deleteByAsync(
public CompletableFuture<UpdatedAtResponse> deleteByAsync(
@Nonnull String indexName,
@Nonnull DeleteByParams deleteByParams,
RequestOptions requestOptions
Expand All @@ -1533,7 +1533,7 @@ public CompletableFuture<DeletedAtResponse> deleteByAsync(
.setMethod("POST")
.setBody(deleteByParams)
.build();
return executeAsync(request, requestOptions, new TypeReference<DeletedAtResponse>() {});
return executeAsync(request, requestOptions, new TypeReference<UpdatedAtResponse>() {});
}

/**
Expand All @@ -1545,7 +1545,7 @@ public CompletableFuture<DeletedAtResponse> deleteByAsync(
* @param deleteByParams (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<DeletedAtResponse> deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams)
public CompletableFuture<UpdatedAtResponse> deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams)
throws AlgoliaRuntimeException {
return this.deleteByAsync(indexName, deleteByParams, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ export function createSearchClient({
deleteBy(
{ indexName, deleteByParams }: DeleteByProps,
requestOptions?: RequestOptions,
): Promise<DeletedAtResponse> {
): Promise<UpdatedAtResponse> {
if (!indexName) {
throw new Error('Parameter `indexName` is required when calling `deleteBy`.');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public class SearchClient(
* @param deleteByParams
* @param requestOptions additional request configuration.
*/
public suspend fun deleteBy(indexName: String, deleteByParams: DeleteByParams, requestOptions: RequestOptions? = null): DeletedAtResponse {
public suspend fun deleteBy(indexName: String, deleteByParams: DeleteByParams, requestOptions: RequestOptions? = null): UpdatedAtResponse {
require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `deleteBy`." }
val requestConfig = RequestConfig(
method = RequestMethod.POST,
Expand Down
19 changes: 12 additions & 7 deletions clients/algoliasearch-client-php/lib/Api/AbtestingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@

use Algolia\AlgoliaSearch\Algolia;
use Algolia\AlgoliaSearch\Configuration\AbtestingConfig;
use Algolia\AlgoliaSearch\Model\Abtesting\ABTest;
use Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse;
use Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsRequest;
use Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestRequest;
use Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestResponse;
use Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse;
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse;
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestsRequest;
use Algolia\AlgoliaSearch\ObjectSerializer;
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
Expand Down Expand Up @@ -125,7 +130,7 @@ public function setClientApiKey($apiKey)
*
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
* @return ABTestResponse|array<string, mixed>
*/
public function addABTests($addABTestsRequest, $requestOptions = [])
{
Expand Down Expand Up @@ -311,7 +316,7 @@ public function customPut($path, $parameters = null, $body = null, $requestOptio
* @param int $id Unique A/B test identifier. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
* @return ABTestResponse|array<string, mixed>
*/
public function deleteABTest($id, $requestOptions = [])
{
Expand Down Expand Up @@ -353,7 +358,7 @@ public function deleteABTest($id, $requestOptions = [])
*
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestResponse|array<string, mixed>
* @return array<string, mixed>|EstimateABTestResponse
*/
public function estimateABTest($estimateABTestRequest, $requestOptions = [])
{
Expand Down Expand Up @@ -381,7 +386,7 @@ public function estimateABTest($estimateABTestRequest, $requestOptions = [])
* @param int $id Unique A/B test identifier. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTest|array<string, mixed>
* @return ABTest|array<string, mixed>
*/
public function getABTest($id, $requestOptions = [])
{
Expand Down Expand Up @@ -421,7 +426,7 @@ public function getABTest($id, $requestOptions = [])
* @param string $indexSuffix Index name suffix. Only A/B tests for indices ending with this string are included in the response. (optional)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse|array<string, mixed>
* @return array<string, mixed>|ListABTestsResponse
*/
public function listABTests($offset = null, $limit = null, $indexPrefix = null, $indexSuffix = null, $requestOptions = [])
{
Expand Down Expand Up @@ -465,7 +470,7 @@ public function listABTests($offset = null, $limit = null, $indexPrefix = null,
*
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse|array<string, mixed>
* @return array<string, mixed>|ScheduleABTestResponse
*/
public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
{
Expand Down Expand Up @@ -493,7 +498,7 @@ public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
* @param int $id Unique A/B test identifier. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
* @return ABTestResponse|array<string, mixed>
*/
public function stopABTest($id, $requestOptions = [])
{
Expand Down
Loading

0 comments on commit 3da5b3b

Please sign in to comment.