Skip to content

Commit

Permalink
Merge branch 'main' into feat/timeouts-per-specs
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Dec 3, 2024
2 parents 7aca9b3 + 01daf05 commit 7fe0bda
Show file tree
Hide file tree
Showing 51 changed files with 4,783 additions and 3,147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ public interface IIngestionClient
/// <param name="action">Actions for filtering the list of tasks. (optional)</param>
/// <param name="enabled">Whether to filter the list of tasks by the `enabled` status. (optional)</param>
/// <param name="sourceID">Source IDs for filtering the list of tasks. (optional)</param>
/// <param name="sourceType">Filters the tasks with the specified source type. (optional)</param>
/// <param name="destinationID">Destination IDs for filtering the list of tasks. (optional)</param>
/// <param name="triggerType">Type of task trigger for filtering the list of tasks. (optional)</param>
/// <param name="sort">Property by which to sort the list of tasks. (optional)</param>
Expand All @@ -1146,7 +1147,7 @@ public interface IIngestionClient
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
/// <returns>Task of ListTasksResponse</returns>
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);
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);

/// <summary>
/// Retrieves a list of tasks. (Synchronous version)
Expand All @@ -1161,6 +1162,7 @@ public interface IIngestionClient
/// <param name="action">Actions for filtering the list of tasks. (optional)</param>
/// <param name="enabled">Whether to filter the list of tasks by the `enabled` status. (optional)</param>
/// <param name="sourceID">Source IDs for filtering the list of tasks. (optional)</param>
/// <param name="sourceType">Filters the tasks with the specified source type. (optional)</param>
/// <param name="destinationID">Destination IDs for filtering the list of tasks. (optional)</param>
/// <param name="triggerType">Type of task trigger for filtering the list of tasks. (optional)</param>
/// <param name="sort">Property by which to sort the list of tasks. (optional)</param>
Expand All @@ -1171,7 +1173,7 @@ public interface IIngestionClient
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
/// <returns>ListTasksResponse</returns>
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);
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);

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


/// <inheritdoc />
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)
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)
{
var requestOptions = new InternalRequestOptions(options);

Expand All @@ -2742,6 +2744,7 @@ public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default,
requestOptions.AddQueryParameter("action", action);
requestOptions.AddQueryParameter("enabled", enabled);
requestOptions.AddQueryParameter("sourceID", sourceID);
requestOptions.AddQueryParameter("sourceType", sourceType);
requestOptions.AddQueryParameter("destinationID", destinationID);
requestOptions.AddQueryParameter("triggerType", triggerType);
requestOptions.AddQueryParameter("sort", sort);
Expand All @@ -2751,8 +2754,8 @@ public async Task<ListTasksResponse> ListTasksAsync(int? itemsPerPage = default,


/// <inheritdoc />
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) =>
AsyncHelper.RunSync(() => ListTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, options, cancellationToken));
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) =>
AsyncHelper.RunSync(() => ListTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, options, cancellationToken));


/// <inheritdoc />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,10 @@ public enum SourceType
[JsonPropertyName("shopify")]
Shopify = 8,

/// <summary>
/// Enum Sfcc for value: sfcc
/// </summary>
[JsonPropertyName("sfcc")]
Sfcc = 9,

/// <summary>
/// Enum Push for value: push
/// </summary>
[JsonPropertyName("push")]
Push = 10
Push = 9
}

21 changes: 21 additions & 0 deletions clients/algoliasearch-client-go/algolia/ingestion/api_ingestion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2508,6 +2508,7 @@ public CompletableFuture<ListSourcesResponse> listSourcesAsync() throws AlgoliaR
* @param action Actions for filtering the list of tasks. (optional)
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
* @param sourceID Source IDs for filtering the list of tasks. (optional)
* @param sourceType Filters the tasks with the specified source type. (optional)
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
Expand All @@ -2522,14 +2523,15 @@ public ListTasksResponse listTasks(
List<ActionType> action,
Boolean enabled,
List<String> sourceID,
List<SourceType> sourceType,
List<String> destinationID,
List<TriggerType> triggerType,
TaskSortKeys sort,
OrderKeys order,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
return LaunderThrowable.await(
listTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, requestOptions)
listTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, requestOptions)
);
}

Expand All @@ -2541,6 +2543,7 @@ public ListTasksResponse listTasks(
* @param action Actions for filtering the list of tasks. (optional)
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
* @param sourceID Source IDs for filtering the list of tasks. (optional)
* @param sourceType Filters the tasks with the specified source type. (optional)
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
Expand All @@ -2553,12 +2556,13 @@ public ListTasksResponse listTasks(
List<ActionType> action,
Boolean enabled,
List<String> sourceID,
List<SourceType> sourceType,
List<String> destinationID,
List<TriggerType> triggerType,
TaskSortKeys sort,
OrderKeys order
) throws AlgoliaRuntimeException {
return this.listTasks(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, null);
return this.listTasks(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, null);
}

/**
Expand All @@ -2569,7 +2573,7 @@ public ListTasksResponse listTasks(
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public ListTasksResponse listTasks(RequestOptions requestOptions) throws AlgoliaRuntimeException {
return this.listTasks(null, null, null, null, null, null, null, null, null, requestOptions);
return this.listTasks(null, null, null, null, null, null, null, null, null, null, requestOptions);
}

/**
Expand All @@ -2578,7 +2582,7 @@ public ListTasksResponse listTasks(RequestOptions requestOptions) throws Algolia
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public ListTasksResponse listTasks() throws AlgoliaRuntimeException {
return this.listTasks(null, null, null, null, null, null, null, null, null, null);
return this.listTasks(null, null, null, null, null, null, null, null, null, null, null);
}

/**
Expand All @@ -2589,6 +2593,7 @@ public ListTasksResponse listTasks() throws AlgoliaRuntimeException {
* @param action Actions for filtering the list of tasks. (optional)
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
* @param sourceID Source IDs for filtering the list of tasks. (optional)
* @param sourceType Filters the tasks with the specified source type. (optional)
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
Expand All @@ -2603,6 +2608,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
List<ActionType> action,
Boolean enabled,
List<String> sourceID,
List<SourceType> sourceType,
List<String> destinationID,
List<TriggerType> triggerType,
TaskSortKeys sort,
Expand All @@ -2617,6 +2623,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
.addQueryParameter("action", action)
.addQueryParameter("enabled", enabled)
.addQueryParameter("sourceID", sourceID)
.addQueryParameter("sourceType", sourceType)
.addQueryParameter("destinationID", destinationID)
.addQueryParameter("triggerType", triggerType)
.addQueryParameter("sort", sort)
Expand All @@ -2633,6 +2640,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
* @param action Actions for filtering the list of tasks. (optional)
* @param enabled Whether to filter the list of tasks by the `enabled` status. (optional)
* @param sourceID Source IDs for filtering the list of tasks. (optional)
* @param sourceType Filters the tasks with the specified source type. (optional)
* @param destinationID Destination IDs for filtering the list of tasks. (optional)
* @param triggerType Type of task trigger for filtering the list of tasks. (optional)
* @param sort Property by which to sort the list of tasks. (optional, default to createdAt)
Expand All @@ -2645,12 +2653,13 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
List<ActionType> action,
Boolean enabled,
List<String> sourceID,
List<SourceType> sourceType,
List<String> destinationID,
List<TriggerType> triggerType,
TaskSortKeys sort,
OrderKeys order
) throws AlgoliaRuntimeException {
return this.listTasksAsync(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, null);
return this.listTasksAsync(itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, null);
}

/**
Expand All @@ -2661,7 +2670,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<ListTasksResponse> listTasksAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException {
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, requestOptions);
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null, requestOptions);
}

/**
Expand All @@ -2670,7 +2679,7 @@ public CompletableFuture<ListTasksResponse> listTasksAsync(RequestOptions reques
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<ListTasksResponse> listTasksAsync() throws AlgoliaRuntimeException {
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null);
return this.listTasksAsync(null, null, null, null, null, null, null, null, null, null, null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public enum SourceType {

SHOPIFY("shopify"),

SFCC("sfcc"),

PUSH("push");

private final String value;
Expand Down
1 change: 1 addition & 0 deletions clients/algoliasearch-client-javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "algoliasearch-client-javascript",
"private": true,
"homepage": "https://github.com/algolia/algoliasearch-client-javascript#readme",
"type": "module",
"workspaces": [
"packages/*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript/packages/algoliasearch#readme",
"type": "module",
"license": "MIT",
"author": "Algolia",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript/packages/client-abtesting#readme",
"type": "module",
"license": "MIT",
"author": "Algolia",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript/packages/client-analytics#readme",
"type": "module",
"license": "MIT",
"author": "Algolia",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript#readme",
"license": "MIT",
"author": "Algolia",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript/packages/client-composition#readme",
"type": "module",
"license": "MIT",
"author": "Algolia",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript/packages/client-insights#readme",
"type": "module",
"license": "MIT",
"author": "Algolia",
Expand Down
Loading

0 comments on commit 7fe0bda

Please sign in to comment.