Skip to content

Commit 3505be0

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 e21db1c commit 3505be0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

packages/ingestion/model/clientMethodProps.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ export type ListTasksProps = {
490490
* Source IDs for filtering the list of tasks.
491491
*/
492492
sourceID?: Array<string>;
493+
/**
494+
* Filters the tasks with the specified source type.
495+
*/
496+
sourceType?: Array<SourceType>;
493497
/**
494498
* Destination IDs for filtering the list of tasks.
495499
*/

packages/ingestion/src/ingestionClient.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,14 +1484,26 @@ export function createIngestionClient({
14841484
* @param listTasks.action - Actions for filtering the list of tasks.
14851485
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
14861486
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
1487+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
14871488
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
14881489
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
14891490
* @param listTasks.sort - Property by which to sort the list of tasks.
14901491
* @param listTasks.order - Sort order of the response, ascending or descending.
14911492
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
14921493
*/
14931494
listTasks(
1494-
{ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }: ListTasksProps = {},
1495+
{
1496+
itemsPerPage,
1497+
page,
1498+
action,
1499+
enabled,
1500+
sourceID,
1501+
sourceType,
1502+
destinationID,
1503+
triggerType,
1504+
sort,
1505+
order,
1506+
}: ListTasksProps = {},
14951507
requestOptions: RequestOptions | undefined = undefined,
14961508
): Promise<ListTasksResponse> {
14971509
const requestPath = '/2/tasks';
@@ -1518,6 +1530,10 @@ export function createIngestionClient({
15181530
queryParameters['sourceID'] = sourceID.toString();
15191531
}
15201532

1533+
if (sourceType !== undefined) {
1534+
queryParameters['sourceType'] = sourceType.toString();
1535+
}
1536+
15211537
if (destinationID !== undefined) {
15221538
queryParameters['destinationID'] = destinationID.toString();
15231539
}

0 commit comments

Comments
 (0)