Skip to content

Commit 675c65e

Browse files
algolia-botmillotp
andcommitted
fix(specs): add sourceType to listTasks [skip-bc] (generated)
algolia/api-clients-automation#4193 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 2cb142c commit 675c65e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,13 +812,14 @@ public class IngestionClient(
812812
* @param action Actions for filtering the list of tasks.
813813
* @param enabled Whether to filter the list of tasks by the `enabled` status.
814814
* @param sourceID Source IDs for filtering the list of tasks.
815+
* @param sourceType Filters the tasks with the specified source type.
815816
* @param destinationID Destination IDs for filtering the list of tasks.
816817
* @param triggerType Type of task trigger for filtering the list of tasks.
817818
* @param sort Property by which to sort the list of tasks. (default to createdAt)
818819
* @param order Sort order of the response, ascending or descending. (default to desc)
819820
* @param requestOptions additional request configuration.
820821
*/
821-
public suspend fun listTasks(itemsPerPage: Int? = null, page: Int? = null, action: List<ActionType>? = null, enabled: Boolean? = null, sourceID: List<String>? = null, destinationID: List<String>? = null, triggerType: List<TriggerType>? = null, sort: TaskSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTasksResponse {
822+
public suspend fun listTasks(itemsPerPage: Int? = null, page: Int? = null, action: List<ActionType>? = null, enabled: Boolean? = null, sourceID: List<String>? = null, sourceType: List<SourceType>? = null, destinationID: List<String>? = null, triggerType: List<TriggerType>? = null, sort: TaskSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTasksResponse {
822823
val requestConfig = RequestConfig(
823824
method = RequestMethod.GET,
824825
path = listOf("2", "tasks"),
@@ -828,6 +829,7 @@ public class IngestionClient(
828829
action?.let { put("action", it.joinToString(",")) }
829830
enabled?.let { put("enabled", it) }
830831
sourceID?.let { put("sourceID", it.joinToString(",")) }
832+
sourceType?.let { put("sourceType", it.joinToString(",")) }
831833
destinationID?.let { put("destinationID", it.joinToString(",")) }
832834
triggerType?.let { put("triggerType", it.joinToString(",")) }
833835
sort?.let { put("sort", it) }

0 commit comments

Comments
 (0)