Skip to content

Commit b22db80

Browse files
authored
Merge branch 'main' into chore/renovateBaseBranch
2 parents 99ae997 + 95dd611 commit b22db80

File tree

108 files changed

+2077
-232
lines changed

Some content is hidden

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

108 files changed

+2077
-232
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ Rule GetRule(
12351235
/// Required API Key ACLs:
12361236
/// - settings
12371237
/// <param name="indexName">Name of the index on which to perform the operation.</param>
1238+
/// <param name="getVersion">When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility. (optional, default to 1)</param>
12381239
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
12391240
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
12401241
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1243,6 +1244,7 @@ Rule GetRule(
12431244
/// <returns>Task of SettingsResponse</returns>
12441245
Task<SettingsResponse> GetSettingsAsync(
12451246
string indexName,
1247+
int? getVersion = default,
12461248
RequestOptions options = null,
12471249
CancellationToken cancellationToken = default
12481250
);
@@ -1254,6 +1256,7 @@ Task<SettingsResponse> GetSettingsAsync(
12541256
/// Required API Key ACLs:
12551257
/// - settings
12561258
/// <param name="indexName">Name of the index on which to perform the operation.</param>
1259+
/// <param name="getVersion">When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility. (optional, default to 1)</param>
12571260
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
12581261
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
12591262
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1262,6 +1265,7 @@ Task<SettingsResponse> GetSettingsAsync(
12621265
/// <returns>SettingsResponse</returns>
12631266
SettingsResponse GetSettings(
12641267
string indexName,
1268+
int? getVersion = default,
12651269
RequestOptions options = null,
12661270
CancellationToken cancellationToken = default
12671271
);
@@ -3731,6 +3735,7 @@ public Rule GetRule(
37313735
/// <inheritdoc />
37323736
public async Task<SettingsResponse> GetSettingsAsync(
37333737
string indexName,
3738+
int? getVersion = default,
37343739
RequestOptions options = null,
37353740
CancellationToken cancellationToken = default
37363741
)
@@ -3742,6 +3747,7 @@ public async Task<SettingsResponse> GetSettingsAsync(
37423747

37433748
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
37443749

3750+
requestOptions.AddQueryParameter("getVersion", getVersion);
37453751
return await _transport
37463752
.ExecuteRequestAsync<SettingsResponse>(
37473753
new HttpMethod("GET"),
@@ -3755,9 +3761,11 @@ public async Task<SettingsResponse> GetSettingsAsync(
37553761
/// <inheritdoc />
37563762
public SettingsResponse GetSettings(
37573763
string indexName,
3764+
int? getVersion = default,
37583765
RequestOptions options = null,
37593766
CancellationToken cancellationToken = default
3760-
) => AsyncHelper.RunSync(() => GetSettingsAsync(indexName, options, cancellationToken));
3767+
) =>
3768+
AsyncHelper.RunSync(() => GetSettingsAsync(indexName, getVersion, options, cancellationToken));
37613769

37623770
/// <inheritdoc />
37633771
public async Task<List<Source>> GetSourcesAsync(

clients/algoliasearch-client-csharp/algoliasearch/Utils/SearchClientExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ public async Task<bool> IndexExistsAsync(
11571157
{
11581158
try
11591159
{
1160-
await GetSettingsAsync(indexName, null, cancellationToken);
1160+
await GetSettingsAsync(indexName, null, null, cancellationToken);
11611161
}
11621162
catch (AlgoliaApiException ex) when (ex.HttpErrorCode == 404)
11631163
{

clients/algoliasearch-client-dart/packages/client_search/lib/src/api/search_client.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,9 +1168,11 @@ final class SearchClient implements ApiClient {
11681168
///
11691169
/// Parameters:
11701170
/// * [indexName] Name of the index on which to perform the operation.
1171+
/// * [getVersion] When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
11711172
/// * [requestOptions] additional request configuration.
11721173
Future<SettingsResponse> getSettings({
11731174
required String indexName,
1175+
int? getVersion,
11741176
RequestOptions? requestOptions,
11751177
}) async {
11761178
assert(
@@ -1181,6 +1183,9 @@ final class SearchClient implements ApiClient {
11811183
method: RequestMethod.get,
11821184
path: r'/1/indexes/{indexName}/settings'.replaceAll(
11831185
'{' r'indexName' '}', Uri.encodeComponent(indexName.toString())),
1186+
queryParams: {
1187+
if (getVersion != null) 'getVersion': getVersion,
1188+
},
11841189
);
11851190
final response = await _retryStrategy.execute(
11861191
request: request,

clients/algoliasearch-client-go/algolia/search/api_search.go

Lines changed: 23 additions & 1 deletion
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/SearchClient.java

Lines changed: 68 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,6 +2745,33 @@ public CompletableFuture<Rule> getRuleAsync(@Nonnull String indexName, @Nonnull
27452745
return this.getRuleAsync(indexName, objectID, null);
27462746
}
27472747

2748+
/**
2749+
* Retrieves an object with non-null index settings.
2750+
*
2751+
* @param indexName Name of the index on which to perform the operation. (required)
2752+
* @param getVersion When set to 2, the endpoint will not include `synonyms` in the response. This
2753+
* parameter is here for backward compatibility. (optional, default to 1)
2754+
* @param requestOptions The requestOptions to send along with the query, they will be merged with
2755+
* the transporter requestOptions.
2756+
* @throws AlgoliaRuntimeException If it fails to process the API call
2757+
*/
2758+
public SettingsResponse getSettings(@Nonnull String indexName, Integer getVersion, @Nullable RequestOptions requestOptions)
2759+
throws AlgoliaRuntimeException {
2760+
return LaunderThrowable.await(getSettingsAsync(indexName, getVersion, requestOptions));
2761+
}
2762+
2763+
/**
2764+
* Retrieves an object with non-null index settings.
2765+
*
2766+
* @param indexName Name of the index on which to perform the operation. (required)
2767+
* @param getVersion When set to 2, the endpoint will not include `synonyms` in the response. This
2768+
* parameter is here for backward compatibility. (optional, default to 1)
2769+
* @throws AlgoliaRuntimeException If it fails to process the API call
2770+
*/
2771+
public SettingsResponse getSettings(@Nonnull String indexName, Integer getVersion) throws AlgoliaRuntimeException {
2772+
return this.getSettings(indexName, getVersion, null);
2773+
}
2774+
27482775
/**
27492776
* Retrieves an object with non-null index settings.
27502777
*
@@ -2754,7 +2781,7 @@ public CompletableFuture<Rule> getRuleAsync(@Nonnull String indexName, @Nonnull
27542781
* @throws AlgoliaRuntimeException If it fails to process the API call
27552782
*/
27562783
public SettingsResponse getSettings(@Nonnull String indexName, @Nullable RequestOptions requestOptions) throws AlgoliaRuntimeException {
2757-
return LaunderThrowable.await(getSettingsAsync(indexName, requestOptions));
2784+
return this.getSettings(indexName, null, requestOptions);
27582785
}
27592786

27602787
/**
@@ -2764,33 +2791,68 @@ public SettingsResponse getSettings(@Nonnull String indexName, @Nullable Request
27642791
* @throws AlgoliaRuntimeException If it fails to process the API call
27652792
*/
27662793
public SettingsResponse getSettings(@Nonnull String indexName) throws AlgoliaRuntimeException {
2767-
return this.getSettings(indexName, null);
2794+
return this.getSettings(indexName, null, null);
27682795
}
27692796

27702797
/**
27712798
* (asynchronously) Retrieves an object with non-null index settings.
27722799
*
27732800
* @param indexName Name of the index on which to perform the operation. (required)
2801+
* @param getVersion When set to 2, the endpoint will not include `synonyms` in the response. This
2802+
* parameter is here for backward compatibility. (optional, default to 1)
27742803
* @param requestOptions The requestOptions to send along with the query, they will be merged with
27752804
* the transporter requestOptions.
27762805
* @throws AlgoliaRuntimeException If it fails to process the API call
27772806
*/
2778-
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName, @Nullable RequestOptions requestOptions)
2779-
throws AlgoliaRuntimeException {
2807+
public CompletableFuture<SettingsResponse> getSettingsAsync(
2808+
@Nonnull String indexName,
2809+
Integer getVersion,
2810+
@Nullable RequestOptions requestOptions
2811+
) throws AlgoliaRuntimeException {
27802812
Parameters.requireNonNull(indexName, "Parameter `indexName` is required when calling `getSettings`.");
27812813

2782-
HttpRequest request = HttpRequest.builder().setPath("/1/indexes/{indexName}/settings", indexName).setMethod("GET").build();
2814+
HttpRequest request = HttpRequest.builder()
2815+
.setPath("/1/indexes/{indexName}/settings", indexName)
2816+
.setMethod("GET")
2817+
.addQueryParameter("getVersion", getVersion)
2818+
.build();
27832819
return executeAsync(request, requestOptions, new TypeReference<SettingsResponse>() {});
27842820
}
27852821

2822+
/**
2823+
* (asynchronously) Retrieves an object with non-null index settings.
2824+
*
2825+
* @param indexName Name of the index on which to perform the operation. (required)
2826+
* @param getVersion When set to 2, the endpoint will not include `synonyms` in the response. This
2827+
* parameter is here for backward compatibility. (optional, default to 1)
2828+
* @throws AlgoliaRuntimeException If it fails to process the API call
2829+
*/
2830+
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName, Integer getVersion)
2831+
throws AlgoliaRuntimeException {
2832+
return this.getSettingsAsync(indexName, getVersion, null);
2833+
}
2834+
2835+
/**
2836+
* (asynchronously) Retrieves an object with non-null index settings.
2837+
*
2838+
* @param indexName Name of the index on which to perform the operation. (required)
2839+
* @param requestOptions The requestOptions to send along with the query, they will be merged with
2840+
* the transporter requestOptions.
2841+
* @throws AlgoliaRuntimeException If it fails to process the API call
2842+
*/
2843+
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName, @Nullable RequestOptions requestOptions)
2844+
throws AlgoliaRuntimeException {
2845+
return this.getSettingsAsync(indexName, null, requestOptions);
2846+
}
2847+
27862848
/**
27872849
* (asynchronously) Retrieves an object with non-null index settings.
27882850
*
27892851
* @param indexName Name of the index on which to perform the operation. (required)
27902852
* @throws AlgoliaRuntimeException If it fails to process the API call
27912853
*/
27922854
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
2793-
return this.getSettingsAsync(indexName, null);
2855+
return this.getSettingsAsync(indexName, null, null);
27942856
}
27952857

27962858
/**

clients/algoliasearch-client-javascript/packages/client-composition/model/clientMethodProps.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// 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.
22

3+
import type { Composition } from '../model/composition';
4+
import type { CompositionRule } from '../model/compositionRule';
35
import type { CompositionRulesBatchParams } from '../model/compositionRulesBatchParams';
46

57
import type { RequestBody } from '../model/requestBody';
@@ -72,6 +74,30 @@ export type CustomPutProps = {
7274
body?: Record<string, unknown> | undefined;
7375
};
7476

77+
/**
78+
* Properties for the `deleteComposition` method.
79+
*/
80+
export type DeleteCompositionProps = {
81+
/**
82+
* Unique Composition ObjectID.
83+
*/
84+
compositionID: string;
85+
};
86+
87+
/**
88+
* Properties for the `deleteCompositionRule` method.
89+
*/
90+
export type DeleteCompositionRuleProps = {
91+
/**
92+
* Unique Composition ObjectID.
93+
*/
94+
compositionID: string;
95+
/**
96+
* Unique identifier of a rule object.
97+
*/
98+
objectID: string;
99+
};
100+
75101
/**
76102
* Properties for the `getComposition` method.
77103
*/
@@ -124,6 +150,32 @@ export type ListCompositionsProps = {
124150
hitsPerPage?: number | undefined;
125151
};
126152

153+
/**
154+
* Properties for the `putComposition` method.
155+
*/
156+
export type PutCompositionProps = {
157+
/**
158+
* Unique Composition ObjectID.
159+
*/
160+
compositionID: string;
161+
composition: Composition;
162+
};
163+
164+
/**
165+
* Properties for the `putCompositionRule` method.
166+
*/
167+
export type PutCompositionRuleProps = {
168+
/**
169+
* Unique Composition ObjectID.
170+
*/
171+
compositionID: string;
172+
/**
173+
* Unique identifier of a rule object.
174+
*/
175+
objectID: string;
176+
compositionRule: CompositionRule;
177+
};
178+
127179
/**
128180
* Properties for the `saveRules` method.
129181
*/

clients/algoliasearch-client-javascript/packages/client-composition/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export * from './snippetResult';
101101
export * from './snippetResultOption';
102102
export * from './sortRemainingBy';
103103
export * from './supportedLanguage';
104+
export * from './taskIDResponse';
104105
export * from './taskStatus';
105106
export * from './timeRange';
106107
export * from './typoTolerance';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// 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.
2+
3+
export type TaskIDResponse = {
4+
/**
5+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
6+
*/
7+
taskID: number;
8+
};

0 commit comments

Comments
 (0)