Skip to content

Commit cbdb3a9

Browse files
algolia-botmillotp
authored andcommitted
fix(specs): add sourceType to listTasks [skip-bc] (#4193) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent ce3fdc5 commit cbdb3a9

File tree

13 files changed

+153
-17
lines changed

13 files changed

+153
-17
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Clients/IngestionClient.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@ public interface IIngestionClient
11361136
/// <param name="action">Actions for filtering the list of tasks. (optional)</param>
11371137
/// <param name="enabled">Whether to filter the list of tasks by the `enabled` status. (optional)</param>
11381138
/// <param name="sourceID">Source IDs for filtering the list of tasks. (optional)</param>
1139+
/// <param name="sourceType">Filters the tasks with the specified source type. (optional)</param>
11391140
/// <param name="destinationID">Destination IDs for filtering the list of tasks. (optional)</param>
11401141
/// <param name="triggerType">Type of task trigger for filtering the list of tasks. (optional)</param>
11411142
/// <param name="sort">Property by which to sort the list of tasks. (optional)</param>
@@ -1146,7 +1147,7 @@ public interface IIngestionClient
11461147
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
11471148
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
11481149
/// <returns>Task of ListTasksResponse</returns>
1149-
Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1150+
Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<SourceType> sourceType = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default);
11501151

11511152
/// <summary>
11521153
/// Retrieves a list of tasks. (Synchronous version)
@@ -1161,6 +1162,7 @@ public interface IIngestionClient
11611162
/// <param name="action">Actions for filtering the list of tasks. (optional)</param>
11621163
/// <param name="enabled">Whether to filter the list of tasks by the `enabled` status. (optional)</param>
11631164
/// <param name="sourceID">Source IDs for filtering the list of tasks. (optional)</param>
1165+
/// <param name="sourceType">Filters the tasks with the specified source type. (optional)</param>
11641166
/// <param name="destinationID">Destination IDs for filtering the list of tasks. (optional)</param>
11651167
/// <param name="triggerType">Type of task trigger for filtering the list of tasks. (optional)</param>
11661168
/// <param name="sort">Property by which to sort the list of tasks. (optional)</param>
@@ -1171,7 +1173,7 @@ public interface IIngestionClient
11711173
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
11721174
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
11731175
/// <returns>ListTasksResponse</returns>
1174-
ListTasksResponse ListTasks(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1176+
ListTasksResponse ListTasks(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<SourceType> sourceType = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default);
11751177

11761178
/// <summary>
11771179
/// Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
@@ -2732,7 +2734,7 @@ public ListSourcesResponse ListSources(int? itemsPerPage = default, int? page =
27322734

27332735

27342736
/// <inheritdoc />
2735-
public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default)
2737+
public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<SourceType> sourceType = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default)
27362738
{
27372739
var requestOptions = new InternalRequestOptions(options);
27382740

@@ -2742,6 +2744,7 @@ public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default,
27422744
requestOptions.AddQueryParameter("action", action);
27432745
requestOptions.AddQueryParameter("enabled", enabled);
27442746
requestOptions.AddQueryParameter("sourceID", sourceID);
2747+
requestOptions.AddQueryParameter("sourceType", sourceType);
27452748
requestOptions.AddQueryParameter("destinationID", destinationID);
27462749
requestOptions.AddQueryParameter("triggerType", triggerType);
27472750
requestOptions.AddQueryParameter("sort", sort);
@@ -2751,8 +2754,8 @@ public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default,
27512754

27522755

27532756
/// <inheritdoc />
2754-
public ListTasksResponse ListTasks(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
2755-
AsyncHelper.RunSync(() => ListTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, options, cancellationToken));
2757+
public ListTasksResponse ListTasks(int? itemsPerPage = default, int? page = default, List<ActionType> action = default, bool? enabled = default, List<string> sourceID = default, List<SourceType> sourceType = default, List<string> destinationID = default, List<TriggerType> triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
2758+
AsyncHelper.RunSync(() => ListTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, options, cancellationToken));
27562759

27572760

27582761
/// <inheritdoc />

clients/algoliasearch-client-go/algolia/ingestion/api_ingestion.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/IngestionClient.java

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,6 +2508,7 @@ public CompletableFuture<ListSourcesResponse> listSourcesAsync() throws AlgoliaR
25082508
* @param action Actions for filtering the list of tasks. (optional)
25092509
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
25102510
* @param sourceID Source IDs for filtering the list of tasks. (optional)
2511+
* @param sourceType Filters the tasks with the specified source type. (optional)
25112512
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
25122513
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
25132514
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
@@ -2522,14 +2523,15 @@ public ListTasksResponse listTasks(
25222523
List<ActionType> action,
25232524
Boolean enabled,
25242525
List<String> sourceID,
2526+
List<SourceType> sourceType,
25252527
List<String> destinationID,
25262528
List<TriggerType> triggerType,
25272529
TaskSortKeys sort,
25282530
OrderKeys order,
25292531
RequestOptions requestOptions
25302532
) throws AlgoliaRuntimeException {
25312533
return LaunderThrowable.await(
2532-
listTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, requestOptions)
2534+
listTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, requestOptions)
25332535
);
25342536
}
25352537

@@ -2541,6 +2543,7 @@ public ListTasksResponse listTasks(
25412543
* @param action Actions for filtering the list of tasks. (optional)
25422544
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
25432545
* @param sourceID Source IDs for filtering the list of tasks. (optional)
2546+
* @param sourceType Filters the tasks with the specified source type. (optional)
25442547
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
25452548
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
25462549
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
@@ -2553,12 +2556,13 @@ public ListTasksResponse listTasks(
25532556
List<ActionType> action,
25542557
Boolean enabled,
25552558
List<String> sourceID,
2559+
List<SourceType> sourceType,
25562560
List<String> destinationID,
25572561
List<TriggerType> triggerType,
25582562
TaskSortKeys sort,
25592563
OrderKeys order
25602564
) throws AlgoliaRuntimeException {
2561-
return this.listTasks(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, null);
2565+
return this.listTasks(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, null);
25622566
}
25632567

25642568
/**
@@ -2569,7 +2573,7 @@ public ListTasksResponse listTasks(
25692573
* @throws AlgoliaRuntimeException If it fails to process the API call
25702574
*/
25712575
public ListTasksResponse listTasks(RequestOptions requestOptions) throws AlgoliaRuntimeException {
2572-
return this.listTasks(null, null, null, null, null, null, null, null, null, requestOptions);
2576+
return this.listTasks(null, null, null, null, null, null, null, null, null, null, requestOptions);
25732577
}
25742578

25752579
/**
@@ -2578,7 +2582,7 @@ public ListTasksResponse listTasks(RequestOptions requestOptions) throws Algolia
25782582
* @throws AlgoliaRuntimeException If it fails to process the API call
25792583
*/
25802584
public ListTasksResponse listTasks() throws AlgoliaRuntimeException {
2581-
return this.listTasks(null, null, null, null, null, null, null, null, null, null);
2585+
return this.listTasks(null, null, null, null, null, null, null, null, null, null, null);
25822586
}
25832587

25842588
/**
@@ -2589,6 +2593,7 @@ public ListTasksResponse listTasks() throws AlgoliaRuntimeException {
25892593
* @param action Actions for filtering the list of tasks. (optional)
25902594
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
25912595
* @param sourceID Source IDs for filtering the list of tasks. (optional)
2596+
* @param sourceType Filters the tasks with the specified source type. (optional)
25922597
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
25932598
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
25942599
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
@@ -2603,6 +2608,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
26032608
List<ActionType> action,
26042609
Boolean enabled,
26052610
List<String> sourceID,
2611+
List<SourceType> sourceType,
26062612
List<String> destinationID,
26072613
List<TriggerType> triggerType,
26082614
TaskSortKeys sort,
@@ -2617,6 +2623,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
26172623
.addQueryParameter("action", action)
26182624
.addQueryParameter("enabled", enabled)
26192625
.addQueryParameter("sourceID", sourceID)
2626+
.addQueryParameter("sourceType", sourceType)
26202627
.addQueryParameter("destinationID", destinationID)
26212628
.addQueryParameter("triggerType", triggerType)
26222629
.addQueryParameter("sort", sort)
@@ -2633,6 +2640,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
26332640
* @param action Actions for filtering the list of tasks. (optional)
26342641
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
26352642
* @param sourceID Source IDs for filtering the list of tasks. (optional)
2643+
* @param sourceType Filters the tasks with the specified source type. (optional)
26362644
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
26372645
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
26382646
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
@@ -2645,12 +2653,13 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
26452653
List<ActionType> action,
26462654
Boolean enabled,
26472655
List<String> sourceID,
2656+
List<SourceType> sourceType,
26482657
List<String> destinationID,
26492658
List<TriggerType> triggerType,
26502659
TaskSortKeys sort,
26512660
OrderKeys order
26522661
) throws AlgoliaRuntimeException {
2653-
return this.listTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, null);
2662+
return this.listTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, null);
26542663
}
26552664

26562665
/**
@@ -2661,7 +2670,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
26612670
* @throws AlgoliaRuntimeException If it fails to process the API call
26622671
*/
26632672
public CompletableFuture<ListTasksResponse> listTasksAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException {
2664-
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, requestOptions);
2673+
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null, requestOptions);
26652674
}
26662675

26672676
/**
@@ -2670,7 +2679,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(RequestOptions reques
26702679
* @throws AlgoliaRuntimeException If it fails to process the API call
26712680
*/
26722681
public CompletableFuture<ListTasksResponse> listTasksAsync() throws AlgoliaRuntimeException {
2673-
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null);
2682+
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null, null);
26742683
}
26752684

26762685
/**

clients/algoliasearch-client-javascript/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
*/

clients/algoliasearch-client-javascript/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)