Skip to content

Commit fbdb035

Browse files
committed
Merge branch 'main' into feat/wait-task
2 parents 395dfe6 + 96fddef commit fbdb035

File tree

158 files changed

+2318
-2279
lines changed

Some content is hidden

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

158 files changed

+2318
-2279
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
ignorePatterns: ['.eslintrc.js', '**/node_modules', '**/build', '**/dist', '**/target', '**/.yarn'],
2+
ignorePatterns: ['.eslintrc.js', '**/node_modules', '**/build', '**/dist', '**/target', '**/.yarn', 'specs/bundled/*.doc.yml'],
33

44
overrides: [
55
{
@@ -51,6 +51,10 @@ module.exports = {
5151
files: ['!specs/bundled/*.yml'],
5252
rules: {
5353
"automation-custom/out-of-line-enum": "error",
54+
"automation-custom/out-of-line-one-of": "error",
55+
"automation-custom/out-of-line-all-of": "error",
56+
"automation-custom/out-of-line-any-of": "error",
57+
5458
}
5559
}
5660
]

.github/workflows/check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ jobs:
316316

317317
- name: Push generated code
318318
id: pushGeneratedCode
319-
if: ${{ needs.setup.outputs.RUN_CODEGEN == 'true' }}
320319
run: yarn workspace scripts pushGeneratedCode
321320
env:
322321
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}

.github/workflows/codegen.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}
2727
PR_NUMBER: ${{ github.event.number }}
28+
HEAD_BRANCH: ${{ github.head_ref }}
2829

2930
cleanup:
3031
runs-on: ubuntu-20.04
@@ -41,11 +42,11 @@ jobs:
4142
with:
4243
type: minimal
4344

44-
- name: Clean previously generated branch
45-
run: yarn workspace scripts cleanGeneratedBranch ${{ github.head_ref }}
46-
4745
- name: Add cleanup comment
4846
run: yarn workspace scripts upsertGenerationComment cleanup
4947
env:
5048
GITHUB_TOKEN: ${{ secrets.TOKEN_GENERATE_BOT }}
5149
PR_NUMBER: ${{ github.event.number }}
50+
51+
- name: Clean previously generated branch
52+
run: yarn workspace scripts cleanGeneratedBranch ${{ github.head_ref }}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/QuerySuggestionsClient.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ private static List<StatefulHost> getDefaultHosts(String region) {
7373
* @param querySuggestionsIndexWithIndexParam (required)
7474
* @param requestOptions The requestOptions to send along with the query, they will be merged with
7575
* the transporter requestOptions.
76-
* @return SucessResponse
76+
* @return SuccessResponse
7777
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
7878
* deserialize the response body
7979
*/
80-
public SucessResponse createConfig(
80+
public SuccessResponse createConfig(
8181
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam,
8282
RequestOptions requestOptions
8383
) throws AlgoliaRuntimeException {
@@ -86,7 +86,7 @@ public SucessResponse createConfig(
8686
);
8787
}
8888

89-
public SucessResponse createConfig(
89+
public SuccessResponse createConfig(
9090
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam
9191
) throws AlgoliaRuntimeException {
9292
return this.createConfig(querySuggestionsIndexWithIndexParam, null);
@@ -103,7 +103,7 @@ public SucessResponse createConfig(
103103
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
104104
* body object
105105
*/
106-
public CompletableFuture<SucessResponse> createConfigAsync(
106+
public CompletableFuture<SuccessResponse> createConfigAsync(
107107
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam,
108108
RequestOptions requestOptions
109109
) throws AlgoliaRuntimeException {
@@ -131,11 +131,11 @@ public CompletableFuture<SucessResponse> createConfigAsync(
131131
headers,
132132
requestOptions
133133
);
134-
Type returnType = new TypeToken<SucessResponse>() {}.getType();
134+
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
135135
return this.executeAsync(call, returnType);
136136
}
137137

138-
public CompletableFuture<SucessResponse> createConfigAsync(
138+
public CompletableFuture<SuccessResponse> createConfigAsync(
139139
QuerySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam
140140
) throws AlgoliaRuntimeException {
141141
return this.createConfigAsync(querySuggestionsIndexWithIndexParam, null);
@@ -248,32 +248,32 @@ public CompletableFuture<Object> delAsync(String path)
248248
}
249249

250250
/**
251-
* Delete a configuration of a Query Suggestion's index. By deleting a configuraton, you stop all
251+
* Delete a configuration of a Query Suggestion's index. By deleting a configuration, you stop all
252252
* updates to the underlying query suggestion index. Note that when doing this, the underlying
253253
* index does not change - existing suggestions remain untouched.
254254
*
255255
* @param indexName The index in which to perform the request. (required)
256256
* @param requestOptions The requestOptions to send along with the query, they will be merged with
257257
* the transporter requestOptions.
258-
* @return SucessResponse
258+
* @return SuccessResponse
259259
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
260260
* deserialize the response body
261261
*/
262-
public SucessResponse deleteConfig(
262+
public SuccessResponse deleteConfig(
263263
String indexName,
264264
RequestOptions requestOptions
265265
) throws AlgoliaRuntimeException {
266266
return LaunderThrowable.await(deleteConfigAsync(indexName, requestOptions));
267267
}
268268

269-
public SucessResponse deleteConfig(String indexName)
269+
public SuccessResponse deleteConfig(String indexName)
270270
throws AlgoliaRuntimeException {
271271
return this.deleteConfig(indexName, null);
272272
}
273273

274274
/**
275275
* (asynchronously) Delete a configuration of a Query Suggestion&#39;s index. By deleting a
276-
* configuraton, you stop all updates to the underlying query suggestion index. Note that when
276+
* configuration, you stop all updates to the underlying query suggestion index. Note that when
277277
* doing this, the underlying index does not change - existing suggestions remain untouched.
278278
*
279279
* @param indexName The index in which to perform the request. (required)
@@ -283,7 +283,7 @@ public SucessResponse deleteConfig(String indexName)
283283
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
284284
* body object
285285
*/
286-
public CompletableFuture<SucessResponse> deleteConfigAsync(
286+
public CompletableFuture<SuccessResponse> deleteConfigAsync(
287287
String indexName,
288288
RequestOptions requestOptions
289289
) throws AlgoliaRuntimeException {
@@ -314,11 +314,11 @@ public CompletableFuture<SucessResponse> deleteConfigAsync(
314314
headers,
315315
requestOptions
316316
);
317-
Type returnType = new TypeToken<SucessResponse>() {}.getType();
317+
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
318318
return this.executeAsync(call, returnType);
319319
}
320320

321-
public CompletableFuture<SucessResponse> deleteConfigAsync(String indexName)
321+
public CompletableFuture<SuccessResponse> deleteConfigAsync(String indexName)
322322
throws AlgoliaRuntimeException {
323323
return this.deleteConfigAsync(indexName, null);
324324
}
@@ -944,11 +944,11 @@ public CompletableFuture<Object> putAsync(String path)
944944
* @param querySuggestionsIndexParam (required)
945945
* @param requestOptions The requestOptions to send along with the query, they will be merged with
946946
* the transporter requestOptions.
947-
* @return SucessResponse
947+
* @return SuccessResponse
948948
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
949949
* deserialize the response body
950950
*/
951-
public SucessResponse updateConfig(
951+
public SuccessResponse updateConfig(
952952
String indexName,
953953
QuerySuggestionsIndexParam querySuggestionsIndexParam,
954954
RequestOptions requestOptions
@@ -958,7 +958,7 @@ public SucessResponse updateConfig(
958958
);
959959
}
960960

961-
public SucessResponse updateConfig(
961+
public SuccessResponse updateConfig(
962962
String indexName,
963963
QuerySuggestionsIndexParam querySuggestionsIndexParam
964964
) throws AlgoliaRuntimeException {
@@ -976,7 +976,7 @@ public SucessResponse updateConfig(
976976
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
977977
* body object
978978
*/
979-
public CompletableFuture<SucessResponse> updateConfigAsync(
979+
public CompletableFuture<SuccessResponse> updateConfigAsync(
980980
String indexName,
981981
QuerySuggestionsIndexParam querySuggestionsIndexParam,
982982
RequestOptions requestOptions
@@ -1015,11 +1015,11 @@ public CompletableFuture<SucessResponse> updateConfigAsync(
10151015
headers,
10161016
requestOptions
10171017
);
1018-
Type returnType = new TypeToken<SucessResponse>() {}.getType();
1018+
Type returnType = new TypeToken<SuccessResponse>() {}.getType();
10191019
return this.executeAsync(call, returnType);
10201020
}
10211021

1022-
public CompletableFuture<SucessResponse> updateConfigAsync(
1022+
public CompletableFuture<SuccessResponse> updateConfigAsync(
10231023
String indexName,
10241024
QuerySuggestionsIndexParam querySuggestionsIndexParam
10251025
) throws AlgoliaRuntimeException {

0 commit comments

Comments
 (0)