Skip to content

Commit 8ca207c

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit be1e0ef. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent be1e0ef commit 8ca207c

File tree

676 files changed

+9626
-8663
lines changed

Some content is hidden

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

676 files changed

+9626
-8663
lines changed

clients/algoliasearch-client-php/lib/Algolia.php

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
namespace Algolia\AlgoliaSearch;
44

55
use Algolia\AlgoliaSearch\Cache\NullCacheDriver;
6+
use Algolia\AlgoliaSearch\Http\CurlHttpClient;
7+
use Algolia\AlgoliaSearch\Http\GuzzleHttpClient;
68
use Algolia\AlgoliaSearch\Http\HttpClientInterface;
79
use Algolia\AlgoliaSearch\Log\DebugLogger;
10+
use GuzzleHttp\Client;
11+
use GuzzleHttp\ClientInterface;
812
use Psr\Log\LoggerInterface;
913
use Psr\SimpleCache\CacheInterface;
1014

@@ -15,19 +19,19 @@ final class Algolia
1519
/**
1620
* Holds an instance of the simple cache repository (PSR-16).
1721
*
18-
* @var null|\Psr\SimpleCache\CacheInterface
22+
* @var null|CacheInterface
1923
*/
2024
private static $cache;
2125

2226
/**
2327
* Holds an instance of the logger (PSR-3).
2428
*
25-
* @var null|\Psr\Log\LoggerInterface
29+
* @var null|LoggerInterface
2630
*/
2731
private static $logger;
2832

2933
/**
30-
* @var \Algolia\AlgoliaSearch\Http\HttpClientInterface
34+
* @var HttpClientInterface
3135
*/
3236
private static $httpClient;
3337

@@ -43,7 +47,7 @@ public static function isCacheEnabled()
4347
/**
4448
* Gets the cache instance.
4549
*
46-
* @return \Psr\SimpleCache\CacheInterface
50+
* @return CacheInterface
4751
*/
4852
public static function getCache()
4953
{
@@ -65,7 +69,7 @@ public static function setCache(CacheInterface $cache)
6569
/**
6670
* Gets the logger instance.
6771
*
68-
* @return \Psr\Log\LoggerInterface
72+
* @return LoggerInterface
6973
*/
7074
public static function getLogger()
7175
{
@@ -90,23 +94,23 @@ public static function getHttpClient()
9094
if (interface_exists('\GuzzleHttp\ClientInterface')) {
9195
if (defined('\GuzzleHttp\ClientInterface::VERSION')) {
9296
$guzzleVersion = (int) mb_substr(
93-
\GuzzleHttp\Client::VERSION,
97+
Client::VERSION,
9498
0,
9599
1
96100
);
97101
} else {
98-
$guzzleVersion = \GuzzleHttp\ClientInterface::MAJOR_VERSION;
102+
$guzzleVersion = ClientInterface::MAJOR_VERSION;
99103
}
100104
}
101105

102106
if (null === self::$httpClient) {
103107
if (class_exists('\GuzzleHttp\Client') && 6 <= $guzzleVersion) {
104108
self::setHttpClient(
105-
new \Algolia\AlgoliaSearch\Http\GuzzleHttpClient()
109+
new GuzzleHttpClient()
106110
);
107111
} else {
108112
self::setHttpClient(
109-
new \Algolia\AlgoliaSearch\Http\CurlHttpClient()
113+
new CurlHttpClient()
110114
);
111115
}
112116
}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
use Algolia\AlgoliaSearch\Algolia;
88
use Algolia\AlgoliaSearch\Configuration\AbtestingConfig;
9+
use Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsRequest;
910
use Algolia\AlgoliaSearch\ObjectSerializer;
1011
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1112
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
1213
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
14+
use GuzzleHttp\Psr7\Query;
1315

1416
/**
1517
* AbtestingClient Class Doc Comment.
@@ -107,7 +109,7 @@ public function getClientConfig()
107109
* - $addABTestsRequest['variants'] => (array) A/B test variants. (required)
108110
* - $addABTestsRequest['endAt'] => (string) End date and time of the A/B test, in RFC 3339 format. (required)
109111
*
110-
* @see \Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsRequest
112+
* @see AddABTestsRequest
111113
*
112114
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
113115
*
@@ -454,7 +456,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
454456

455457
$requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
456458
$requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
457-
$query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']);
459+
$query = Query::build($requestOptions['queryParameters']);
458460

459461
return $this->api->sendRequest(
460462
$method,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1111
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
1212
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
13+
use GuzzleHttp\Psr7\Query;
1314

1415
/**
1516
* AnalyticsClient Class Doc Comment.
@@ -1360,7 +1361,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
13601361

13611362
$requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
13621363
$requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
1363-
$query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']);
1364+
$query = Query::build($requestOptions['queryParameters']);
13641365

13651366
return $this->api->sendRequest(
13661367
$method,

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

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,26 @@
66

77
use Algolia\AlgoliaSearch\Algolia;
88
use Algolia\AlgoliaSearch\Configuration\IngestionConfig;
9+
use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationCreate;
10+
use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationSearch;
11+
use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationUpdate;
12+
use Algolia\AlgoliaSearch\Model\Ingestion\DestinationCreate;
13+
use Algolia\AlgoliaSearch\Model\Ingestion\DestinationSearch;
14+
use Algolia\AlgoliaSearch\Model\Ingestion\DestinationUpdate;
15+
use Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate;
16+
use Algolia\AlgoliaSearch\Model\Ingestion\SourceSearch;
17+
use Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate;
18+
use Algolia\AlgoliaSearch\Model\Ingestion\TaskCreate;
19+
use Algolia\AlgoliaSearch\Model\Ingestion\TaskSearch;
20+
use Algolia\AlgoliaSearch\Model\Ingestion\TaskUpdate;
21+
use Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate;
22+
use Algolia\AlgoliaSearch\Model\Ingestion\TransformationSearch;
23+
use Algolia\AlgoliaSearch\Model\Ingestion\TransformationTry;
924
use Algolia\AlgoliaSearch\ObjectSerializer;
1025
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1126
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
1227
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
28+
use GuzzleHttp\Psr7\Query;
1329

1430
/**
1531
* IngestionClient Class Doc Comment.
@@ -110,7 +126,7 @@ public function getClientConfig()
110126
* - $authenticationCreate['platform'] => (array)
111127
* - $authenticationCreate['input'] => (array) (required)
112128
*
113-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationCreate
129+
* @see AuthenticationCreate
114130
*
115131
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
116132
*
@@ -147,7 +163,7 @@ public function createAuthentication($authenticationCreate, $requestOptions = []
147163
* - $destinationCreate['input'] => (array) (required)
148164
* - $destinationCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
149165
*
150-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationCreate
166+
* @see DestinationCreate
151167
*
152168
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
153169
*
@@ -184,7 +200,7 @@ public function createDestination($destinationCreate, $requestOptions = [])
184200
* - $sourceCreate['input'] => (array) (required)
185201
* - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
186202
*
187-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate
203+
* @see SourceCreate
188204
*
189205
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
190206
*
@@ -220,7 +236,7 @@ public function createSource($sourceCreate, $requestOptions = [])
220236
* - $taskCreate['input'] => (array)
221237
* - $taskCreate['cursor'] => (string) Date of the last cursor in RFC 3339 format.
222238
*
223-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskCreate
239+
* @see TaskCreate
224240
*
225241
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
226242
*
@@ -251,7 +267,7 @@ public function createTask($taskCreate, $requestOptions = [])
251267
* - $transformationCreate['name'] => (string) The uniquely identified name of your transformation. (required)
252268
* - $transformationCreate['description'] => (string) A descriptive name for your transformation of what it does. (required)
253269
*
254-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate
270+
* @see TransformationCreate
255271
*
256272
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
257273
*
@@ -1525,7 +1541,7 @@ public function runTask($taskID, $requestOptions = [])
15251541
* @param array $authenticationSearch authenticationSearch (required)
15261542
* - $authenticationSearch['authenticationIDs'] => (array) (required)
15271543
*
1528-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationSearch
1544+
* @see AuthenticationSearch
15291545
*
15301546
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
15311547
*
@@ -1559,7 +1575,7 @@ public function searchAuthentications($authenticationSearch, $requestOptions = [
15591575
* @param array $destinationSearch destinationSearch (required)
15601576
* - $destinationSearch['destinationIDs'] => (array) (required)
15611577
*
1562-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationSearch
1578+
* @see DestinationSearch
15631579
*
15641580
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
15651581
*
@@ -1593,7 +1609,7 @@ public function searchDestinations($destinationSearch, $requestOptions = [])
15931609
* @param array $sourceSearch sourceSearch (required)
15941610
* - $sourceSearch['sourceIDs'] => (array) (required)
15951611
*
1596-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceSearch
1612+
* @see SourceSearch
15971613
*
15981614
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
15991615
*
@@ -1627,7 +1643,7 @@ public function searchSources($sourceSearch, $requestOptions = [])
16271643
* @param array $taskSearch taskSearch (required)
16281644
* - $taskSearch['taskIDs'] => (array) (required)
16291645
*
1630-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskSearch
1646+
* @see TaskSearch
16311647
*
16321648
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
16331649
*
@@ -1661,7 +1677,7 @@ public function searchTasks($taskSearch, $requestOptions = [])
16611677
* @param array $transformationSearch transformationSearch (required)
16621678
* - $transformationSearch['transformationsIDs'] => (array) (required)
16631679
*
1664-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationSearch
1680+
* @see TransformationSearch
16651681
*
16661682
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
16671683
*
@@ -1735,7 +1751,7 @@ public function triggerDockerSourceDiscover($sourceID, $requestOptions = [])
17351751
* - $transformationTry['code'] => (string) The source code of the transformation. (required)
17361752
* - $transformationTry['sampleRecord'] => (array) The record to apply the given code to. (required)
17371753
*
1738-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationTry
1754+
* @see TransformationTry
17391755
*
17401756
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
17411757
*
@@ -1773,7 +1789,7 @@ public function tryTransformations($transformationTry, $requestOptions = [])
17731789
* - $authenticationUpdate['platform'] => (array)
17741790
* - $authenticationUpdate['input'] => (array)
17751791
*
1776-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationUpdate
1792+
* @see AuthenticationUpdate
17771793
*
17781794
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
17791795
*
@@ -1826,7 +1842,7 @@ public function updateAuthentication($authenticationID, $authenticationUpdate, $
18261842
* - $destinationUpdate['input'] => (array)
18271843
* - $destinationUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
18281844
*
1829-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationUpdate
1845+
* @see DestinationUpdate
18301846
*
18311847
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
18321848
*
@@ -1878,7 +1894,7 @@ public function updateDestination($destinationID, $destinationUpdate, $requestOp
18781894
* - $sourceUpdate['input'] => (array)
18791895
* - $sourceUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
18801896
*
1881-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate
1897+
* @see SourceUpdate
18821898
*
18831899
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
18841900
*
@@ -1927,7 +1943,7 @@ public function updateSource($sourceID, $sourceUpdate, $requestOptions = [])
19271943
* - $taskUpdate['enabled'] => (bool) Whether the task is enabled.
19281944
* - $taskUpdate['failureThreshold'] => (int) Maximum accepted percentage of failures for a task run to finish successfully.
19291945
*
1930-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskUpdate
1946+
* @see TaskUpdate
19311947
*
19321948
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
19331949
*
@@ -1974,7 +1990,7 @@ public function updateTask($taskID, $taskUpdate, $requestOptions = [])
19741990
* - $transformationCreate['name'] => (string) The uniquely identified name of your transformation. (required)
19751991
* - $transformationCreate['description'] => (string) A descriptive name for your transformation of what it does. (required)
19761992
*
1977-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate
1993+
* @see TransformationCreate
19781994
*
19791995
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
19801996
*
@@ -2026,7 +2042,7 @@ public function updateTransformation($transformationID, $transformationCreate, $
20262042
* - $sourceCreate['input'] => (array) (required)
20272043
* - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
20282044
*
2029-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate
2045+
* @see SourceCreate
20302046
*
20312047
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
20322048
*
@@ -2056,7 +2072,7 @@ public function validateSource($sourceCreate = null, $requestOptions = [])
20562072
* - $sourceUpdate['input'] => (array)
20572073
* - $sourceUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
20582074
*
2059-
* @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate
2075+
* @see SourceUpdate
20602076
*
20612077
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
20622078
*
@@ -2105,7 +2121,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
21052121

21062122
$requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
21072123
$requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
2108-
$query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']);
2124+
$query = Query::build($requestOptions['queryParameters']);
21092125

21102126
return $this->api->sendRequest(
21112127
$method,

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
use Algolia\AlgoliaSearch\Algolia;
88
use Algolia\AlgoliaSearch\Configuration\InsightsConfig;
9+
use Algolia\AlgoliaSearch\Model\Insights\InsightsEvents;
910
use Algolia\AlgoliaSearch\ObjectSerializer;
1011
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1112
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
1213
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
14+
use GuzzleHttp\Psr7\Query;
1315

1416
/**
1517
* InsightsClient Class Doc Comment.
@@ -301,7 +303,7 @@ public function deleteUserToken($userToken, $requestOptions = [])
301303
* @param array $insightsEvents insightsEvents (required)
302304
* - $insightsEvents['events'] => (array) Click and conversion events. **All** events must be valid, otherwise the API returns an error. (required)
303305
*
304-
* @see \Algolia\AlgoliaSearch\Model\Insights\InsightsEvents
306+
* @see InsightsEvents
305307
*
306308
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
307309
*
@@ -335,7 +337,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
335337

336338
$requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
337339
$requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
338-
$query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']);
340+
$query = Query::build($requestOptions['queryParameters']);
339341

340342
return $this->api->sendRequest(
341343
$method,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1111
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
1212
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
13+
use GuzzleHttp\Psr7\Query;
1314

1415
/**
1516
* MonitoringClient Class Doc Comment.
@@ -530,7 +531,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
530531

531532
$requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
532533
$requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
533-
$query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']);
534+
$query = Query::build($requestOptions['queryParameters']);
534535

535536
return $this->api->sendRequest(
536537
$method,

0 commit comments

Comments
 (0)