Skip to content

Commit f4ca029

Browse files
feat(specs): allow filtering transformations type (#5363) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 353f4a0 commit f4ca029

File tree

35 files changed

+742
-59
lines changed

35 files changed

+742
-59
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,7 @@ ListTasksResponseV1 ListTasksV1(
16421642
/// <param name="page">Page number of the paginated API response. (optional)</param>
16431643
/// <param name="sort">Property by which to sort the list of transformations. (optional)</param>
16441644
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
1645+
/// <param name="type">Whether to filter the list of transformations by the type of transformation. (optional)</param>
16451646
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
16461647
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
16471648
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1653,6 +1654,7 @@ Task<ListTransformationsResponse> ListTransformationsAsync(
16531654
int? page = default,
16541655
TransformationSortKeys? sort = default,
16551656
OrderKeys? order = default,
1657+
TransformationType? type = default,
16561658
RequestOptions options = null,
16571659
CancellationToken cancellationToken = default
16581660
);
@@ -1669,6 +1671,7 @@ Task<ListTransformationsResponse> ListTransformationsAsync(
16691671
/// <param name="page">Page number of the paginated API response. (optional)</param>
16701672
/// <param name="sort">Property by which to sort the list of transformations. (optional)</param>
16711673
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
1674+
/// <param name="type">Whether to filter the list of transformations by the type of transformation. (optional)</param>
16721675
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
16731676
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
16741677
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
@@ -1680,6 +1683,7 @@ ListTransformationsResponse ListTransformations(
16801683
int? page = default,
16811684
TransformationSortKeys? sort = default,
16821685
OrderKeys? order = default,
1686+
TransformationType? type = default,
16831687
RequestOptions options = null,
16841688
CancellationToken cancellationToken = default
16851689
);
@@ -4171,6 +4175,7 @@ public async Task<ListTransformationsResponse> ListTransformationsAsync(
41714175
int? page = default,
41724176
TransformationSortKeys? sort = default,
41734177
OrderKeys? order = default,
4178+
TransformationType? type = default,
41744179
RequestOptions options = null,
41754180
CancellationToken cancellationToken = default
41764181
)
@@ -4181,6 +4186,7 @@ public async Task<ListTransformationsResponse> ListTransformationsAsync(
41814186
requestOptions.AddQueryParameter("page", page);
41824187
requestOptions.AddQueryParameter("sort", sort);
41834188
requestOptions.AddQueryParameter("order", order);
4189+
requestOptions.AddQueryParameter("type", type);
41844190
return await _transport
41854191
.ExecuteRequestAsync<ListTransformationsResponse>(
41864192
new HttpMethod("GET"),
@@ -4197,11 +4203,12 @@ public ListTransformationsResponse ListTransformations(
41974203
int? page = default,
41984204
TransformationSortKeys? sort = default,
41994205
OrderKeys? order = default,
4206+
TransformationType? type = default,
42004207
RequestOptions options = null,
42014208
CancellationToken cancellationToken = default
42024209
) =>
42034210
AsyncHelper.RunSync(() =>
4204-
ListTransformationsAsync(itemsPerPage, page, sort, order, options, cancellationToken)
4211+
ListTransformationsAsync(itemsPerPage, page, sort, order, type, options, cancellationToken)
42054212
);
42064213

42074214
/// <inheritdoc />

clients/algoliasearch-client-go/algolia/ingestion/api_ingestion.go

Lines changed: 21 additions & 0 deletions
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/IngestionClient.java

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,6 +2998,8 @@ public CompletableFuture<ListTasksResponseV1> listTasksV1Async() throws AlgoliaR
29982998
* @param sort Property by which to sort the list of transformations. (optional, default to
29992999
* createdAt)
30003000
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3001+
* @param type Whether to filter the list of transformations by the type of transformation.
3002+
* (optional)
30013003
* @param requestOptions The requestOptions to send along with the query, they will be merged with
30023004
* the transporter requestOptions.
30033005
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3007,9 +3009,10 @@ public ListTransformationsResponse listTransformations(
30073009
Integer page,
30083010
TransformationSortKeys sort,
30093011
OrderKeys order,
3012+
TransformationType type,
30103013
@Nullable RequestOptions requestOptions
30113014
) throws AlgoliaRuntimeException {
3012-
return LaunderThrowable.await(listTransformationsAsync(itemsPerPage, page, sort, order, requestOptions));
3015+
return LaunderThrowable.await(listTransformationsAsync(itemsPerPage, page, sort, order, type, requestOptions));
30133016
}
30143017

30153018
/**
@@ -3020,11 +3023,18 @@ public ListTransformationsResponse listTransformations(
30203023
* @param sort Property by which to sort the list of transformations. (optional, default to
30213024
* createdAt)
30223025
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3026+
* @param type Whether to filter the list of transformations by the type of transformation.
3027+
* (optional)
30233028
* @throws AlgoliaRuntimeException If it fails to process the API call
30243029
*/
3025-
public ListTransformationsResponse listTransformations(Integer itemsPerPage, Integer page, TransformationSortKeys sort, OrderKeys order)
3026-
throws AlgoliaRuntimeException {
3027-
return this.listTransformations(itemsPerPage, page, sort, order, null);
3030+
public ListTransformationsResponse listTransformations(
3031+
Integer itemsPerPage,
3032+
Integer page,
3033+
TransformationSortKeys sort,
3034+
OrderKeys order,
3035+
TransformationType type
3036+
) throws AlgoliaRuntimeException {
3037+
return this.listTransformations(itemsPerPage, page, sort, order, type, null);
30283038
}
30293039

30303040
/**
@@ -3035,7 +3045,7 @@ public ListTransformationsResponse listTransformations(Integer itemsPerPage, Int
30353045
* @throws AlgoliaRuntimeException If it fails to process the API call
30363046
*/
30373047
public ListTransformationsResponse listTransformations(@Nullable RequestOptions requestOptions) throws AlgoliaRuntimeException {
3038-
return this.listTransformations(null, null, null, null, requestOptions);
3048+
return this.listTransformations(null, null, null, null, null, requestOptions);
30393049
}
30403050

30413051
/**
@@ -3044,7 +3054,7 @@ public ListTransformationsResponse listTransformations(@Nullable RequestOptions
30443054
* @throws AlgoliaRuntimeException If it fails to process the API call
30453055
*/
30463056
public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeException {
3047-
return this.listTransformations(null, null, null, null, null);
3057+
return this.listTransformations(null, null, null, null, null, null);
30483058
}
30493059

30503060
/**
@@ -3055,6 +3065,8 @@ public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeEx
30553065
* @param sort Property by which to sort the list of transformations. (optional, default to
30563066
* createdAt)
30573067
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3068+
* @param type Whether to filter the list of transformations by the type of transformation.
3069+
* (optional)
30583070
* @param requestOptions The requestOptions to send along with the query, they will be merged with
30593071
* the transporter requestOptions.
30603072
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3064,6 +3076,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30643076
Integer page,
30653077
TransformationSortKeys sort,
30663078
OrderKeys order,
3079+
TransformationType type,
30673080
@Nullable RequestOptions requestOptions
30683081
) throws AlgoliaRuntimeException {
30693082
HttpRequest request = HttpRequest.builder()
@@ -3073,6 +3086,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30733086
.addQueryParameter("page", page)
30743087
.addQueryParameter("sort", sort)
30753088
.addQueryParameter("order", order)
3089+
.addQueryParameter("type", type)
30763090
.build();
30773091
return executeAsync(request, requestOptions, new TypeReference<ListTransformationsResponse>() {});
30783092
}
@@ -3085,15 +3099,18 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30853099
* @param sort Property by which to sort the list of transformations. (optional, default to
30863100
* createdAt)
30873101
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3102+
* @param type Whether to filter the list of transformations by the type of transformation.
3103+
* (optional)
30883104
* @throws AlgoliaRuntimeException If it fails to process the API call
30893105
*/
30903106
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30913107
Integer itemsPerPage,
30923108
Integer page,
30933109
TransformationSortKeys sort,
3094-
OrderKeys order
3110+
OrderKeys order,
3111+
TransformationType type
30953112
) throws AlgoliaRuntimeException {
3096-
return this.listTransformationsAsync(itemsPerPage, page, sort, order, null);
3113+
return this.listTransformationsAsync(itemsPerPage, page, sort, order, type, null);
30973114
}
30983115

30993116
/**
@@ -3105,7 +3122,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
31053122
*/
31063123
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(@Nullable RequestOptions requestOptions)
31073124
throws AlgoliaRuntimeException {
3108-
return this.listTransformationsAsync(null, null, null, null, requestOptions);
3125+
return this.listTransformationsAsync(null, null, null, null, null, requestOptions);
31093126
}
31103127

31113128
/**
@@ -3114,7 +3131,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(@
31143131
* @throws AlgoliaRuntimeException If it fails to process the API call
31153132
*/
31163133
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync() throws AlgoliaRuntimeException {
3117-
return this.listTransformationsAsync(null, null, null, null, null);
3134+
return this.listTransformationsAsync(null, null, null, null, null, null);
31183135
}
31193136

31203137
/**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import type { TransformationCreate } from '../model/transformationCreate';
4242
import type { TransformationSortKeys } from '../model/transformationSortKeys';
4343
import type { TransformationTry } from '../model/transformationTry';
4444

45+
import type { TransformationType } from '../model/transformationType';
46+
4547
import type { TriggerType } from '../model/triggerType';
4648

4749
/**
@@ -582,6 +584,10 @@ export type ListTransformationsProps = {
582584
* Sort order of the response, ascending or descending.
583585
*/
584586
order?: OrderKeys | undefined;
587+
/**
588+
* Whether to filter the list of transformations by the type of transformation.
589+
*/
590+
type?: TransformationType | undefined;
585591
};
586592

587593
/**

clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import type { TransformationSearch } from '../model/transformationSearch';
6464

6565
import type { TransformationTry } from '../model/transformationTry';
6666
import type { TransformationTryResponse } from '../model/transformationTryResponse';
67+
6768
import type { TransformationUpdateResponse } from '../model/transformationUpdateResponse';
6869

6970
import type { WatchResponse } from '../model/watchResponse';
@@ -1752,10 +1753,11 @@ export function createIngestionClient({
17521753
* @param listTransformations.page - Page number of the paginated API response.
17531754
* @param listTransformations.sort - Property by which to sort the list of transformations.
17541755
* @param listTransformations.order - Sort order of the response, ascending or descending.
1756+
* @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
17551757
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
17561758
*/
17571759
listTransformations(
1758-
{ itemsPerPage, page, sort, order }: ListTransformationsProps = {},
1760+
{ itemsPerPage, page, sort, order, type }: ListTransformationsProps = {},
17591761
requestOptions: RequestOptions | undefined = undefined,
17601762
): Promise<ListTransformationsResponse> {
17611763
const requestPath = '/1/transformations';
@@ -1778,6 +1780,10 @@ export function createIngestionClient({
17781780
queryParameters['order'] = order.toString();
17791781
}
17801782

1783+
if (type !== undefined) {
1784+
queryParameters['type'] = type.toString();
1785+
}
1786+
17811787
const request: Request = {
17821788
method: 'GET',
17831789
path: requestPath,

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,9 +902,10 @@ public class IngestionClient(
902902
* @param page Page number of the paginated API response.
903903
* @param sort Property by which to sort the list of transformations. (default to createdAt)
904904
* @param order Sort order of the response, ascending or descending. (default to desc)
905+
* @param type Whether to filter the list of transformations by the type of transformation.
905906
* @param requestOptions additional request configuration.
906907
*/
907-
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: TransformationSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
908+
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: TransformationSortKeys? = null, order: OrderKeys? = null, type: TransformationType? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
908909
val requestConfig = RequestConfig(
909910
method = RequestMethod.GET,
910911
path = listOf("1", "transformations"),
@@ -913,6 +914,7 @@ public class IngestionClient(
913914
page?.let { put("page", it) }
914915
sort?.let { put("sort", it) }
915916
order?.let { put("order", it) }
917+
type?.let { put("type", it) }
916918
},
917919
)
918920
return requester.execute(

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,11 +1773,12 @@ public function listTasksV1($itemsPerPage = null, $page = null, $action = null,
17731773
* @param int $page Page number of the paginated API response. (optional)
17741774
* @param array $sort Property by which to sort the list of transformations. (optional)
17751775
* @param array $order Sort order of the response, ascending or descending. (optional)
1776+
* @param array $type Whether to filter the list of transformations by the type of transformation. (optional)
17761777
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
17771778
*
17781779
* @return array<string, mixed>|ListTransformationsResponse
17791780
*/
1780-
public function listTransformations($itemsPerPage = null, $page = null, $sort = null, $order = null, $requestOptions = [])
1781+
public function listTransformations($itemsPerPage = null, $page = null, $sort = null, $order = null, $type = null, $requestOptions = [])
17811782
{
17821783
$resourcePath = '/1/transformations';
17831784
$queryParameters = [];
@@ -1800,6 +1801,10 @@ public function listTransformations($itemsPerPage = null, $page = null, $sort =
18001801
$queryParameters['order'] = $order;
18011802
}
18021803

1804+
if (null !== $type) {
1805+
$queryParameters['type'] = $type;
1806+
}
1807+
18031808
return $this->sendRequest('GET', $resourcePath, $headers, $queryParameters, $httpBody, $requestOptions);
18041809
}
18051810

0 commit comments

Comments
 (0)