Skip to content

Commit 7bd6833

Browse files
authored
Merge branch 'main' into feat/add-chopper-requester-package
2 parents 039a207 + cca0ead commit 7bd6833

File tree

322 files changed

+9734
-3006
lines changed

Some content is hidden

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

322 files changed

+9734
-3006
lines changed

.github/actions/setup/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ runs:
2323

2424
- name: Setup gradle
2525
if: inputs.type != 'minimal'
26-
uses: gradle/actions/setup-gradle@v3
26+
uses: gradle/actions/setup-gradle@v4
2727
with:
2828
validate-wrappers: true
2929
add-job-summary: 'on-failure'
3030

3131
- name: Download Java formatter
3232
if: inputs.type != 'minimal'
3333
shell: bash
34-
run: curl --retry 3 -L "https://github.com/google/google-java-format/releases/download/v1.22.0/google-java-format-1.22.0-all-deps.jar" > /tmp/java-formatter.jar
34+
run: curl --retry 3 -L "https://github.com/google/google-java-format/releases/download/v1.23.0/google-java-format-1.23.0-all-deps.jar" > /tmp/java-formatter.jar
3535

3636
# JavaScript for monorepo and tooling
3737
- name: Install Node

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.15.1
1+
20.16.0

.yarn/releases/yarn-4.3.1.cjs

-894
This file was deleted.

.yarn/releases/yarn-4.4.0.cjs

+925
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.3.1.cjs
7+
yarnPath: .yarn/releases/yarn-4.4.0.cjs

clients/algoliasearch-client-csharp/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [7.0.0-beta.12](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.11...7.0.0-beta.12)
2+
3+
- [e982ddf0a](https://github.com/algolia/api-clients-automation/commit/e982ddf0a) fix(specs): built-in ops accept also int ([#3450](https://github.com/algolia/api-clients-automation/pull/3450)) by [@kai687](https://github.com/kai687/)
4+
- [9a2e7a837](https://github.com/algolia/api-clients-automation/commit/9a2e7a837) fix(specs): required prop for dictionaryEntry ([#3449](https://github.com/algolia/api-clients-automation/pull/3449)) by [@kai687](https://github.com/kai687/)
5+
- [41d86ce68](https://github.com/algolia/api-clients-automation/commit/41d86ce68) feat(clients): delete unused models ([#3445](https://github.com/algolia/api-clients-automation/pull/3445)) by [@millotp](https://github.com/millotp/)
6+
- [e17970142](https://github.com/algolia/api-clients-automation/commit/e17970142) fix(specs): proper title with linter ([#3444](https://github.com/algolia/api-clients-automation/pull/3444)) by [@millotp](https://github.com/millotp/)
7+
- [8fbbd5ebd](https://github.com/algolia/api-clients-automation/commit/8fbbd5ebd) fix(specs): getObject return object ([#3446](https://github.com/algolia/api-clients-automation/pull/3446)) by [@millotp](https://github.com/millotp/)
8+
- [a35e814ab](https://github.com/algolia/api-clients-automation/commit/a35e814ab) fix(specs): clarify decompounding limitations ([#3227](https://github.com/algolia/api-clients-automation/pull/3227)) by [@kai687](https://github.com/kai687/)
9+
110
## [7.0.0-beta.11](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.10...7.0.0-beta.11)
211

312
- [3ec5f5f7e](https://github.com/algolia/api-clients-automation/commit/3ec5f5f7e) feat(specs): add v2 endpoints for ingestion ([#3416](https://github.com/algolia/api-clients-automation/pull/3416)) by [@shortcuts](https://github.com/shortcuts/)

clients/algoliasearch-client-csharp/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
* Injectable HTTP client.
3232
* Retry strategy & Helpers.
3333

34-
**Migration note for v7.x**
35-
36-
> In July 2024, we released v7 of our .NET client. If you are using version 6.x of the client, read the [migration guide to version 7.x](https://www.algolia.com/doc/api-client/getting-started/upgrade-guides/csharp/).
37-
3834
**Migration note from v5.x to v6.x**
3935

4036
> In January 2019, we released v6 of our .NET client. If you are using version 5.x of the client, read the [migration guide to version 6.x](https://www.algolia.com/doc/api-client/getting-started/upgrade-guides/csharp/).

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<RepositoryType>git</RepositoryType>
2222
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
2323
<Copyright>Copyright 2019 Algolia</Copyright>
24-
<Version>7.0.0-beta.11</Version>
24+
<Version>7.0.0-beta.12</Version>
2525
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2626
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
2727
<IncludeSymbols>true</IncludeSymbols>

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

+77
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,32 @@ public interface IIngestionClient
10211021
/// <returns>RunResponse</returns>
10221022
RunResponse PushTask(string taskID, BatchWriteParams batchWriteParams, RequestOptions options = null, CancellationToken cancellationToken = default);
10231023

1024+
/// <summary>
1025+
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
1026+
/// </summary>
1027+
/// <param name="sourceID">Unique identifier of a source.</param>
1028+
/// <param name="runSourcePayload"> (optional)</param>
1029+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1030+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1031+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1032+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1033+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1034+
/// <returns>Task of RunSourceResponse</returns>
1035+
Task<RunSourceResponse> RunSourceAsync(string sourceID, RunSourcePayload runSourcePayload = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1036+
1037+
/// <summary>
1038+
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task. (Synchronous version)
1039+
/// </summary>
1040+
/// <param name="sourceID">Unique identifier of a source.</param>
1041+
/// <param name="runSourcePayload"> (optional)</param>
1042+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1043+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1044+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1045+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1046+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1047+
/// <returns>RunSourceResponse</returns>
1048+
RunSourceResponse RunSource(string sourceID, RunSourcePayload runSourcePayload = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1049+
10241050
/// <summary>
10251051
/// Runs a task. You can check the status of task runs with the observability endpoints.
10261052
/// </summary>
@@ -3354,6 +3380,57 @@ public RunResponse PushTask(string taskID, BatchWriteParams batchWriteParams, Re
33543380
AsyncHelper.RunSync(() => PushTaskAsync(taskID, batchWriteParams, options, cancellationToken));
33553381

33563382

3383+
/// <summary>
3384+
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
3385+
/// </summary>
3386+
///
3387+
/// Required API Key ACLs:
3388+
/// - addObject
3389+
/// - deleteIndex
3390+
/// - editSettings
3391+
/// <param name="sourceID">Unique identifier of a source.</param>
3392+
/// <param name="runSourcePayload"> (optional)</param>
3393+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
3394+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
3395+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3396+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3397+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3398+
/// <returns>Task of RunSourceResponse</returns>
3399+
public async Task<RunSourceResponse> RunSourceAsync(string sourceID, RunSourcePayload runSourcePayload = default, RequestOptions options = null, CancellationToken cancellationToken = default)
3400+
{
3401+
3402+
if (sourceID == null)
3403+
throw new ArgumentException("Parameter `sourceID` is required when calling `RunSource`.");
3404+
3405+
var requestOptions = new InternalRequestOptions(options);
3406+
3407+
requestOptions.PathParameters.Add("sourceID", QueryStringHelper.ParameterToString(sourceID));
3408+
3409+
requestOptions.Data = runSourcePayload;
3410+
return await _transport.ExecuteRequestAsync<RunSourceResponse>(new HttpMethod("POST"), "/1/sources/{sourceID}/run", requestOptions, cancellationToken).ConfigureAwait(false);
3411+
}
3412+
3413+
3414+
/// <summary>
3415+
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task. (Synchronous version)
3416+
/// </summary>
3417+
///
3418+
/// Required API Key ACLs:
3419+
/// - addObject
3420+
/// - deleteIndex
3421+
/// - editSettings
3422+
/// <param name="sourceID">Unique identifier of a source.</param>
3423+
/// <param name="runSourcePayload"> (optional)</param>
3424+
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
3425+
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
3426+
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3427+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3428+
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3429+
/// <returns>RunSourceResponse</returns>
3430+
public RunSourceResponse RunSource(string sourceID, RunSourcePayload runSourcePayload = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3431+
AsyncHelper.RunSync(() => RunSourceAsync(sourceID, runSourcePayload, options, cancellationToken));
3432+
3433+
33573434
/// <summary>
33583435
/// Runs a task. You can check the status of task runs with the observability endpoints.
33593436
/// </summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
//
4+
using System;
5+
using System.Text;
6+
using System.Linq;
7+
using System.Text.Json.Serialization;
8+
using System.Collections.Generic;
9+
using Algolia.Search.Serializer;
10+
using System.Text.Json;
11+
12+
namespace Algolia.Search.Models.Ingestion;
13+
14+
/// <summary>
15+
/// Type of entity to update.
16+
/// </summary>
17+
/// <value>Type of entity to update.</value>
18+
public enum EntityType
19+
{
20+
/// <summary>
21+
/// Enum Product for value: product
22+
/// </summary>
23+
[JsonPropertyName("product")]
24+
Product = 1,
25+
26+
/// <summary>
27+
/// Enum Collection for value: collection
28+
/// </summary>
29+
[JsonPropertyName("collection")]
30+
Collection = 2
31+
}
32+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
//
2+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
//
4+
using System;
5+
using System.Text;
6+
using System.Linq;
7+
using System.Text.Json.Serialization;
8+
using System.Collections.Generic;
9+
using Algolia.Search.Serializer;
10+
using System.Text.Json;
11+
12+
namespace Algolia.Search.Models.Ingestion;
13+
14+
/// <summary>
15+
/// RunSourcePayload
16+
/// </summary>
17+
public partial class RunSourcePayload
18+
{
19+
20+
/// <summary>
21+
/// Gets or Sets EntityType
22+
/// </summary>
23+
[JsonPropertyName("entityType")]
24+
public EntityType? EntityType { get; set; }
25+
/// <summary>
26+
/// Initializes a new instance of the RunSourcePayload class.
27+
/// </summary>
28+
public RunSourcePayload()
29+
{
30+
}
31+
32+
/// <summary>
33+
/// List of index names to include in reidexing/update.
34+
/// </summary>
35+
/// <value>List of index names to include in reidexing/update.</value>
36+
[JsonPropertyName("indexToInclude")]
37+
public List<string> IndexToInclude { get; set; }
38+
39+
/// <summary>
40+
/// List of index names to exclude in reidexing/update.
41+
/// </summary>
42+
/// <value>List of index names to exclude in reidexing/update.</value>
43+
[JsonPropertyName("indexToExclude")]
44+
public List<string> IndexToExclude { get; set; }
45+
46+
/// <summary>
47+
/// List of entityID to update.
48+
/// </summary>
49+
/// <value>List of entityID to update.</value>
50+
[JsonPropertyName("entityIDs")]
51+
public List<string> EntityIDs { get; set; }
52+
53+
/// <summary>
54+
/// Returns the string presentation of the object
55+
/// </summary>
56+
/// <returns>String presentation of the object</returns>
57+
public override string ToString()
58+
{
59+
StringBuilder sb = new StringBuilder();
60+
sb.Append("class RunSourcePayload {\n");
61+
sb.Append(" IndexToInclude: ").Append(IndexToInclude).Append("\n");
62+
sb.Append(" IndexToExclude: ").Append(IndexToExclude).Append("\n");
63+
sb.Append(" EntityIDs: ").Append(EntityIDs).Append("\n");
64+
sb.Append(" EntityType: ").Append(EntityType).Append("\n");
65+
sb.Append("}\n");
66+
return sb.ToString();
67+
}
68+
69+
/// <summary>
70+
/// Returns the JSON string presentation of the object
71+
/// </summary>
72+
/// <returns>JSON string presentation of the object</returns>
73+
public virtual string ToJson()
74+
{
75+
return JsonSerializer.Serialize(this, JsonConfig.Options);
76+
}
77+
78+
/// <summary>
79+
/// Returns true if objects are equal
80+
/// </summary>
81+
/// <param name="obj">Object to be compared</param>
82+
/// <returns>Boolean</returns>
83+
public override bool Equals(object obj)
84+
{
85+
if (obj is not RunSourcePayload input)
86+
{
87+
return false;
88+
}
89+
90+
return
91+
(IndexToInclude == input.IndexToInclude || IndexToInclude != null && input.IndexToInclude != null && IndexToInclude.SequenceEqual(input.IndexToInclude)) &&
92+
(IndexToExclude == input.IndexToExclude || IndexToExclude != null && input.IndexToExclude != null && IndexToExclude.SequenceEqual(input.IndexToExclude)) &&
93+
(EntityIDs == input.EntityIDs || EntityIDs != null && input.EntityIDs != null && EntityIDs.SequenceEqual(input.EntityIDs)) &&
94+
(EntityType == input.EntityType || EntityType.Equals(input.EntityType));
95+
}
96+
97+
/// <summary>
98+
/// Gets the hash code
99+
/// </summary>
100+
/// <returns>Hash code</returns>
101+
public override int GetHashCode()
102+
{
103+
unchecked // Overflow is fine, just wrap
104+
{
105+
int hashCode = 41;
106+
if (IndexToInclude != null)
107+
{
108+
hashCode = (hashCode * 59) + IndexToInclude.GetHashCode();
109+
}
110+
if (IndexToExclude != null)
111+
{
112+
hashCode = (hashCode * 59) + IndexToExclude.GetHashCode();
113+
}
114+
if (EntityIDs != null)
115+
{
116+
hashCode = (hashCode * 59) + EntityIDs.GetHashCode();
117+
}
118+
hashCode = (hashCode * 59) + EntityType.GetHashCode();
119+
return hashCode;
120+
}
121+
}
122+
123+
}
124+

0 commit comments

Comments
 (0)