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/MemberService.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 MemberService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any OK
12
* @throws ApiError
13
*/
14
public listMembersForAccount({
15
accountSlug,
16
}: {
17
accountSlug: string;
18
}): CancelablePromise<
19
Array<{
20
id?: string;
21
full_name?: string;
22
email?: string;
23
avatar?: string;
24
role?: string;
25
}>
26
> {
27
return this.httpRequest.request({
28
method: "GET",
29
url: "/{account_slug}/members",
30
path: {
31
"account_slug": accountSlug,
32
},
33
});
34
}
35
36
/**
37
* @returns any OK
38
* @throws ApiError
39
*/
40
public addMemberToAccount({
41
accountSlug,
42
email,
43
role,
44
}: {
45
accountSlug: string;
46
email: string;
47
role?: "Owner" | "Collaborator" | "Controller";
48
}): CancelablePromise<
49
Array<{
50
id?: string;
51
full_name?: string;
52
email?: string;
53
avatar?: string;
54
role?: string;
55
}>
56
> {
57
return this.httpRequest.request({
58
method: "POST",
59
url: "/{account_slug}/members",
60
path: {
61
"account_slug": accountSlug,
62
},
63
query: {
64
"role": role,
65
"email": email,
66
},
67
});
68
}
69
}
70
71