Skip to content

Commit 56de5a2

Browse files
algolia-botFluf22
andcommitted
chore: generated code for commit 4b1f1fd3. [skip ci]
algolia/api-clients-automation@4b1f1fd Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent f118e93 commit 56de5a2

File tree

11 files changed

+46
-208
lines changed

11 files changed

+46
-208
lines changed

packages/algoliasearch/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-abtesting/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-analytics/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-insights/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-personalization/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-query-suggestions/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-search/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/ingestion/model/clientMethodProps.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
import type { ActionType } from './actionType';
34
import type { AuthenticationUpdate } from './authenticationUpdate';
45
import type { DestinationUpdate } from './destinationUpdate';
56
import type { SourceUpdate } from './sourceUpdate';
67
import type { TaskUpdate } from './taskUpdate';
8+
import type { TriggerType } from './triggerType';
79

810
/**
911
* Properties for the `deleteAuthentication` method.
@@ -233,6 +235,22 @@ export type GetTasksProps = {
233235
* The page number to fetch, starting at 1.
234236
*/
235237
page?: number;
238+
/**
239+
* Which action the returned task should have. Can be a list of string separated with commas.
240+
*/
241+
action?: ActionType[];
242+
/**
243+
* If the returned task should have its \'enabled\' property set to true.
244+
*/
245+
enabled?: boolean;
246+
/**
247+
* Which destinationID the returned task should have. Can be a list of string separated with commas.
248+
*/
249+
destinationID?: string[];
250+
/**
251+
* Which trigger type the returned task should have. Can be a list of string separated with commas.
252+
*/
253+
triggerType?: TriggerType[];
236254
};
237255

238256
/**

packages/ingestion/src/ingestionClient.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,10 +945,21 @@ export function createIngestionClient({
945945
* @param getTasks - The getTasks object.
946946
* @param getTasks.itemsPerPage - The number of items per page to return.
947947
* @param getTasks.page - The page number to fetch, starting at 1.
948+
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
949+
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
950+
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
951+
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
948952
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
949953
*/
950954
getTasks(
951-
{ itemsPerPage, page }: GetTasksProps = {},
955+
{
956+
itemsPerPage,
957+
page,
958+
action,
959+
enabled,
960+
destinationID,
961+
triggerType,
962+
}: GetTasksProps = {},
952963
requestOptions: RequestOptions | undefined = undefined
953964
): Promise<ListTasksResponse> {
954965
const requestPath = '/1/tasks';
@@ -963,6 +974,22 @@ export function createIngestionClient({
963974
queryParameters.page = page.toString();
964975
}
965976

977+
if (action !== undefined) {
978+
queryParameters.action = action.toString();
979+
}
980+
981+
if (enabled !== undefined) {
982+
queryParameters.enabled = enabled.toString();
983+
}
984+
985+
if (destinationID !== undefined) {
986+
queryParameters.destinationID = destinationID.toString();
987+
}
988+
989+
if (triggerType !== undefined) {
990+
queryParameters.triggerType = triggerType.toString();
991+
}
992+
966993
const request: Request = {
967994
method: 'GET',
968995
path: requestPath,

packages/predict/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/recommend/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)