@@ -1546,6 +1546,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
15461546 * @param array $action Actions for filtering the list of tasks. (optional)
15471547 * @param bool $enabled Whether to filter the list of tasks by the `enabled` status. (optional)
15481548 * @param array $sourceID Source IDs for filtering the list of tasks. (optional)
1549+ * @param array $sourceType Filters the tasks with the specified source type. (optional)
15491550 * @param array $destinationID Destination IDs for filtering the list of tasks. (optional)
15501551 * @param array $triggerType Type of task trigger for filtering the list of tasks. (optional)
15511552 * @param array $sort Property by which to sort the list of tasks. (optional)
@@ -1554,7 +1555,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
15541555 *
15551556 * @return \Algolia\AlgoliaSearch\Model\Ingestion\ListTasksResponse|array<string, mixed>
15561557 */
1557- public function listTasks ($ itemsPerPage = null , $ page = null , $ action = null , $ enabled = null , $ sourceID = null , $ destinationID = null , $ triggerType = null , $ sort = null , $ order = null , $ requestOptions = [])
1558+ public function listTasks ($ itemsPerPage = null , $ page = null , $ action = null , $ enabled = null , $ sourceID = null , $ sourceType = null , $ destinationID = null , $ triggerType = null , $ sort = null , $ order = null , $ requestOptions = [])
15581559 {
15591560 $ resourcePath = '/2/tasks ' ;
15601561 $ queryParameters = [];
@@ -1587,6 +1588,13 @@ public function listTasks($itemsPerPage = null, $page = null, $action = null, $e
15871588 $ queryParameters ['sourceID ' ] = $ sourceID ;
15881589 }
15891590
1591+ if (is_array ($ sourceType )) {
1592+ $ sourceType = ObjectSerializer::serializeCollection ($ sourceType , 'form ' , true );
1593+ }
1594+ if (null !== $ sourceType ) {
1595+ $ queryParameters ['sourceType ' ] = $ sourceType ;
1596+ }
1597+
15901598 if (is_array ($ destinationID )) {
15911599 $ destinationID = ObjectSerializer::serializeCollection ($ destinationID , 'form ' , true );
15921600 }
0 commit comments