@@ -20,6 +20,7 @@ import type { SourceType } from './sourceType';
20
20
import type { SourceUpdate } from './sourceUpdate' ;
21
21
import type { TaskSortKeys } from './taskSortKeys' ;
22
22
import type { TaskUpdate } from './taskUpdate' ;
23
+ import type { TaskUpdateV1 } from './taskUpdateV1' ;
23
24
import type { TransformationCreate } from './transformationCreate' ;
24
25
import type { TriggerType } from './triggerType' ;
25
26
@@ -127,6 +128,16 @@ export type DeleteTaskProps = {
127
128
taskID : string ;
128
129
} ;
129
130
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
+
130
141
/**
131
142
* Properties for the `deleteTransformation` method.
132
143
*/
@@ -147,6 +158,16 @@ export type DisableTaskProps = {
147
158
taskID : string ;
148
159
} ;
149
160
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
+
150
171
/**
151
172
* Properties for the `enableTask` method.
152
173
*/
@@ -157,6 +178,16 @@ export type EnableTaskProps = {
157
178
taskID : string ;
158
179
} ;
159
180
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
+
160
191
/**
161
192
* Properties for the `getAuthentication` method.
162
193
*/
@@ -168,9 +199,83 @@ export type GetAuthenticationProps = {
168
199
} ;
169
200
170
201
/**
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.
172
247
*/
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 = {
174
279
/**
175
280
* Number of items per page.
176
281
*/
@@ -198,19 +303,9 @@ export type GetAuthenticationsProps = {
198
303
} ;
199
304
200
305
/**
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.
212
307
*/
213
- export type GetDestinationsProps = {
308
+ export type ListDestinationsProps = {
214
309
/**
215
310
* Number of items per page.
216
311
*/
@@ -238,23 +333,9 @@ export type GetDestinationsProps = {
238
333
} ;
239
334
240
335
/**
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.
256
337
*/
257
- export type GetEventsProps = {
338
+ export type ListEventsProps = {
258
339
/**
259
340
* Unique identifier of a task run.
260
341
*/
@@ -294,19 +375,9 @@ export type GetEventsProps = {
294
375
} ;
295
376
296
377
/**
297
- * Properties for the `getRun ` method.
378
+ * Properties for the `listRuns ` method.
298
379
*/
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 = {
310
381
/**
311
382
* Number of items per page.
312
383
*/
@@ -342,19 +413,9 @@ export type GetRunsProps = {
342
413
} ;
343
414
344
415
/**
345
- * Properties for the `getSource ` method.
416
+ * Properties for the `listSources ` method.
346
417
*/
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 = {
358
419
/**
359
420
* Number of items per page.
360
421
*/
@@ -382,19 +443,9 @@ export type GetSourcesProps = {
382
443
} ;
383
444
384
445
/**
385
- * Properties for the `getTask ` method.
446
+ * Properties for the `listTasks ` method.
386
447
*/
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 = {
398
449
/**
399
450
* Number of items per page.
400
451
*/
@@ -434,19 +485,51 @@ export type GetTasksProps = {
434
485
} ;
435
486
436
487
/**
437
- * Properties for the `getTransformation ` method.
488
+ * Properties for the `listTasksV1 ` method.
438
489
*/
439
- export type GetTransformationProps = {
490
+ export type ListTasksV1Props = {
440
491
/**
441
- * Unique identifier of a transformation .
492
+ * Number of items per page .
442
493
*/
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 ;
444
527
} ;
445
528
446
529
/**
447
- * Properties for the `getTransformations ` method.
530
+ * Properties for the `listTransformations ` method.
448
531
*/
449
- export type GetTransformationsProps = {
532
+ export type ListTransformationsProps = {
450
533
/**
451
534
* Property by which to sort the list.
452
535
*/
@@ -467,6 +550,16 @@ export type RunTaskProps = {
467
550
taskID : string ;
468
551
} ;
469
552
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
+
470
563
/**
471
564
* Properties for the `triggerDockerSourceDiscover` method.
472
565
*/
@@ -521,6 +614,17 @@ export type UpdateTaskProps = {
521
614
taskUpdate : TaskUpdate ;
522
615
} ;
523
616
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
+
524
628
/**
525
629
* Properties for the `updateTransformation` method.
526
630
*/
0 commit comments