Skip to content

Commit 3008176

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 365f759 commit 3008176

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/scala/algoliasearch/api/IngestionClient.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import algoliasearch.ingestion.TransformationSearch
7272
import algoliasearch.ingestion.TransformationSortKeys._
7373
import algoliasearch.ingestion.TransformationTry
7474
import algoliasearch.ingestion.TransformationTryResponse
75+
import algoliasearch.ingestion.TransformationType._
7576
import algoliasearch.ingestion.TransformationUpdateResponse
7677
import algoliasearch.ingestion.TriggerType._
7778
import algoliasearch.ingestion.WatchResponse
@@ -1185,12 +1186,15 @@ class IngestionClient(
11851186
* Property by which to sort the list of transformations.
11861187
* @param order
11871188
* Sort order of the response, ascending or descending.
1189+
* @param `type`
1190+
* Whether to filter the list of transformations by the type of transformation.
11881191
*/
11891192
def listTransformations(
11901193
itemsPerPage: Option[Int] = None,
11911194
page: Option[Int] = None,
11921195
sort: Option[TransformationSortKeys] = None,
11931196
order: Option[OrderKeys] = None,
1197+
`type`: Option[TransformationType] = None,
11941198
requestOptions: Option[RequestOptions] = None
11951199
)(implicit ec: ExecutionContext): Future[ListTransformationsResponse] = Future {
11961200

@@ -1202,6 +1206,7 @@ class IngestionClient(
12021206
.withQueryParameter("page", page)
12031207
.withQueryParameter("sort", sort)
12041208
.withQueryParameter("order", order)
1209+
.withQueryParameter("type", `type`)
12051210
.build()
12061211
execute[ListTransformationsResponse](request, requestOptions)
12071212
}

0 commit comments

Comments
 (0)