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/TicketService.ts
6467 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 TicketService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any error
12
* @throws ApiError
13
*/
14
public createTicket({
15
clientId,
16
}: {
17
clientId: string;
18
}): CancelablePromise<{
19
code?: number;
20
message: string;
21
}> {
22
return this.httpRequest.request({
23
method: "POST",
24
url: "/oauth/tickets",
25
query: {
26
"client_id": clientId,
27
},
28
});
29
}
30
31
/**
32
* @returns any ok
33
* @throws ApiError
34
*/
35
public showTicket({
36
ticketId,
37
}: {
38
ticketId: string;
39
}): CancelablePromise<{
40
id?: string;
41
client_id?: string;
42
authorized?: boolean;
43
created_at?: string;
44
}> {
45
return this.httpRequest.request({
46
method: "GET",
47
url: "/oauth/tickets/{ticket_id}",
48
path: {
49
"ticket_id": ticketId,
50
},
51
});
52
}
53
}
54
55