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/ServiceService.ts
6464 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 ServiceService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any services
12
* @throws ApiError
13
*/
14
public getServices({
15
search,
16
}: {
17
search?: string;
18
}): CancelablePromise<
19
Array<{
20
id?: string;
21
name?: string;
22
slug?: string;
23
service_path?: string;
24
long_description?: string;
25
description?: string;
26
events?: Array<any>;
27
tags?: Array<string>;
28
icon?: string;
29
manifest_url?: string;
30
environments?: Array<string>;
31
created_at?: string;
32
updated_at?: string;
33
}>
34
> {
35
return this.httpRequest.request({
36
method: "GET",
37
url: "/services/",
38
query: {
39
"search": search,
40
},
41
});
42
}
43
44
/**
45
* @returns any services
46
* @throws ApiError
47
*/
48
public showService({
49
addonName,
50
}: {
51
addonName: string;
52
}): CancelablePromise<{
53
id?: string;
54
name?: string;
55
slug?: string;
56
service_path?: string;
57
long_description?: string;
58
description?: string;
59
events?: Array<any>;
60
tags?: Array<string>;
61
icon?: string;
62
manifest_url?: string;
63
environments?: Array<string>;
64
created_at?: string;
65
updated_at?: string;
66
}> {
67
return this.httpRequest.request({
68
method: "GET",
69
url: "/services/{addonName}",
70
path: {
71
"addonName": addonName,
72
},
73
});
74
}
75
76
/**
77
* @returns any error
78
* @throws ApiError
79
*/
80
public showServiceManifest({
81
addonName,
82
}: {
83
addonName: string;
84
}): CancelablePromise<{
85
code?: number;
86
message: string;
87
}> {
88
return this.httpRequest.request({
89
method: "GET",
90
url: "/services/{addonName}/manifest",
91
path: {
92
"addonName": addonName,
93
},
94
});
95
}
96
}
97
98