Skip to content

Commit e3b976a

Browse files
fix(specs): ingestion destinations and transformations (generated)
algolia/api-clients-automation#3477 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent e00f21c commit e3b976a

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

packages/ingestion/model/clientMethodProps.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,14 @@ export type ListTasksV1Props = {
532532
* Properties for the `listTransformations` method.
533533
*/
534534
export type ListTransformationsProps = {
535+
/**
536+
* Number of items per page.
537+
*/
538+
itemsPerPage?: number;
539+
/**
540+
* Page number of the paginated API response.
541+
*/
542+
page?: number;
535543
/**
536544
* Property by which to sort the list.
537545
*/

packages/ingestion/model/destination.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ export type Destination = {
3535
* Universally unique identifier (UUID) of an authentication resource.
3636
*/
3737
authenticationID?: string;
38+
39+
transformationIDs?: string[];
3840
};

packages/ingestion/model/destinationCreate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ export type DestinationCreate = {
2020
* Universally unique identifier (UUID) of an authentication resource.
2121
*/
2222
authenticationID?: string;
23+
24+
transformationIDs?: string[];
2325
};

packages/ingestion/model/destinationUpdate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ export type DestinationUpdate = {
2020
* Universally unique identifier (UUID) of an authentication resource.
2121
*/
2222
authenticationID?: string;
23+
24+
transformationIDs?: string[];
2325
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,18 +1880,28 @@ export function createIngestionClient({
18801880
* - editSettings.
18811881
*
18821882
* @param listTransformations - The listTransformations object.
1883+
* @param listTransformations.itemsPerPage - Number of items per page.
1884+
* @param listTransformations.page - Page number of the paginated API response.
18831885
* @param listTransformations.sort - Property by which to sort the list.
18841886
* @param listTransformations.order - Sort order of the response, ascending or descending.
18851887
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
18861888
*/
18871889
listTransformations(
1888-
{ sort, order }: ListTransformationsProps = {},
1890+
{ itemsPerPage, page, sort, order }: ListTransformationsProps = {},
18891891
requestOptions: RequestOptions | undefined = undefined
18901892
): Promise<ListTransformationsResponse> {
18911893
const requestPath = '/1/transformations';
18921894
const headers: Headers = {};
18931895
const queryParameters: QueryParameters = {};
18941896

1897+
if (itemsPerPage !== undefined) {
1898+
queryParameters.itemsPerPage = itemsPerPage.toString();
1899+
}
1900+
1901+
if (page !== undefined) {
1902+
queryParameters.page = page.toString();
1903+
}
1904+
18951905
if (sort !== undefined) {
18961906
queryParameters.sort = sort.toString();
18971907
}

0 commit comments

Comments
 (0)