@@ -46,7 +46,6 @@ import type { SourceCreateResponse } from '../model/sourceCreateResponse';
46
46
import type { SourceSearch } from '../model/sourceSearch' ;
47
47
48
48
import type { SourceUpdateResponse } from '../model/sourceUpdateResponse' ;
49
- import type { SourceWatchResponse } from '../model/sourceWatchResponse' ;
50
49
import type { Task } from '../model/task' ;
51
50
import type { TaskCreate } from '../model/taskCreate' ;
52
51
import type { TaskCreateResponse } from '../model/taskCreateResponse' ;
@@ -65,6 +64,8 @@ import type { TransformationTry } from '../model/transformationTry';
65
64
import type { TransformationTryResponse } from '../model/transformationTryResponse' ;
66
65
import type { TransformationUpdateResponse } from '../model/transformationUpdateResponse' ;
67
66
67
+ import type { WatchResponse } from '../model/watchResponse' ;
68
+
68
69
import type {
69
70
CustomDeleteProps ,
70
71
CustomGetProps ,
@@ -1694,7 +1695,10 @@ export function createIngestionClient({
1694
1695
* @param pushTask.watch - When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
1695
1696
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1696
1697
*/
1697
- pushTask ( { taskID, pushTaskPayload, watch } : PushTaskProps , requestOptions ?: RequestOptions ) : Promise < RunResponse > {
1698
+ pushTask (
1699
+ { taskID, pushTaskPayload, watch } : PushTaskProps ,
1700
+ requestOptions ?: RequestOptions ,
1701
+ ) : Promise < WatchResponse > {
1698
1702
if ( ! taskID ) {
1699
1703
throw new Error ( 'Parameter `taskID` is required when calling `pushTask`.' ) ;
1700
1704
}
@@ -2055,7 +2059,7 @@ export function createIngestionClient({
2055
2059
triggerDockerSourceDiscover (
2056
2060
{ sourceID } : TriggerDockerSourceDiscoverProps ,
2057
2061
requestOptions ?: RequestOptions ,
2058
- ) : Promise < SourceWatchResponse > {
2062
+ ) : Promise < WatchResponse > {
2059
2063
if ( ! sourceID ) {
2060
2064
throw new Error ( 'Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.' ) ;
2061
2065
}
@@ -2410,7 +2414,7 @@ export function createIngestionClient({
2410
2414
validateSource (
2411
2415
sourceCreate : SourceCreate ,
2412
2416
requestOptions : RequestOptions | undefined = undefined ,
2413
- ) : Promise < SourceWatchResponse > {
2417
+ ) : Promise < WatchResponse > {
2414
2418
const requestPath = '/1/sources/validate' ;
2415
2419
const headers : Headers = { } ;
2416
2420
const queryParameters : QueryParameters = { } ;
@@ -2441,7 +2445,7 @@ export function createIngestionClient({
2441
2445
validateSourceBeforeUpdate (
2442
2446
{ sourceID, sourceUpdate } : ValidateSourceBeforeUpdateProps ,
2443
2447
requestOptions ?: RequestOptions ,
2444
- ) : Promise < SourceWatchResponse > {
2448
+ ) : Promise < WatchResponse > {
2445
2449
if ( ! sourceID ) {
2446
2450
throw new Error ( 'Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.' ) ;
2447
2451
}
0 commit comments