Skip to content

Commit 955118c

Browse files
authored
Merge branch 'main' into clara/refact/add-search-interface
2 parents f1f9d21 + 7e12fe3 commit 955118c

File tree

387 files changed

+6167
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+6167
-1622
lines changed

clients/algoliasearch-client-csharp/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [7.25.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.24.0...7.25.0)
2+
3+
- [b0a24b653a](https://github.com/algolia/api-clients-automation/commit/b0a24b653a) docs: use the correct link for replaceAllObjects ([#5185](https://github.com/algolia/api-clients-automation/pull/5185)) by [@millotp](https://github.com/millotp/)
4+
- [5cbd251539](https://github.com/algolia/api-clients-automation/commit/5cbd251539) chore(deps): dependencies 2025-08-04 ([#5187](https://github.com/algolia/api-clients-automation/pull/5187)) by [@algolia-bot](https://github.com/algolia-bot/)
5+
- [48672036c1](https://github.com/algolia/api-clients-automation/commit/48672036c1) refactor(specs): mutualise code between Search API & Comp API for search query parameters ([#5125](https://github.com/algolia/api-clients-automation/pull/5125)) by [@ClaraMuller](https://github.com/ClaraMuller/)
6+
- [ca6f3ca016](https://github.com/algolia/api-clients-automation/commit/ca6f3ca016) fix(specs): define batch actions ([#5242](https://github.com/algolia/api-clients-automation/pull/5242)) by [@kai687](https://github.com/kai687/)
7+
- [99f8174c7d](https://github.com/algolia/api-clients-automation/commit/99f8174c7d) feat(specs): add fields for metadata in composition injectedItems ([#5241](https://github.com/algolia/api-clients-automation/pull/5241)) by [@gavinwade12](https://github.com/gavinwade12/)
8+
- [e57faa4d4f](https://github.com/algolia/api-clients-automation/commit/e57faa4d4f) chore(deps): dependencies 2025-08-11 ([#5225](https://github.com/algolia/api-clients-automation/pull/5225)) by [@algolia-bot](https://github.com/algolia-bot/)
9+
- [ff178d8118](https://github.com/algolia/api-clients-automation/commit/ff178d8118) feat(specs): abtests stopped at ([#5275](https://github.com/algolia/api-clients-automation/pull/5275)) by [@stevenMevans](https://github.com/stevenMevans/)
10+
111
## [7.24.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.23.1...7.24.0)
212

313
- [66bc4eee9e](https://github.com/algolia/api-clients-automation/commit/66bc4eee9e) feat(clients): add new abtesting-v3 package to clients + stabilize alpha js package ([#5157](https://github.com/algolia/api-clients-automation/pull/5157)) by [@leonardogavaudan](https://github.com/leonardogavaudan/)

clients/algoliasearch-client-csharp/algoliasearch/Algolia.Search.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RepositoryUrl>https://github.com/algolia/algoliasearch-client-csharp</RepositoryUrl>
2020
<RepositoryType>git</RepositoryType>
2121
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
22-
<Version>7.24.0</Version>
22+
<Version>7.25.0</Version>
2323
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2424
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
2525
<IncludeSymbols>true</IncludeSymbols>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class AbtestingConfig : AlgoliaConfig
2828
/// <param name="apiKey">Your API Key</param>
2929
/// <param name="region">Targeted region (optional)</param>
3030
public AbtestingConfig(string appId, string apiKey, string region = null)
31-
: base(appId, apiKey, "Abtesting", "7.24.0")
31+
: base(appId, apiKey, "Abtesting", "7.25.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class AbtestingV3Config : AlgoliaConfig
2828
/// <param name="apiKey">Your API Key</param>
2929
/// <param name="region">Targeted region (optional)</param>
3030
public AbtestingV3Config(string appId, string apiKey, string region = null)
31-
: base(appId, apiKey, "AbtestingV3", "7.24.0")
31+
: base(appId, apiKey, "AbtestingV3", "7.25.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class AnalyticsConfig : AlgoliaConfig
2828
/// <param name="apiKey">Your API Key</param>
2929
/// <param name="region">Targeted region (optional)</param>
3030
public AnalyticsConfig(string appId, string apiKey, string region = null)
31-
: base(appId, apiKey, "Analytics", "7.24.0")
31+
: base(appId, apiKey, "Analytics", "7.25.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class CompositionConfig : AlgoliaConfig
2727
/// <param name="appId">Your application ID</param>
2828
/// <param name="apiKey">Your API Key</param>
2929
public CompositionConfig(string appId, string apiKey)
30-
: base(appId, apiKey, "Composition", "7.24.0")
30+
: base(appId, apiKey, "Composition", "7.25.0")
3131
{
3232
DefaultHosts = GetDefaultHosts(appId);
3333
Compression = CompressionType.None;

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

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,42 @@ WatchResponse PushTask(
17881788
CancellationToken cancellationToken = default
17891789
);
17901790

1791+
/// <summary>
1792+
/// Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields.
1793+
/// </summary>
1794+
/// <param name="taskID">Unique identifier of a task.</param>
1795+
/// <param name="taskReplace"></param>
1796+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1797+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1798+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1799+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1800+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1801+
/// <returns>Task of TaskUpdateResponse</returns>
1802+
Task<TaskUpdateResponse> ReplaceTaskAsync(
1803+
string taskID,
1804+
TaskReplace taskReplace,
1805+
RequestOptions options = null,
1806+
CancellationToken cancellationToken = default
1807+
);
1808+
1809+
/// <summary>
1810+
/// Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields. (Synchronous version)
1811+
/// </summary>
1812+
/// <param name="taskID">Unique identifier of a task.</param>
1813+
/// <param name="taskReplace"></param>
1814+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1815+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1816+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1817+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1818+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1819+
/// <returns>TaskUpdateResponse</returns>
1820+
TaskUpdateResponse ReplaceTask(
1821+
string taskID,
1822+
TaskReplace taskReplace,
1823+
RequestOptions options = null,
1824+
CancellationToken cancellationToken = default
1825+
);
1826+
17911827
/// <summary>
17921828
/// Runs all tasks linked to a source, only available for Shopify, BigCommerce and commercetools sources. Creates one run per task.
17931829
/// </summary>
@@ -2451,7 +2487,7 @@ SourceUpdateResponse UpdateSource(
24512487
);
24522488

24532489
/// <summary>
2454-
/// Updates a task by its ID.
2490+
/// Partially updates a task by its ID.
24552491
/// </summary>
24562492
/// <param name="taskID">Unique identifier of a task.</param>
24572493
/// <param name="taskUpdate"></param>
@@ -2469,7 +2505,7 @@ Task<TaskUpdateResponse> UpdateTaskAsync(
24692505
);
24702506

24712507
/// <summary>
2472-
/// Updates a task by its ID. (Synchronous version)
2508+
/// Partially updates a task by its ID. (Synchronous version)
24732509
/// </summary>
24742510
/// <param name="taskID">Unique identifier of a task.</param>
24752511
/// <param name="taskUpdate"></param>
@@ -4265,6 +4301,45 @@ public WatchResponse PushTask(
42654301
PushTaskAsync(taskID, pushTaskPayload, watch, options, cancellationToken)
42664302
);
42674303

4304+
/// <inheritdoc />
4305+
public async Task<TaskUpdateResponse> ReplaceTaskAsync(
4306+
string taskID,
4307+
TaskReplace taskReplace,
4308+
RequestOptions options = null,
4309+
CancellationToken cancellationToken = default
4310+
)
4311+
{
4312+
if (taskID == null)
4313+
throw new ArgumentException("Parameter `taskID` is required when calling `ReplaceTask`.");
4314+
4315+
if (taskReplace == null)
4316+
throw new ArgumentException(
4317+
"Parameter `taskReplace` is required when calling `ReplaceTask`."
4318+
);
4319+
4320+
var requestOptions = new InternalRequestOptions(options);
4321+
4322+
requestOptions.PathParameters.Add("taskID", QueryStringHelper.ParameterToString(taskID));
4323+
4324+
requestOptions.Data = taskReplace;
4325+
return await _transport
4326+
.ExecuteRequestAsync<TaskUpdateResponse>(
4327+
new HttpMethod("PUT"),
4328+
"/2/tasks/{taskID}",
4329+
requestOptions,
4330+
cancellationToken
4331+
)
4332+
.ConfigureAwait(false);
4333+
}
4334+
4335+
/// <inheritdoc />
4336+
public TaskUpdateResponse ReplaceTask(
4337+
string taskID,
4338+
TaskReplace taskReplace,
4339+
RequestOptions options = null,
4340+
CancellationToken cancellationToken = default
4341+
) => AsyncHelper.RunSync(() => ReplaceTaskAsync(taskID, taskReplace, options, cancellationToken));
4342+
42684343
/// <inheritdoc />
42694344
public async Task<RunSourceResponse> RunSourceAsync(
42704345
string sourceID,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class IngestionConfig : AlgoliaConfig
2828
/// <param name="apiKey">Your API Key</param>
2929
/// <param name="region">Targeted region </param>
3030
public IngestionConfig(string appId, string apiKey, string region)
31-
: base(appId, apiKey, "Ingestion", "7.24.0")
31+
: base(appId, apiKey, "Ingestion", "7.25.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class InsightsConfig : AlgoliaConfig
2828
/// <param name="apiKey">Your API Key</param>
2929
/// <param name="region">Targeted region (optional)</param>
3030
public InsightsConfig(string appId, string apiKey, string region = null)
31-
: base(appId, apiKey, "Insights", "7.24.0")
31+
: base(appId, apiKey, "Insights", "7.25.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class MonitoringConfig : AlgoliaConfig
2727
/// <param name="appId">Your application ID</param>
2828
/// <param name="apiKey">Your API Key</param>
2929
public MonitoringConfig(string appId, string apiKey)
30-
: base(appId, apiKey, "Monitoring", "7.24.0")
30+
: base(appId, apiKey, "Monitoring", "7.25.0")
3131
{
3232
DefaultHosts = GetDefaultHosts();
3333
Compression = CompressionType.None;

0 commit comments

Comments
 (0)