Skip to content

Commit ccf3ae1

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit cbdfd38. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent cbdfd38 commit ccf3ae1

File tree

315 files changed

+7923
-4856
lines changed

Some content is hidden

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

315 files changed

+7923
-4856
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import com.algolia.utils.*;
55
import com.algolia.utils.retry.StatefulHost;
66
import com.fasterxml.jackson.core.JsonProcessingException;
7-
import com.fasterxml.jackson.databind.ObjectMapper;
87
import com.fasterxml.jackson.core.type.TypeReference;
8+
import com.fasterxml.jackson.databind.ObjectMapper;
99
import java.io.IOException;
1010
import java.io.UnsupportedEncodingException;
1111
import java.net.URLEncoder;

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

+10-20
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import com.algolia.utils.*;
77
import com.algolia.utils.retry.CallType;
88
import com.algolia.utils.retry.StatefulHost;
9-
import com.google.gson.reflect.TypeToken;
10-
import java.lang.reflect.Type;
9+
import com.fasterxml.jackson.core.type.TypeReference;
1110
import java.util.ArrayList;
1211
import java.util.EnumSet;
1312
import java.util.HashMap;
@@ -121,8 +120,7 @@ public CompletableFuture<ABTestResponse> addABTestsAsync(AddABTestsRequest addAB
121120
Map<String, String> headers = new HashMap<String, String>();
122121

123122
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
124-
Type returnType = new TypeToken<ABTestResponse>() {}.getType();
125-
return this.executeAsync(call, returnType);
123+
return this.executeAsync(call, new TypeReference<ABTestResponse>() {});
126124
}
127125

128126
/**
@@ -225,8 +223,7 @@ public CompletableFuture<Object> delAsync(String path, Map<String, Object> param
225223
}
226224

227225
Call call = this.buildCall(requestPath, "DELETE", queryParameters, bodyObj, headers, requestOptions, false);
228-
Type returnType = new TypeToken<Object>() {}.getType();
229-
return this.executeAsync(call, returnType);
226+
return this.executeAsync(call, new TypeReference<Object>() {});
230227
}
231228

232229
/**
@@ -316,8 +313,7 @@ public CompletableFuture<ABTestResponse> deleteABTestAsync(Integer id, RequestOp
316313
Map<String, String> headers = new HashMap<String, String>();
317314

318315
Call call = this.buildCall(requestPath, "DELETE", queryParameters, bodyObj, headers, requestOptions, false);
319-
Type returnType = new TypeToken<ABTestResponse>() {}.getType();
320-
return this.executeAsync(call, returnType);
316+
return this.executeAsync(call, new TypeReference<ABTestResponse>() {});
321317
}
322318

323319
/**
@@ -418,8 +414,7 @@ public CompletableFuture<Object> getAsync(String path, Map<String, Object> param
418414
}
419415

420416
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
421-
Type returnType = new TypeToken<Object>() {}.getType();
422-
return this.executeAsync(call, returnType);
417+
return this.executeAsync(call, new TypeReference<Object>() {});
423418
}
424419

425420
/**
@@ -509,8 +504,7 @@ public CompletableFuture<ABTest> getABTestAsync(Integer id, RequestOptions reque
509504
Map<String, String> headers = new HashMap<String, String>();
510505

511506
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
512-
Type returnType = new TypeToken<ABTest>() {}.getType();
513-
return this.executeAsync(call, returnType);
507+
return this.executeAsync(call, new TypeReference<ABTest>() {});
514508
}
515509

516510
/**
@@ -613,8 +607,7 @@ public CompletableFuture<ListABTestsResponse> listABTestsAsync(Integer offset, I
613607
}
614608

615609
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
616-
Type returnType = new TypeToken<ListABTestsResponse>() {}.getType();
617-
return this.executeAsync(call, returnType);
610+
return this.executeAsync(call, new TypeReference<ListABTestsResponse>() {});
618611
}
619612

620613
/**
@@ -747,8 +740,7 @@ public CompletableFuture<Object> postAsync(String path, Map<String, Object> para
747740
}
748741

749742
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
750-
Type returnType = new TypeToken<Object>() {}.getType();
751-
return this.executeAsync(call, returnType);
743+
return this.executeAsync(call, new TypeReference<Object>() {});
752744
}
753745

754746
/**
@@ -882,8 +874,7 @@ public CompletableFuture<Object> putAsync(String path, Map<String, Object> param
882874
}
883875

884876
Call call = this.buildCall(requestPath, "PUT", queryParameters, bodyObj, headers, requestOptions, false);
885-
Type returnType = new TypeToken<Object>() {}.getType();
886-
return this.executeAsync(call, returnType);
877+
return this.executeAsync(call, new TypeReference<Object>() {});
887878
}
888879

889880
/**
@@ -980,8 +971,7 @@ public CompletableFuture<ABTestResponse> stopABTestAsync(Integer id, RequestOpti
980971
Map<String, String> headers = new HashMap<String, String>();
981972

982973
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
983-
Type returnType = new TypeToken<ABTestResponse>() {}.getType();
984-
return this.executeAsync(call, returnType);
974+
return this.executeAsync(call, new TypeReference<ABTestResponse>() {});
985975
}
986976

987977
/**

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

+22-44
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import com.algolia.utils.*;
77
import com.algolia.utils.retry.CallType;
88
import com.algolia.utils.retry.StatefulHost;
9-
import com.google.gson.reflect.TypeToken;
10-
import java.lang.reflect.Type;
9+
import com.fasterxml.jackson.core.type.TypeReference;
1110
import java.util.ArrayList;
1211
import java.util.EnumSet;
1312
import java.util.HashMap;
@@ -153,8 +152,7 @@ public CompletableFuture<Object> delAsync(String path, Map<String, Object> param
153152
}
154153

155154
Call call = this.buildCall(requestPath, "DELETE", queryParameters, bodyObj, headers, requestOptions, false);
156-
Type returnType = new TypeToken<Object>() {}.getType();
157-
return this.executeAsync(call, returnType);
155+
return this.executeAsync(call, new TypeReference<Object>() {});
158156
}
159157

160158
/**
@@ -283,8 +281,7 @@ public CompletableFuture<Object> getAsync(String path, Map<String, Object> param
283281
}
284282

285283
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
286-
Type returnType = new TypeToken<Object>() {}.getType();
287-
return this.executeAsync(call, returnType);
284+
return this.executeAsync(call, new TypeReference<Object>() {});
288285
}
289286

290287
/**
@@ -454,8 +451,7 @@ public CompletableFuture<GetAverageClickPositionResponse> getAverageClickPositio
454451
}
455452

456453
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
457-
Type returnType = new TypeToken<GetAverageClickPositionResponse>() {}.getType();
458-
return this.executeAsync(call, returnType);
454+
return this.executeAsync(call, new TypeReference<GetAverageClickPositionResponse>() {});
459455
}
460456

461457
/**
@@ -642,8 +638,7 @@ public CompletableFuture<GetClickPositionsResponse> getClickPositionsAsync(
642638
}
643639

644640
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
645-
Type returnType = new TypeToken<GetClickPositionsResponse>() {}.getType();
646-
return this.executeAsync(call, returnType);
641+
return this.executeAsync(call, new TypeReference<GetClickPositionsResponse>() {});
647642
}
648643

649644
/**
@@ -831,8 +826,7 @@ public CompletableFuture<GetClickThroughRateResponse> getClickThroughRateAsync(
831826
}
832827

833828
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
834-
Type returnType = new TypeToken<GetClickThroughRateResponse>() {}.getType();
835-
return this.executeAsync(call, returnType);
829+
return this.executeAsync(call, new TypeReference<GetClickThroughRateResponse>() {});
836830
}
837831

838832
/**
@@ -1021,8 +1015,7 @@ public CompletableFuture<GetConversationRateResponse> getConversationRateAsync(
10211015
}
10221016

10231017
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1024-
Type returnType = new TypeToken<GetConversationRateResponse>() {}.getType();
1025-
return this.executeAsync(call, returnType);
1018+
return this.executeAsync(call, new TypeReference<GetConversationRateResponse>() {});
10261019
}
10271020

10281021
/**
@@ -1205,8 +1198,7 @@ public CompletableFuture<GetNoClickRateResponse> getNoClickRateAsync(
12051198
}
12061199

12071200
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1208-
Type returnType = new TypeToken<GetNoClickRateResponse>() {}.getType();
1209-
return this.executeAsync(call, returnType);
1201+
return this.executeAsync(call, new TypeReference<GetNoClickRateResponse>() {});
12101202
}
12111203

12121204
/**
@@ -1391,8 +1383,7 @@ public CompletableFuture<GetNoResultsRateResponse> getNoResultsRateAsync(
13911383
}
13921384

13931385
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1394-
Type returnType = new TypeToken<GetNoResultsRateResponse>() {}.getType();
1395-
return this.executeAsync(call, returnType);
1386+
return this.executeAsync(call, new TypeReference<GetNoResultsRateResponse>() {});
13961387
}
13971388

13981389
/**
@@ -1572,8 +1563,7 @@ public CompletableFuture<GetSearchesCountResponse> getSearchesCountAsync(
15721563
}
15731564

15741565
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1575-
Type returnType = new TypeToken<GetSearchesCountResponse>() {}.getType();
1576-
return this.executeAsync(call, returnType);
1566+
return this.executeAsync(call, new TypeReference<GetSearchesCountResponse>() {});
15771567
}
15781568

15791569
/**
@@ -1780,8 +1770,7 @@ public CompletableFuture<GetSearchesNoClicksResponse> getSearchesNoClicksAsync(
17801770
}
17811771

17821772
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1783-
Type returnType = new TypeToken<GetSearchesNoClicksResponse>() {}.getType();
1784-
return this.executeAsync(call, returnType);
1773+
return this.executeAsync(call, new TypeReference<GetSearchesNoClicksResponse>() {});
17851774
}
17861775

17871776
/**
@@ -1994,8 +1983,7 @@ public CompletableFuture<GetSearchesNoResultsResponse> getSearchesNoResultsAsync
19941983
}
19951984

19961985
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
1997-
Type returnType = new TypeToken<GetSearchesNoResultsResponse>() {}.getType();
1998-
return this.executeAsync(call, returnType);
1986+
return this.executeAsync(call, new TypeReference<GetSearchesNoResultsResponse>() {});
19991987
}
20001988

20011989
/**
@@ -2111,8 +2099,7 @@ public CompletableFuture<GetStatusResponse> getStatusAsync(String index, Request
21112099
}
21122100

21132101
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
2114-
Type returnType = new TypeToken<GetStatusResponse>() {}.getType();
2115-
return this.executeAsync(call, returnType);
2102+
return this.executeAsync(call, new TypeReference<GetStatusResponse>() {});
21162103
}
21172104

21182105
/**
@@ -2280,8 +2267,7 @@ public CompletableFuture<GetTopCountriesResponse> getTopCountriesAsync(
22802267
}
22812268

22822269
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
2283-
Type returnType = new TypeToken<GetTopCountriesResponse>() {}.getType();
2284-
return this.executeAsync(call, returnType);
2270+
return this.executeAsync(call, new TypeReference<GetTopCountriesResponse>() {});
22852271
}
22862272

22872273
/**
@@ -2500,8 +2486,7 @@ public CompletableFuture<GetTopFilterAttributesResponse> getTopFilterAttributesA
25002486
}
25012487

25022488
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
2503-
Type returnType = new TypeToken<GetTopFilterAttributesResponse>() {}.getType();
2504-
return this.executeAsync(call, returnType);
2489+
return this.executeAsync(call, new TypeReference<GetTopFilterAttributesResponse>() {});
25052490
}
25062491

25072492
/**
@@ -2738,8 +2723,7 @@ public CompletableFuture<GetTopFilterForAttributeResponse> getTopFilterForAttrib
27382723
}
27392724

27402725
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
2741-
Type returnType = new TypeToken<GetTopFilterForAttributeResponse>() {}.getType();
2742-
return this.executeAsync(call, returnType);
2726+
return this.executeAsync(call, new TypeReference<GetTopFilterForAttributeResponse>() {});
27432727
}
27442728

27452729
/**
@@ -2971,8 +2955,7 @@ public CompletableFuture<GetTopFiltersNoResultsResponse> getTopFiltersNoResultsA
29712955
}
29722956

29732957
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
2974-
Type returnType = new TypeToken<GetTopFiltersNoResultsResponse>() {}.getType();
2975-
return this.executeAsync(call, returnType);
2958+
return this.executeAsync(call, new TypeReference<GetTopFiltersNoResultsResponse>() {});
29762959
}
29772960

29782961
/**
@@ -3206,8 +3189,7 @@ public CompletableFuture<GetTopHitsResponse> getTopHitsAsync(
32063189
}
32073190

32083191
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
3209-
Type returnType = new TypeToken<GetTopHitsResponse>() {}.getType();
3210-
return this.executeAsync(call, returnType);
3192+
return this.executeAsync(call, new TypeReference<GetTopHitsResponse>() {});
32113193
}
32123194

32133195
/**
@@ -3460,8 +3442,7 @@ public CompletableFuture<GetTopSearchesResponse> getTopSearchesAsync(
34603442
}
34613443

34623444
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
3463-
Type returnType = new TypeToken<GetTopSearchesResponse>() {}.getType();
3464-
return this.executeAsync(call, returnType);
3445+
return this.executeAsync(call, new TypeReference<GetTopSearchesResponse>() {});
34653446
}
34663447

34673448
/**
@@ -3649,8 +3630,7 @@ public CompletableFuture<GetUsersCountResponse> getUsersCountAsync(
36493630
}
36503631

36513632
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
3652-
Type returnType = new TypeToken<GetUsersCountResponse>() {}.getType();
3653-
return this.executeAsync(call, returnType);
3633+
return this.executeAsync(call, new TypeReference<GetUsersCountResponse>() {});
36543634
}
36553635

36563636
/**
@@ -3791,8 +3771,7 @@ public CompletableFuture<Object> postAsync(String path, Map<String, Object> para
37913771
}
37923772

37933773
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
3794-
Type returnType = new TypeToken<Object>() {}.getType();
3795-
return this.executeAsync(call, returnType);
3774+
return this.executeAsync(call, new TypeReference<Object>() {});
37963775
}
37973776

37983777
/**
@@ -3926,8 +3905,7 @@ public CompletableFuture<Object> putAsync(String path, Map<String, Object> param
39263905
}
39273906

39283907
Call call = this.buildCall(requestPath, "PUT", queryParameters, bodyObj, headers, requestOptions, false);
3929-
Type returnType = new TypeToken<Object>() {}.getType();
3930-
return this.executeAsync(call, returnType);
3908+
return this.executeAsync(call, new TypeReference<Object>() {});
39313909
}
39323910

39333911
/**

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

+6-12
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import com.algolia.utils.*;
77
import com.algolia.utils.retry.CallType;
88
import com.algolia.utils.retry.StatefulHost;
9-
import com.google.gson.reflect.TypeToken;
10-
import java.lang.reflect.Type;
9+
import com.fasterxml.jackson.core.type.TypeReference;
1110
import java.util.ArrayList;
1211
import java.util.EnumSet;
1312
import java.util.HashMap;
@@ -153,8 +152,7 @@ public CompletableFuture<Object> delAsync(String path, Map<String, Object> param
153152
}
154153

155154
Call call = this.buildCall(requestPath, "DELETE", queryParameters, bodyObj, headers, requestOptions, false);
156-
Type returnType = new TypeToken<Object>() {}.getType();
157-
return this.executeAsync(call, returnType);
155+
return this.executeAsync(call, new TypeReference<Object>() {});
158156
}
159157

160158
/**
@@ -283,8 +281,7 @@ public CompletableFuture<Object> getAsync(String path, Map<String, Object> param
283281
}
284282

285283
Call call = this.buildCall(requestPath, "GET", queryParameters, bodyObj, headers, requestOptions, false);
286-
Type returnType = new TypeToken<Object>() {}.getType();
287-
return this.executeAsync(call, returnType);
284+
return this.executeAsync(call, new TypeReference<Object>() {});
288285
}
289286

290287
/**
@@ -417,8 +414,7 @@ public CompletableFuture<Object> postAsync(String path, Map<String, Object> para
417414
}
418415

419416
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
420-
Type returnType = new TypeToken<Object>() {}.getType();
421-
return this.executeAsync(call, returnType);
417+
return this.executeAsync(call, new TypeReference<Object>() {});
422418
}
423419

424420
/**
@@ -533,8 +529,7 @@ public CompletableFuture<PushEventsResponse> pushEventsAsync(InsightEvents insig
533529
Map<String, String> headers = new HashMap<String, String>();
534530

535531
Call call = this.buildCall(requestPath, "POST", queryParameters, bodyObj, headers, requestOptions, false);
536-
Type returnType = new TypeToken<PushEventsResponse>() {}.getType();
537-
return this.executeAsync(call, returnType);
532+
return this.executeAsync(call, new TypeReference<PushEventsResponse>() {});
538533
}
539534

540535
/**
@@ -648,8 +643,7 @@ public CompletableFuture<Object> putAsync(String path, Map<String, Object> param
648643
}
649644

650645
Call call = this.buildCall(requestPath, "PUT", queryParameters, bodyObj, headers, requestOptions, false);
651-
Type returnType = new TypeToken<Object>() {}.getType();
652-
return this.executeAsync(call, returnType);
646+
return this.executeAsync(call, new TypeReference<Object>() {});
653647
}
654648

655649
/**

0 commit comments

Comments
 (0)