Skip to content

Commit b0ed7bf

Browse files
chore: generated code for commit fe6f5eda. [skip ci]
algolia/api-clients-automation@fe6f5ed Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 2160e75 commit b0ed7bf

File tree

10 files changed

+1034
-357
lines changed

10 files changed

+1034
-357
lines changed

packages/ingestion/model/clientMethodProps.ts

Lines changed: 176 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import type { SourceType } from './sourceType';
2020
import type { SourceUpdate } from './sourceUpdate';
2121
import type { TaskSortKeys } from './taskSortKeys';
2222
import type { TaskUpdate } from './taskUpdate';
23+
import type { TaskUpdateV1 } from './taskUpdateV1';
2324
import type { TransformationCreate } from './transformationCreate';
2425
import type { TriggerType } from './triggerType';
2526

@@ -127,6 +128,16 @@ export type DeleteTaskProps = {
127128
taskID: string;
128129
};
129130

131+
/**
132+
* Properties for the `deleteTaskV1` method.
133+
*/
134+
export type DeleteTaskV1Props = {
135+
/**
136+
* Unique identifier of a task.
137+
*/
138+
taskID: string;
139+
};
140+
130141
/**
131142
* Properties for the `deleteTransformation` method.
132143
*/
@@ -147,6 +158,16 @@ export type DisableTaskProps = {
147158
taskID: string;
148159
};
149160

161+
/**
162+
* Properties for the `disableTaskV1` method.
163+
*/
164+
export type DisableTaskV1Props = {
165+
/**
166+
* Unique identifier of a task.
167+
*/
168+
taskID: string;
169+
};
170+
150171
/**
151172
* Properties for the `enableTask` method.
152173
*/
@@ -157,6 +178,16 @@ export type EnableTaskProps = {
157178
taskID: string;
158179
};
159180

181+
/**
182+
* Properties for the `enableTaskV1` method.
183+
*/
184+
export type EnableTaskV1Props = {
185+
/**
186+
* Unique identifier of a task.
187+
*/
188+
taskID: string;
189+
};
190+
160191
/**
161192
* Properties for the `getAuthentication` method.
162193
*/
@@ -168,9 +199,83 @@ export type GetAuthenticationProps = {
168199
};
169200

170201
/**
171-
* Properties for the `getAuthentications` method.
202+
* Properties for the `getDestination` method.
203+
*/
204+
export type GetDestinationProps = {
205+
/**
206+
* Unique identifier of a destination.
207+
*/
208+
destinationID: string;
209+
};
210+
211+
/**
212+
* Properties for the `getEvent` method.
213+
*/
214+
export type GetEventProps = {
215+
/**
216+
* Unique identifier of a task run.
217+
*/
218+
runID: string;
219+
/**
220+
* Unique identifier of an event.
221+
*/
222+
eventID: string;
223+
};
224+
225+
/**
226+
* Properties for the `getRun` method.
227+
*/
228+
export type GetRunProps = {
229+
/**
230+
* Unique identifier of a task run.
231+
*/
232+
runID: string;
233+
};
234+
235+
/**
236+
* Properties for the `getSource` method.
237+
*/
238+
export type GetSourceProps = {
239+
/**
240+
* Unique identifier of a source.
241+
*/
242+
sourceID: string;
243+
};
244+
245+
/**
246+
* Properties for the `getTask` method.
172247
*/
173-
export type GetAuthenticationsProps = {
248+
export type GetTaskProps = {
249+
/**
250+
* Unique identifier of a task.
251+
*/
252+
taskID: string;
253+
};
254+
255+
/**
256+
* Properties for the `getTaskV1` method.
257+
*/
258+
export type GetTaskV1Props = {
259+
/**
260+
* Unique identifier of a task.
261+
*/
262+
taskID: string;
263+
};
264+
265+
/**
266+
* Properties for the `getTransformation` method.
267+
*/
268+
export type GetTransformationProps = {
269+
/**
270+
* Unique identifier of a transformation.
271+
*/
272+
transformationID: string;
273+
};
274+
275+
/**
276+
* Properties for the `listAuthentications` method.
277+
*/
278+
export type ListAuthenticationsProps = {
174279
/**
175280
* Number of items per page.
176281
*/
@@ -198,19 +303,9 @@ export type GetAuthenticationsProps = {
198303
};
199304

200305
/**
201-
* Properties for the `getDestination` method.
202-
*/
203-
export type GetDestinationProps = {
204-
/**
205-
* Unique identifier of a destination.
206-
*/
207-
destinationID: string;
208-
};
209-
210-
/**
211-
* Properties for the `getDestinations` method.
306+
* Properties for the `listDestinations` method.
212307
*/
213-
export type GetDestinationsProps = {
308+
export type ListDestinationsProps = {
214309
/**
215310
* Number of items per page.
216311
*/
@@ -238,23 +333,9 @@ export type GetDestinationsProps = {
238333
};
239334

240335
/**
241-
* Properties for the `getEvent` method.
242-
*/
243-
export type GetEventProps = {
244-
/**
245-
* Unique identifier of a task run.
246-
*/
247-
runID: string;
248-
/**
249-
* Unique identifier of an event.
250-
*/
251-
eventID: string;
252-
};
253-
254-
/**
255-
* Properties for the `getEvents` method.
336+
* Properties for the `listEvents` method.
256337
*/
257-
export type GetEventsProps = {
338+
export type ListEventsProps = {
258339
/**
259340
* Unique identifier of a task run.
260341
*/
@@ -294,19 +375,9 @@ export type GetEventsProps = {
294375
};
295376

296377
/**
297-
* Properties for the `getRun` method.
378+
* Properties for the `listRuns` method.
298379
*/
299-
export type GetRunProps = {
300-
/**
301-
* Unique identifier of a task run.
302-
*/
303-
runID: string;
304-
};
305-
306-
/**
307-
* Properties for the `getRuns` method.
308-
*/
309-
export type GetRunsProps = {
380+
export type ListRunsProps = {
310381
/**
311382
* Number of items per page.
312383
*/
@@ -342,19 +413,9 @@ export type GetRunsProps = {
342413
};
343414

344415
/**
345-
* Properties for the `getSource` method.
416+
* Properties for the `listSources` method.
346417
*/
347-
export type GetSourceProps = {
348-
/**
349-
* Unique identifier of a source.
350-
*/
351-
sourceID: string;
352-
};
353-
354-
/**
355-
* Properties for the `getSources` method.
356-
*/
357-
export type GetSourcesProps = {
418+
export type ListSourcesProps = {
358419
/**
359420
* Number of items per page.
360421
*/
@@ -382,19 +443,9 @@ export type GetSourcesProps = {
382443
};
383444

384445
/**
385-
* Properties for the `getTask` method.
446+
* Properties for the `listTasks` method.
386447
*/
387-
export type GetTaskProps = {
388-
/**
389-
* Unique identifier of a task.
390-
*/
391-
taskID: string;
392-
};
393-
394-
/**
395-
* Properties for the `getTasks` method.
396-
*/
397-
export type GetTasksProps = {
448+
export type ListTasksProps = {
398449
/**
399450
* Number of items per page.
400451
*/
@@ -434,19 +485,51 @@ export type GetTasksProps = {
434485
};
435486

436487
/**
437-
* Properties for the `getTransformation` method.
488+
* Properties for the `listTasksV1` method.
438489
*/
439-
export type GetTransformationProps = {
490+
export type ListTasksV1Props = {
440491
/**
441-
* Unique identifier of a transformation.
492+
* Number of items per page.
442493
*/
443-
transformationID: string;
494+
itemsPerPage?: number;
495+
/**
496+
* Page number of the paginated API response.
497+
*/
498+
page?: number;
499+
/**
500+
* Actions for filtering the list of tasks.
501+
*/
502+
action?: ActionType[];
503+
/**
504+
* Whether to filter the list of tasks by the `enabled` status.
505+
*/
506+
enabled?: boolean;
507+
/**
508+
* Source IDs for filtering the list of tasks.
509+
*/
510+
sourceID?: string[];
511+
/**
512+
* Destination IDs for filtering the list of tasks.
513+
*/
514+
destinationID?: string[];
515+
/**
516+
* Type of task trigger for filtering the list of tasks.
517+
*/
518+
triggerType?: TriggerType[];
519+
/**
520+
* Property by which to sort the list of tasks.
521+
*/
522+
sort?: TaskSortKeys;
523+
/**
524+
* Sort order of the response, ascending or descending.
525+
*/
526+
order?: OrderKeys;
444527
};
445528

446529
/**
447-
* Properties for the `getTransformations` method.
530+
* Properties for the `listTransformations` method.
448531
*/
449-
export type GetTransformationsProps = {
532+
export type ListTransformationsProps = {
450533
/**
451534
* Property by which to sort the list.
452535
*/
@@ -467,6 +550,16 @@ export type RunTaskProps = {
467550
taskID: string;
468551
};
469552

553+
/**
554+
* Properties for the `runTaskV1` method.
555+
*/
556+
export type RunTaskV1Props = {
557+
/**
558+
* Unique identifier of a task.
559+
*/
560+
taskID: string;
561+
};
562+
470563
/**
471564
* Properties for the `triggerDockerSourceDiscover` method.
472565
*/
@@ -521,6 +614,17 @@ export type UpdateTaskProps = {
521614
taskUpdate: TaskUpdate;
522615
};
523616

617+
/**
618+
* Properties for the `updateTaskV1` method.
619+
*/
620+
export type UpdateTaskV1Props = {
621+
/**
622+
* Unique identifier of a task.
623+
*/
624+
taskID: string;
625+
taskUpdate: TaskUpdateV1;
626+
};
627+
524628
/**
525629
* Properties for the `updateTransformation` method.
526630
*/

packages/ingestion/model/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export * from './listDestinationsResponse';
5252
export * from './listEventsResponse';
5353
export * from './listSourcesResponse';
5454
export * from './listTasksResponse';
55+
export * from './listTasksResponseV1';
5556
export * from './listTransformationsResponse';
5657
export * from './mappingFieldDirective';
5758
export * from './mappingFormatSchema';
@@ -116,11 +117,14 @@ export * from './task';
116117
export * from './taskCreate';
117118
export * from './taskCreateResponse';
118119
export * from './taskCreateTrigger';
120+
export * from './taskCreateV1';
119121
export * from './taskInput';
120122
export * from './taskSearch';
121123
export * from './taskSortKeys';
122124
export * from './taskUpdate';
123125
export * from './taskUpdateResponse';
126+
export * from './taskUpdateV1';
127+
export * from './taskV1';
124128
export * from './transformation';
125129
export * from './transformationCreate';
126130
export * from './transformationCreateResponse';
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { Pagination } from './pagination';
4+
import type { TaskV1 } from './taskV1';
5+
6+
/**
7+
* Configured tasks and pagination information.
8+
*/
9+
export type ListTasksResponseV1 = {
10+
tasks: TaskV1[];
11+
12+
pagination: Pagination;
13+
};

0 commit comments

Comments
 (0)