From 9167cff091efdc2c221ac5fad3b1f467159b1c23 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 27 Aug 2024 06:53:24 +0000 Subject: [PATCH] fix(specs): filter run list by type (generated) https://github.com/algolia/api-clients-automation/pull/3577 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- .../kotlin/com/algolia/client/api/IngestionClient.kt | 4 +++- .../kotlin/com/algolia/client/model/ingestion/RunType.kt | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt b/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt index 2c725426..0658ee6e 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt @@ -756,6 +756,7 @@ public class IngestionClient( * @param itemsPerPage Number of items per page. (default to 10) * @param page Page number of the paginated API response. * @param status Run status for filtering the list of task runs. + * @param type Run type for filtering the list of task runs. * @param taskID Task ID for filtering the list of task runs. * @param sort Property by which to sort the list of task runs. (default to createdAt) * @param order Sort order of the response, ascending or descending. (default to desc) @@ -763,7 +764,7 @@ public class IngestionClient( * @param endDate Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used. * @param requestOptions additional request configuration. */ - public suspend fun listRuns(itemsPerPage: Int? = null, page: Int? = null, status: List? = null, taskID: String? = null, sort: RunSortKeys? = null, order: OrderKeys? = null, startDate: String? = null, endDate: String? = null, requestOptions: RequestOptions? = null): RunListResponse { + public suspend fun listRuns(itemsPerPage: Int? = null, page: Int? = null, status: List? = null, type: List? = null, taskID: String? = null, sort: RunSortKeys? = null, order: OrderKeys? = null, startDate: String? = null, endDate: String? = null, requestOptions: RequestOptions? = null): RunListResponse { val requestConfig = RequestConfig( method = RequestMethod.GET, path = listOf("1", "runs"), @@ -771,6 +772,7 @@ public class IngestionClient( itemsPerPage?.let { put("itemsPerPage", it) } page?.let { put("page", it) } status?.let { put("status", it.joinToString(",")) } + type?.let { put("type", it.joinToString(",")) } taskID?.let { put("taskID", it) } sort?.let { put("sort", it) } order?.let { put("order", it) } diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunType.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunType.kt index e9d3ec59..4dd22e7c 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunType.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunType.kt @@ -16,7 +16,13 @@ public enum class RunType(public val value: kotlin.String) { Update("update"), @SerialName(value = "discover") - Discover("discover"); + Discover("discover"), + + @SerialName(value = "validate") + Validate("validate"), + + @SerialName(value = "push") + Push("push"); override fun toString(): kotlin.String = value }