Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/publish/netlify/api/services/BuildLogMsgService.ts
6468 views
1
/* istanbul ignore file */
2
/* tslint:disable */
3
/* eslint-disable */
4
import type { CancelablePromise } from "../core/CancelablePromise.ts";
5
import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";
6
7
export class BuildLogMsgService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any error
12
* @throws ApiError
13
*/
14
public updateSiteBuildLog({
15
buildId,
16
msg,
17
}: {
18
buildId: string;
19
msg: {
20
message?: string;
21
error?: boolean;
22
};
23
}): CancelablePromise<{
24
code?: number;
25
message: string;
26
}> {
27
return this.httpRequest.request({
28
method: "POST",
29
url: "/builds/{build_id}/log",
30
path: {
31
"build_id": buildId,
32
},
33
body: msg,
34
});
35
}
36
}
37
38