Skip to content

Commit 46e837f

Browse files
algolia-botFluf22
andcommitted
chore: generated code for commit 4b1f1fd. [skip ci]
Co-authored-by: Thomas Raffray <[email protected]>
1 parent 4b1f1fd commit 46e837f

File tree

3 files changed

+104
-7
lines changed

3 files changed

+104
-7
lines changed

clients/algoliasearch-client-javascript/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
/**

clients/algoliasearch-client-javascript/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,

specs/bundled/ingestion.yml

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,54 @@ components:
5252
schema:
5353
type: string
5454
example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f
55+
action:
56+
name: action
57+
in: query
58+
description: >-
59+
Which action the returned task should have. Can be a list of string
60+
separated with commas.
61+
required: false
62+
style: form
63+
explode: false
64+
schema:
65+
type: array
66+
items:
67+
$ref: '#/components/schemas/ActionType'
68+
example: save,replace
69+
enabled:
70+
name: enabled
71+
in: query
72+
description: If the returned task should have its 'enabled' property set to true.
73+
required: false
74+
schema:
75+
type: boolean
76+
taskParameters_destinationID:
77+
name: destinationID
78+
in: query
79+
description: >-
80+
Which destinationID the returned task should have. Can be a list of
81+
string separated with commas.
82+
required: false
83+
style: form
84+
explode: false
85+
schema:
86+
type: array
87+
items:
88+
type: string
89+
triggerType:
90+
name: triggerType
91+
in: query
92+
description: >-
93+
Which trigger type the returned task should have. Can be a list of
94+
string separated with commas.
95+
required: false
96+
style: form
97+
explode: false
98+
schema:
99+
type: array
100+
items:
101+
$ref: '#/components/schemas/TriggerType'
102+
example: on_demand,schedule
55103
taskID:
56104
name: taskID
57105
in: path
@@ -527,6 +575,12 @@ components:
527575
- sourceID
528576
- name
529577
- updatedAt
578+
ActionType:
579+
type: string
580+
enum:
581+
- replace
582+
- save
583+
- delete
530584
TriggerType:
531585
type: string
532586
enum:
@@ -549,12 +603,6 @@ components:
549603
type: string
550604
required:
551605
- type
552-
ActionType:
553-
type: string
554-
enum:
555-
- replace
556-
- save
557-
- delete
558606
Task:
559607
type: object
560608
additionalProperties: false
@@ -1153,6 +1201,10 @@ paths:
11531201
parameters:
11541202
- $ref: '#/components/parameters/itemsPerPage'
11551203
- $ref: '#/components/parameters/page'
1204+
- $ref: '#/components/parameters/action'
1205+
- $ref: '#/components/parameters/enabled'
1206+
- $ref: '#/components/parameters/taskParameters_destinationID'
1207+
- $ref: '#/components/parameters/triggerType'
11561208
responses:
11571209
'200':
11581210
description: OK

0 commit comments

Comments
 (0)