Skip to content

Commit 2c4f5cb

Browse files
committed
Merge branch 'main' into fix/broswe-read-transporter (generated)
Co-authored-by: Pierre Millot <[email protected]>
1 parent 6b81360 commit 2c4f5cb

File tree

40 files changed

+232
-148
lines changed

40 files changed

+232
-148
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Clients/SearchClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,6 +2199,7 @@ public async Task<BrowseResponse<T>> BrowseAsync<T>(string indexName, BrowsePara
21992199
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
22002200

22012201
requestOptions.Data = browseParams;
2202+
requestOptions.UseReadTransporter = true;
22022203
return await _transport.ExecuteRequestAsync<BrowseResponse<T>>(new HttpMethod("POST"), "/1/indexes/{indexName}/browse", requestOptions, cancellationToken).ConfigureAwait(false);
22032204
}
22042205

clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ final class SearchClient implements ApiClient {
374374
method: RequestMethod.post,
375375
path: r'/1/indexes/{indexName}/browse'.replaceAll(
376376
'{' r'indexName' '}', Uri.encodeComponent(indexName.toString())),
377+
isRead: true,
377378
body: browseParams?.toJson(),
378379
);
379380
final response = await _retryStrategy.execute(

clients/algoliasearch-client-go/algolia/abtesting/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/analytics/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/ingestion/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/insights/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/monitoring/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/personalization/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/query-suggestions/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/recommend/client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/search/api_search.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/SearchClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ public <T> CompletableFuture<BrowseResponse<T>> browseAsync(
678678
.setPath("/1/indexes/{indexName}/browse", indexName)
679679
.setMethod("POST")
680680
.setBody(browseParams)
681+
.setRead(true)
681682
.build();
682683
return executeAsync(request, requestOptions, BrowseResponse.class, innerType);
683684
}

clients/algoliasearch-client-javascript/packages/client-search/src/searchClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,7 @@ export function createSearchClient({
10291029
queryParameters,
10301030
headers,
10311031
data: browseParams ? browseParams : {},
1032+
useReadTransporter: true,
10321033
};
10331034

10341035
return transporter.request(request, requestOptions);

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public class SearchClient(
200200
val requestConfig = RequestConfig(
201201
method = RequestMethod.POST,
202202
path = listOf("1", "indexes", "$indexName", "browse"),
203+
isRead = true,
203204
body = browseParams,
204205
)
205206
return requester.execute(

clients/algoliasearch-client-php/lib/Api/AbtestingClient.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
use Algolia\AlgoliaSearch\Algolia;
88
use Algolia\AlgoliaSearch\Configuration\AbtestingConfig;
9+
use Algolia\AlgoliaSearch\Model\Abtesting\ABTest;
10+
use Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse;
911
use Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsRequest;
12+
use Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse;
13+
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse;
1014
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestsRequest;
1115
use Algolia\AlgoliaSearch\ObjectSerializer;
1216
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
@@ -124,7 +128,7 @@ public function setClientApiKey($apiKey)
124128
*
125129
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
126130
*
127-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
131+
* @return ABTestResponse|array<string, mixed>
128132
*/
129133
public function addABTests($addABTestsRequest, $requestOptions = [])
130134
{
@@ -310,7 +314,7 @@ public function customPut($path, $parameters = null, $body = null, $requestOptio
310314
* @param int $id Unique A/B test identifier. (required)
311315
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
312316
*
313-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
317+
* @return ABTestResponse|array<string, mixed>
314318
*/
315319
public function deleteABTest($id, $requestOptions = [])
316320
{
@@ -347,7 +351,7 @@ public function deleteABTest($id, $requestOptions = [])
347351
* @param int $id Unique A/B test identifier. (required)
348352
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
349353
*
350-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTest|array<string, mixed>
354+
* @return ABTest|array<string, mixed>
351355
*/
352356
public function getABTest($id, $requestOptions = [])
353357
{
@@ -387,7 +391,7 @@ public function getABTest($id, $requestOptions = [])
387391
* @param string $indexSuffix Index name suffix. Only A/B tests for indices ending with this string are included in the response. (optional)
388392
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
389393
*
390-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse|array<string, mixed>
394+
* @return array<string, mixed>|ListABTestsResponse
391395
*/
392396
public function listABTests($offset = null, $limit = null, $indexPrefix = null, $indexSuffix = null, $requestOptions = [])
393397
{
@@ -431,7 +435,7 @@ public function listABTests($offset = null, $limit = null, $indexPrefix = null,
431435
*
432436
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
433437
*
434-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse|array<string, mixed>
438+
* @return array<string, mixed>|ScheduleABTestResponse
435439
*/
436440
public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
437441
{
@@ -459,7 +463,7 @@ public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
459463
* @param int $id Unique A/B test identifier. (required)
460464
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
461465
*
462-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
466+
* @return ABTestResponse|array<string, mixed>
463467
*/
464468
public function stopABTest($id, $requestOptions = [])
465469
{

0 commit comments

Comments
 (0)