Skip to content

Commit 561d2cd

Browse files
Merge branch 'main' into fix/specs-ingestion-custom-timeout-endpoint (generated)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 36a9688 commit 561d2cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+385
-194
lines changed

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/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: 6 additions & 6 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/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-javascript/packages/ingestion/src/ingestionClient.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,15 @@ export function createIngestionClient({
17301730
data: pushTaskPayload,
17311731
};
17321732

1733+
requestOptions = {
1734+
timeouts: {
1735+
connect: 180000,
1736+
read: 180000,
1737+
write: 180000,
1738+
...requestOptions?.timeouts,
1739+
},
1740+
};
1741+
17331742
return transporter.request(request, requestOptions);
17341743
},
17351744

@@ -2075,6 +2084,15 @@ export function createIngestionClient({
20752084
headers,
20762085
};
20772086

2087+
requestOptions = {
2088+
timeouts: {
2089+
connect: 180000,
2090+
read: 180000,
2091+
write: 180000,
2092+
...requestOptions?.timeouts,
2093+
},
2094+
};
2095+
20782096
return transporter.request(request, requestOptions);
20792097
},
20802098

@@ -2427,6 +2445,15 @@ export function createIngestionClient({
24272445
data: sourceCreate ? sourceCreate : {},
24282446
};
24292447

2448+
requestOptions = {
2449+
timeouts: {
2450+
connect: 180000,
2451+
read: 180000,
2452+
write: 180000,
2453+
...requestOptions?.timeouts,
2454+
},
2455+
};
2456+
24302457
return transporter.request(request, requestOptions);
24312458
},
24322459

@@ -2466,6 +2493,15 @@ export function createIngestionClient({
24662493
data: sourceUpdate,
24672494
};
24682495

2496+
requestOptions = {
2497+
timeouts: {
2498+
connect: 180000,
2499+
read: 180000,
2500+
write: 180000,
2501+
...requestOptions?.timeouts,
2502+
},
2503+
};
2504+
24692505
return transporter.request(request, requestOptions);
24702506
},
24712507
};

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
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;
1012
use Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestRequest;
13+
use Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestResponse;
14+
use Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse;
15+
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse;
1116
use Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestsRequest;
1217
use Algolia\AlgoliaSearch\ObjectSerializer;
1318
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
@@ -125,7 +130,7 @@ public function setClientApiKey($apiKey)
125130
*
126131
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
127132
*
128-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
133+
* @return ABTestResponse|array<string, mixed>
129134
*/
130135
public function addABTests($addABTestsRequest, $requestOptions = [])
131136
{
@@ -311,7 +316,7 @@ public function customPut($path, $parameters = null, $body = null, $requestOptio
311316
* @param int $id Unique A/B test identifier. (required)
312317
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
313318
*
314-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
319+
* @return ABTestResponse|array<string, mixed>
315320
*/
316321
public function deleteABTest($id, $requestOptions = [])
317322
{
@@ -353,7 +358,7 @@ public function deleteABTest($id, $requestOptions = [])
353358
*
354359
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
355360
*
356-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\EstimateABTestResponse|array<string, mixed>
361+
* @return array<string, mixed>|EstimateABTestResponse
357362
*/
358363
public function estimateABTest($estimateABTestRequest, $requestOptions = [])
359364
{
@@ -381,7 +386,7 @@ public function estimateABTest($estimateABTestRequest, $requestOptions = [])
381386
* @param int $id Unique A/B test identifier. (required)
382387
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
383388
*
384-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTest|array<string, mixed>
389+
* @return ABTest|array<string, mixed>
385390
*/
386391
public function getABTest($id, $requestOptions = [])
387392
{
@@ -421,7 +426,7 @@ public function getABTest($id, $requestOptions = [])
421426
* @param string $indexSuffix Index name suffix. Only A/B tests for indices ending with this string are included in the response. (optional)
422427
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
423428
*
424-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ListABTestsResponse|array<string, mixed>
429+
* @return array<string, mixed>|ListABTestsResponse
425430
*/
426431
public function listABTests($offset = null, $limit = null, $indexPrefix = null, $indexSuffix = null, $requestOptions = [])
427432
{
@@ -465,7 +470,7 @@ public function listABTests($offset = null, $limit = null, $indexPrefix = null,
465470
*
466471
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
467472
*
468-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ScheduleABTestResponse|array<string, mixed>
473+
* @return array<string, mixed>|ScheduleABTestResponse
469474
*/
470475
public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
471476
{
@@ -493,7 +498,7 @@ public function scheduleABTest($scheduleABTestsRequest, $requestOptions = [])
493498
* @param int $id Unique A/B test identifier. (required)
494499
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
495500
*
496-
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse|array<string, mixed>
501+
* @return ABTestResponse|array<string, mixed>
497502
*/
498503
public function stopABTest($id, $requestOptions = [])
499504
{

0 commit comments

Comments
 (0)