API client: draw-only option for Automático
This commit is contained in:
@@ -10,6 +10,7 @@ import { RequestBuilder } from '../../request-builder';
|
||||
|
||||
export interface StartDraft$Params {
|
||||
pipeline_id: string;
|
||||
run?: boolean;
|
||||
}
|
||||
|
||||
export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
@@ -18,6 +19,7 @@ export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft
|
||||
const rb = new RequestBuilder(rootUrl, startDraft.PATH, 'post');
|
||||
if (params) {
|
||||
rb.path('pipeline_id', params.pipeline_id, {});
|
||||
rb.query('run', params.run, {});
|
||||
}
|
||||
|
||||
return http.request(
|
||||
|
||||
Reference in New Issue
Block a user