Skip to content

Commit bb9e2be

Browse files
feat(specs): allow filtering transformations type (generated)
algolia/api-clients-automation#5363 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 57b2e05 commit bb9e2be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Api/IngestionClient.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,11 +1773,12 @@ public function listTasksV1($itemsPerPage = null, $page = null, $action = null,
17731773
* @param int $page Page number of the paginated API response. (optional)
17741774
* @param array $sort Property by which to sort the list of transformations. (optional)
17751775
* @param array $order Sort order of the response, ascending or descending. (optional)
1776+
* @param array $type Whether to filter the list of transformations by the type of transformation. (optional)
17761777
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
17771778
*
17781779
* @return array<string, mixed>|ListTransformationsResponse
17791780
*/
1780-
public function listTransformations($itemsPerPage = null, $page = null, $sort = null, $order = null, $requestOptions = [])
1781+
public function listTransformations($itemsPerPage = null, $page = null, $sort = null, $order = null, $type = null, $requestOptions = [])
17811782
{
17821783
$resourcePath = '/1/transformations';
17831784
$queryParameters = [];
@@ -1800,6 +1801,10 @@ public function listTransformations($itemsPerPage = null, $page = null, $sort =
18001801
$queryParameters['order'] = $order;
18011802
}
18021803

1804+
if (null !== $type) {
1805+
$queryParameters['type'] = $type;
1806+
}
1807+
18031808
return $this->sendRequest('GET', $resourcePath, $headers, $queryParameters, $httpBody, $requestOptions);
18041809
}
18051810

0 commit comments

Comments
 (0)