Skip to content

Commit 3bdcbcc

Browse files
chore: generated code for commit 518055b. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 518055b commit 3bdcbcc

File tree

61 files changed

+943
-1969
lines changed

Some content is hidden

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

61 files changed

+943
-1969
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,10 +1473,9 @@ public Call clearRulesAsync(
14731473
private Call delCall(
14741474
String path,
14751475
Map<String, Object> parameters,
1476-
Object body,
14771476
final ApiCallback<Object> callback
14781477
) throws AlgoliaRuntimeException {
1479-
Object bodyObj = body;
1478+
Object bodyObj = null;
14801479

14811480
// create path and map variables
14821481
String requestPath = "/1{path}".replaceAll("\\{path\\}", path.toString());
@@ -1511,7 +1510,6 @@ private Call delCall(
15111510
private Call delValidateBeforeCall(
15121511
String path,
15131512
Map<String, Object> parameters,
1514-
Object body,
15151513
final ApiCallback<Object> callback
15161514
) throws AlgoliaRuntimeException {
15171515
// verify the required parameter 'path' is set
@@ -1521,7 +1519,7 @@ private Call delValidateBeforeCall(
15211519
);
15221520
}
15231521

1524-
return delCall(path, parameters, body, callback);
1522+
return delCall(path, parameters, callback);
15251523
}
15261524

15271525
/**
@@ -1530,14 +1528,13 @@ private Call delValidateBeforeCall(
15301528
* @param path The path of the API endpoint to target, anything after the /1 needs to be
15311529
* specified. (required)
15321530
* @param parameters Query parameters to be applied to the current query. (optional)
1533-
* @param body The parameters to send with the custom request. (optional)
15341531
* @return Object
15351532
* @throws AlgoliaRuntimeException If fail to call the API, e.g. server error or cannot
15361533
* deserialize the response body
15371534
*/
1538-
public Object del(String path, Map<String, Object> parameters, Object body)
1535+
public Object del(String path, Map<String, Object> parameters)
15391536
throws AlgoliaRuntimeException {
1540-
Call req = delValidateBeforeCall(path, parameters, body, null);
1537+
Call req = delValidateBeforeCall(path, parameters, null);
15411538
if (req instanceof CallEcho) {
15421539
return new EchoResponse.SearchEcho.Del(((CallEcho) req).request());
15431540
}
@@ -1548,7 +1545,7 @@ public Object del(String path, Map<String, Object> parameters, Object body)
15481545
}
15491546

15501547
public Object del(String path) throws AlgoliaRuntimeException {
1551-
return this.del(path, new HashMap<>(), null);
1548+
return this.del(path, new HashMap<>());
15521549
}
15531550

15541551
/**
@@ -1557,7 +1554,6 @@ public Object del(String path) throws AlgoliaRuntimeException {
15571554
* @param path The path of the API endpoint to target, anything after the /1 needs to be
15581555
* specified. (required)
15591556
* @param parameters Query parameters to be applied to the current query. (optional)
1560-
* @param body The parameters to send with the custom request. (optional)
15611557
* @param callback The callback to be executed when the API call finishes
15621558
* @return The request call
15631559
* @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request
@@ -1566,10 +1562,9 @@ public Object del(String path) throws AlgoliaRuntimeException {
15661562
public Call delAsync(
15671563
String path,
15681564
Map<String, Object> parameters,
1569-
Object body,
15701565
final ApiCallback<Object> callback
15711566
) throws AlgoliaRuntimeException {
1572-
Call call = delValidateBeforeCall(path, parameters, body, callback);
1567+
Call call = delValidateBeforeCall(path, parameters, callback);
15731568
Type returnType = new TypeToken<Object>() {}.getType();
15741569
this.executeAsync(call, returnType, callback);
15751570
return call;

clients/algoliasearch-client-javascript/packages/client-abtesting/src/abtestingApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ export function createAbtestingApi(
123123
* @param del - The del object.
124124
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
125125
* @param del.parameters - Query parameters to be applied to the current query.
126-
* @param del.body - The parameters to send with the custom request.
127126
*/
128127
del(
129-
{ path, parameters, body }: DelProps,
128+
{ path, parameters }: DelProps,
130129
requestOptions?: RequestOptions
131130
): Promise<Record<string, any>> {
132131
if (!path) {
@@ -140,7 +139,6 @@ export function createAbtestingApi(
140139
const request: Request = {
141140
method: 'DELETE',
142141
path: requestPath,
143-
data: body,
144142
};
145143

146144
return transporter.request(
@@ -429,10 +427,6 @@ export type DelProps = {
429427
* Query parameters to be applied to the current query.
430428
*/
431429
parameters?: Record<string, any>;
432-
/**
433-
* The parameters to send with the custom request.
434-
*/
435-
body?: Record<string, any>;
436430
};
437431

438432
export type DeleteABTestProps = {

clients/algoliasearch-client-javascript/packages/client-analytics/src/analyticsApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ export function createAnalyticsApi(
8686
* @param del - The del object.
8787
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
8888
* @param del.parameters - Query parameters to be applied to the current query.
89-
* @param del.body - The parameters to send with the custom request.
9089
*/
9190
del(
92-
{ path, parameters, body }: DelProps,
91+
{ path, parameters }: DelProps,
9392
requestOptions?: RequestOptions
9493
): Promise<Record<string, any>> {
9594
if (!path) {
@@ -103,7 +102,6 @@ export function createAnalyticsApi(
103102
const request: Request = {
104103
method: 'DELETE',
105104
path: requestPath,
106-
data: body,
107105
};
108106

109107
return transporter.request(
@@ -1346,10 +1344,6 @@ export type DelProps = {
13461344
* Query parameters to be applied to the current query.
13471345
*/
13481346
parameters?: Record<string, any>;
1349-
/**
1350-
* The parameters to send with the custom request.
1351-
*/
1352-
body?: Record<string, any>;
13531347
};
13541348

13551349
export type GetProps = {

clients/algoliasearch-client-javascript/packages/client-insights/src/insightsApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ export function createInsightsApi(
6969
* @param del - The del object.
7070
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
7171
* @param del.parameters - Query parameters to be applied to the current query.
72-
* @param del.body - The parameters to send with the custom request.
7372
*/
7473
del(
75-
{ path, parameters, body }: DelProps,
74+
{ path, parameters }: DelProps,
7675
requestOptions?: RequestOptions
7776
): Promise<Record<string, any>> {
7877
if (!path) {
@@ -86,7 +85,6 @@ export function createInsightsApi(
8685
const request: Request = {
8786
method: 'DELETE',
8887
path: requestPath,
89-
data: body,
9088
};
9189

9290
return transporter.request(
@@ -263,10 +261,6 @@ export type DelProps = {
263261
* Query parameters to be applied to the current query.
264262
*/
265263
parameters?: Record<string, any>;
266-
/**
267-
* The parameters to send with the custom request.
268-
*/
269-
body?: Record<string, any>;
270264
};
271265

272266
export type GetProps = {

clients/algoliasearch-client-javascript/packages/client-personalization/src/personalizationApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ export function createPersonalizationApi(
6969
* @param del - The del object.
7070
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
7171
* @param del.parameters - Query parameters to be applied to the current query.
72-
* @param del.body - The parameters to send with the custom request.
7372
*/
7473
del(
75-
{ path, parameters, body }: DelProps,
74+
{ path, parameters }: DelProps,
7675
requestOptions?: RequestOptions
7776
): Promise<Record<string, any>> {
7877
if (!path) {
@@ -86,7 +85,6 @@ export function createPersonalizationApi(
8685
const request: Request = {
8786
method: 'DELETE',
8887
path: requestPath,
89-
data: body,
9088
};
9189

9290
return transporter.request(
@@ -378,10 +376,6 @@ export type DelProps = {
378376
* Query parameters to be applied to the current query.
379377
*/
380378
parameters?: Record<string, any>;
381-
/**
382-
* The parameters to send with the custom request.
383-
*/
384-
body?: Record<string, any>;
385379
};
386380

387381
export type DeleteUserProfileProps = {

clients/algoliasearch-client-javascript/packages/client-predict/src/predictApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ export function createPredictApi(options: CreateClientOptions) {
6363
* @param del - The del object.
6464
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
6565
* @param del.parameters - Query parameters to be applied to the current query.
66-
* @param del.body - The parameters to send with the custom request.
6766
*/
6867
del(
69-
{ path, parameters, body }: DelProps,
68+
{ path, parameters }: DelProps,
7069
requestOptions?: RequestOptions
7170
): Promise<Record<string, any>> {
7271
if (!path) {
@@ -80,7 +79,6 @@ export function createPredictApi(options: CreateClientOptions) {
8079
const request: Request = {
8180
method: 'DELETE',
8281
path: requestPath,
83-
data: body,
8482
};
8583

8684
return transporter.request(
@@ -262,10 +260,6 @@ export type DelProps = {
262260
* Query parameters to be applied to the current query.
263261
*/
264262
parameters?: Record<string, any>;
265-
/**
266-
* The parameters to send with the custom request.
267-
*/
268-
body?: Record<string, any>;
269263
};
270264

271265
export type FetchUserProfileProps = {

clients/algoliasearch-client-javascript/packages/client-query-suggestions/src/querySuggestionsApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ export function createQuerySuggestionsApi(
107107
* @param del - The del object.
108108
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
109109
* @param del.parameters - Query parameters to be applied to the current query.
110-
* @param del.body - The parameters to send with the custom request.
111110
*/
112111
del(
113-
{ path, parameters, body }: DelProps,
112+
{ path, parameters }: DelProps,
114113
requestOptions?: RequestOptions
115114
): Promise<Record<string, any>> {
116115
if (!path) {
@@ -124,7 +123,6 @@ export function createQuerySuggestionsApi(
124123
const request: Request = {
125124
method: 'DELETE',
126125
path: requestPath,
127-
data: body,
128126
};
129127

130128
return transporter.request(
@@ -495,10 +493,6 @@ export type DelProps = {
495493
* Query parameters to be applied to the current query.
496494
*/
497495
parameters?: Record<string, any>;
498-
/**
499-
* The parameters to send with the custom request.
500-
*/
501-
body?: Record<string, any>;
502496
};
503497

504498
export type DeleteConfigProps = {

clients/algoliasearch-client-javascript/packages/client-search/src/searchApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,9 @@ export function createSearchApi(options: CreateClientOptions) {
722722
* @param del - The del object.
723723
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
724724
* @param del.parameters - Query parameters to be applied to the current query.
725-
* @param del.body - The parameters to send with the custom request.
726725
*/
727726
del(
728-
{ path, parameters, body }: DelProps,
727+
{ path, parameters }: DelProps,
729728
requestOptions?: RequestOptions
730729
): Promise<Record<string, any>> {
731730
if (!path) {
@@ -739,7 +738,6 @@ export function createSearchApi(options: CreateClientOptions) {
739738
const request: Request = {
740739
method: 'DELETE',
741740
path: requestPath,
742-
data: body,
743741
};
744742

745743
return transporter.request(
@@ -2941,10 +2939,6 @@ export type DelProps = {
29412939
* Query parameters to be applied to the current query.
29422940
*/
29432941
parameters?: Record<string, any>;
2944-
/**
2945-
* The parameters to send with the custom request.
2946-
*/
2947-
body?: Record<string, any>;
29482942
};
29492943

29502944
export type DeleteApiKeyProps = {

clients/algoliasearch-client-javascript/packages/client-sources/src/sourcesApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ export function createSourcesApi(
6767
* @param del - The del object.
6868
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
6969
* @param del.parameters - Query parameters to be applied to the current query.
70-
* @param del.body - The parameters to send with the custom request.
7170
*/
7271
del(
73-
{ path, parameters, body }: DelProps,
72+
{ path, parameters }: DelProps,
7473
requestOptions?: RequestOptions
7574
): Promise<Record<string, any>> {
7675
if (!path) {
@@ -84,7 +83,6 @@ export function createSourcesApi(
8483
const request: Request = {
8584
method: 'DELETE',
8685
path: requestPath,
87-
data: body,
8886
};
8987

9088
return transporter.request(
@@ -271,10 +269,6 @@ export type DelProps = {
271269
* Query parameters to be applied to the current query.
272270
*/
273271
parameters?: Record<string, any>;
274-
/**
275-
* The parameters to send with the custom request.
276-
*/
277-
body?: Record<string, any>;
278272
};
279273

280274
export type GetProps = {

clients/algoliasearch-client-javascript/packages/recommend/src/recommendApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ export function createRecommendApi(options: CreateClientOptions) {
8989
* @param del - The del object.
9090
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
9191
* @param del.parameters - Query parameters to be applied to the current query.
92-
* @param del.body - The parameters to send with the custom request.
9392
*/
9493
del(
95-
{ path, parameters, body }: DelProps,
94+
{ path, parameters }: DelProps,
9695
requestOptions?: RequestOptions
9796
): Promise<Record<string, any>> {
9897
if (!path) {
@@ -106,7 +105,6 @@ export function createRecommendApi(options: CreateClientOptions) {
106105
const request: Request = {
107106
method: 'DELETE',
108107
path: requestPath,
109-
data: body,
110108
};
111109

112110
return transporter.request(
@@ -283,10 +281,6 @@ export type DelProps = {
283281
* Query parameters to be applied to the current query.
284282
*/
285283
parameters?: Record<string, any>;
286-
/**
287-
* The parameters to send with the custom request.
288-
*/
289-
body?: Record<string, any>;
290284
};
291285

292286
export type GetProps = {

clients/algoliasearch-client-php/lib/Api/AbtestingApi.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ public function addABTests($addABTestsRequest)
123123
*
124124
* @param string $path The path of the API endpoint to target, anything after the /1 needs to be specified. (required)
125125
* @param array $parameters Query parameters to be applied to the current query. (optional)
126-
* @param array $body The parameters to send with the custom request. (optional)
127126
*
128127
* @return array<string, mixed>|object
129128
*/
130-
public function del($path, $parameters = null, $body = null)
129+
public function del($path, $parameters = null)
131130
{
132131
// verify the required parameter 'path' is set
133132
if ($path === null || (is_array($path) && count($path) === 0)) {
@@ -159,10 +158,6 @@ public function del($path, $parameters = null, $body = null)
159158
);
160159
}
161160

162-
if (isset($body)) {
163-
$httpBody = $body;
164-
}
165-
166161
return $this->sendRequest('DELETE', $resourcePath, $queryParams, $httpBody);
167162
}
168163

0 commit comments

Comments
 (0)