-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreports.ts
54 lines (50 loc) · 1.59 KB
/
reports.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { reportsGetChangesReportSignedUrl } from "../funcs/reportsGetChangesReportSignedUrl.js";
import { reportsGetLintingReportSignedUrl } from "../funcs/reportsGetLintingReportSignedUrl.js";
import { reportsUploadReport } from "../funcs/reportsUploadReport.js";
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
import * as operations from "./models/operations/index.js";
import { unwrapAsync } from "./types/fp.js";
export class Reports extends ClientSDK {
/**
* Get the signed access url for the change reports for a particular document.
*/
async getChangesReportSignedUrl(
request: operations.GetChangesReportSignedUrlRequest,
options?: RequestOptions,
): Promise<operations.GetChangesReportSignedUrlSignedAccess> {
return unwrapAsync(reportsGetChangesReportSignedUrl(
this,
request,
options,
));
}
/**
* Get the signed access url for the linting reports for a particular document.
*/
async getLintingReportSignedUrl(
request: operations.GetLintingReportSignedUrlRequest,
options?: RequestOptions,
): Promise<operations.GetLintingReportSignedUrlSignedAccess> {
return unwrapAsync(reportsGetLintingReportSignedUrl(
this,
request,
options,
));
}
/**
* Upload a report.
*/
async uploadReport(
request: operations.UploadReportRequestBody,
options?: RequestOptions,
): Promise<operations.UploadReportUploadedReport> {
return unwrapAsync(reportsUploadReport(
this,
request,
options,
));
}
}