@teemill/projects 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -23
- package/README.md +3 -3
- package/api.ts +2262 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1400 -0
- package/dist/api.js +1374 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1400 -0
- package/dist/esm/api.js +1367 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +14 -2
- package/tsconfig.json +4 -6
- package/dist/apis/ProjectsApi.d.ts +0 -255
- package/dist/apis/ProjectsApi.js +0 -748
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/esm/apis/ProjectsApi.d.ts +0 -255
- package/dist/esm/apis/ProjectsApi.js +0 -744
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -3
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/CreateInviteRequest.d.ts +0 -31
- package/dist/esm/models/CreateInviteRequest.js +0 -40
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -43
- package/dist/esm/models/CreateProjectRequest.js +0 -44
- package/dist/esm/models/CreateUserRequest.d.ts +0 -56
- package/dist/esm/models/CreateUserRequest.js +0 -55
- package/dist/esm/models/CreateUserRequestAvatar.d.ts +0 -31
- package/dist/esm/models/CreateUserRequestAvatar.js +0 -43
- package/dist/esm/models/InstallTemplateRequest.d.ts +0 -31
- package/dist/esm/models/InstallTemplateRequest.js +0 -38
- package/dist/esm/models/Integration.d.ts +0 -49
- package/dist/esm/models/Integration.js +0 -47
- package/dist/esm/models/IntegrationInfo.d.ts +0 -49
- package/dist/esm/models/IntegrationInfo.js +0 -52
- package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationsResponse.js +0 -41
- package/dist/esm/models/LegacyProjectLogo.d.ts +0 -37
- package/dist/esm/models/LegacyProjectLogo.js +0 -44
- package/dist/esm/models/Project.d.ts +0 -65
- package/dist/esm/models/Project.js +0 -59
- package/dist/esm/models/ProjectInvite.d.ts +0 -56
- package/dist/esm/models/ProjectInvite.js +0 -57
- package/dist/esm/models/ProjectInvites.d.ts +0 -38
- package/dist/esm/models/ProjectInvites.js +0 -45
- package/dist/esm/models/ProjectLogo.d.ts +0 -39
- package/dist/esm/models/ProjectLogo.js +0 -44
- package/dist/esm/models/ProjectManager.d.ts +0 -44
- package/dist/esm/models/ProjectManager.js +0 -49
- package/dist/esm/models/ProjectUser.d.ts +0 -83
- package/dist/esm/models/ProjectUser.js +0 -75
- package/dist/esm/models/ProjectUserAvatar.d.ts +0 -31
- package/dist/esm/models/ProjectUserAvatar.js +0 -38
- package/dist/esm/models/ProjectUsers.d.ts +0 -38
- package/dist/esm/models/ProjectUsers.js +0 -45
- package/dist/esm/models/ProjectsResponse.d.ts +0 -32
- package/dist/esm/models/ProjectsResponse.js +0 -41
- package/dist/esm/models/SetupIntegrationRequest.d.ts +0 -31
- package/dist/esm/models/SetupIntegrationRequest.js +0 -40
- package/dist/esm/models/UpdateProjectRequest.d.ts +0 -38
- package/dist/esm/models/UpdateProjectRequest.js +0 -41
- package/dist/esm/models/UpdateUserRequest.d.ts +0 -56
- package/dist/esm/models/UpdateUserRequest.js +0 -52
- package/dist/esm/models/UpdateUserRequestAvatar.d.ts +0 -31
- package/dist/esm/models/UpdateUserRequestAvatar.js +0 -43
- package/dist/esm/models/index.d.ts +0 -18
- package/dist/esm/models/index.js +0 -20
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/CreateInviteRequest.d.ts +0 -31
- package/dist/models/CreateInviteRequest.js +0 -47
- package/dist/models/CreateProjectRequest.d.ts +0 -43
- package/dist/models/CreateProjectRequest.js +0 -51
- package/dist/models/CreateUserRequest.d.ts +0 -56
- package/dist/models/CreateUserRequest.js +0 -62
- package/dist/models/CreateUserRequestAvatar.d.ts +0 -31
- package/dist/models/CreateUserRequestAvatar.js +0 -50
- package/dist/models/InstallTemplateRequest.d.ts +0 -31
- package/dist/models/InstallTemplateRequest.js +0 -45
- package/dist/models/Integration.d.ts +0 -49
- package/dist/models/Integration.js +0 -54
- package/dist/models/IntegrationInfo.d.ts +0 -49
- package/dist/models/IntegrationInfo.js +0 -59
- package/dist/models/IntegrationsResponse.d.ts +0 -32
- package/dist/models/IntegrationsResponse.js +0 -48
- package/dist/models/LegacyProjectLogo.d.ts +0 -37
- package/dist/models/LegacyProjectLogo.js +0 -51
- package/dist/models/Project.d.ts +0 -65
- package/dist/models/Project.js +0 -66
- package/dist/models/ProjectInvite.d.ts +0 -56
- package/dist/models/ProjectInvite.js +0 -64
- package/dist/models/ProjectInvites.d.ts +0 -38
- package/dist/models/ProjectInvites.js +0 -52
- package/dist/models/ProjectLogo.d.ts +0 -39
- package/dist/models/ProjectLogo.js +0 -51
- package/dist/models/ProjectManager.d.ts +0 -44
- package/dist/models/ProjectManager.js +0 -56
- package/dist/models/ProjectUser.d.ts +0 -83
- package/dist/models/ProjectUser.js +0 -82
- package/dist/models/ProjectUserAvatar.d.ts +0 -31
- package/dist/models/ProjectUserAvatar.js +0 -45
- package/dist/models/ProjectUsers.d.ts +0 -38
- package/dist/models/ProjectUsers.js +0 -52
- package/dist/models/ProjectsResponse.d.ts +0 -32
- package/dist/models/ProjectsResponse.js +0 -48
- package/dist/models/SetupIntegrationRequest.d.ts +0 -31
- package/dist/models/SetupIntegrationRequest.js +0 -47
- package/dist/models/UpdateProjectRequest.d.ts +0 -38
- package/dist/models/UpdateProjectRequest.js +0 -48
- package/dist/models/UpdateUserRequest.d.ts +0 -56
- package/dist/models/UpdateUserRequest.js +0 -59
- package/dist/models/UpdateUserRequestAvatar.d.ts +0 -31
- package/dist/models/UpdateUserRequestAvatar.js +0 -50
- package/dist/models/index.d.ts +0 -18
- package/dist/models/index.js +0 -36
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProjectsApi.ts +0 -1085
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/CreateInviteRequest.ts +0 -61
- package/src/models/CreateProjectRequest.ts +0 -77
- package/src/models/CreateUserRequest.ts +0 -107
- package/src/models/CreateUserRequestAvatar.ts +0 -65
- package/src/models/InstallTemplateRequest.ts +0 -60
- package/src/models/Integration.ts +0 -85
- package/src/models/IntegrationInfo.ts +0 -93
- package/src/models/IntegrationsResponse.ts +0 -68
- package/src/models/LegacyProjectLogo.ts +0 -70
- package/src/models/Project.ts +0 -124
- package/src/models/ProjectInvite.ts +0 -104
- package/src/models/ProjectInvites.ts +0 -77
- package/src/models/ProjectLogo.ts +0 -70
- package/src/models/ProjectManager.ts +0 -86
- package/src/models/ProjectUser.ts +0 -142
- package/src/models/ProjectUserAvatar.ts +0 -60
- package/src/models/ProjectUsers.ts +0 -77
- package/src/models/ProjectsResponse.ts +0 -68
- package/src/models/SetupIntegrationRequest.ts +0 -61
- package/src/models/UpdateProjectRequest.ts +0 -75
- package/src/models/UpdateUserRequest.ts +0 -104
- package/src/models/UpdateUserRequestAvatar.ts +0 -65
- package/src/models/index.ts +0 -20
- package/src/runtime.ts +0 -441
package/src/apis/ProjectsApi.ts
DELETED
|
@@ -1,1085 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Projects API
|
|
5
|
-
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.16.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
ApiError,
|
|
19
|
-
CreateInviteRequest,
|
|
20
|
-
CreateProjectRequest,
|
|
21
|
-
InstallTemplateRequest,
|
|
22
|
-
Integration,
|
|
23
|
-
IntegrationsResponse,
|
|
24
|
-
Project,
|
|
25
|
-
ProjectInvite,
|
|
26
|
-
ProjectInvites,
|
|
27
|
-
ProjectUser,
|
|
28
|
-
ProjectUsers,
|
|
29
|
-
ProjectsResponse,
|
|
30
|
-
SetupIntegrationRequest,
|
|
31
|
-
UpdateProjectRequest,
|
|
32
|
-
} from '../models/index';
|
|
33
|
-
import {
|
|
34
|
-
ApiErrorFromJSON,
|
|
35
|
-
ApiErrorToJSON,
|
|
36
|
-
CreateInviteRequestFromJSON,
|
|
37
|
-
CreateInviteRequestToJSON,
|
|
38
|
-
CreateProjectRequestFromJSON,
|
|
39
|
-
CreateProjectRequestToJSON,
|
|
40
|
-
InstallTemplateRequestFromJSON,
|
|
41
|
-
InstallTemplateRequestToJSON,
|
|
42
|
-
IntegrationFromJSON,
|
|
43
|
-
IntegrationToJSON,
|
|
44
|
-
IntegrationsResponseFromJSON,
|
|
45
|
-
IntegrationsResponseToJSON,
|
|
46
|
-
ProjectFromJSON,
|
|
47
|
-
ProjectToJSON,
|
|
48
|
-
ProjectInviteFromJSON,
|
|
49
|
-
ProjectInviteToJSON,
|
|
50
|
-
ProjectInvitesFromJSON,
|
|
51
|
-
ProjectInvitesToJSON,
|
|
52
|
-
ProjectUserFromJSON,
|
|
53
|
-
ProjectUserToJSON,
|
|
54
|
-
ProjectUsersFromJSON,
|
|
55
|
-
ProjectUsersToJSON,
|
|
56
|
-
ProjectsResponseFromJSON,
|
|
57
|
-
ProjectsResponseToJSON,
|
|
58
|
-
SetupIntegrationRequestFromJSON,
|
|
59
|
-
SetupIntegrationRequestToJSON,
|
|
60
|
-
UpdateProjectRequestFromJSON,
|
|
61
|
-
UpdateProjectRequestToJSON,
|
|
62
|
-
} from '../models/index';
|
|
63
|
-
|
|
64
|
-
export interface CreateInviteOperationRequest {
|
|
65
|
-
project: string;
|
|
66
|
-
createInviteRequest: CreateInviteRequest;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface CreateProjectOperationRequest {
|
|
70
|
-
createProjectRequest: CreateProjectRequest;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface DeleteInviteRequest {
|
|
74
|
-
project: string;
|
|
75
|
-
invite: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface DeleteProjectRequest {
|
|
79
|
-
project: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface DeleteUserRequest {
|
|
83
|
-
project: string;
|
|
84
|
-
user: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface GetIntegrationRequest {
|
|
88
|
-
project: string;
|
|
89
|
-
integration: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface GetIntegrationsRequest {
|
|
93
|
-
project: string;
|
|
94
|
-
withUninstalled?: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface GetInvitesRequest {
|
|
98
|
-
project: string;
|
|
99
|
-
search?: string;
|
|
100
|
-
pageToken?: number;
|
|
101
|
-
pageSize?: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface GetProjectRequest {
|
|
105
|
-
project: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface GetUserRequest {
|
|
109
|
-
project: string;
|
|
110
|
-
user: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface GetUsersRequest {
|
|
114
|
-
project: string;
|
|
115
|
-
search?: string;
|
|
116
|
-
pageToken?: number;
|
|
117
|
-
pageSize?: number;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface InstallIntegrationRequest {
|
|
121
|
-
project: string;
|
|
122
|
-
integration: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface InstallTemplateOperationRequest {
|
|
126
|
-
project: string;
|
|
127
|
-
template: string;
|
|
128
|
-
installTemplateRequest: InstallTemplateRequest;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface SetupIntegrationOperationRequest {
|
|
132
|
-
project: string;
|
|
133
|
-
integration: string;
|
|
134
|
-
setupIntegrationRequest: SetupIntegrationRequest;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface UninstallIntegrationRequest {
|
|
138
|
-
project: string;
|
|
139
|
-
integration: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface UpdateProjectOperationRequest {
|
|
143
|
-
project: string;
|
|
144
|
-
updateProjectRequest: UpdateProjectRequest;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
export class ProjectsApi extends runtime.BaseAPI {
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Creates an invite for the project
|
|
154
|
-
* Creates an invite
|
|
155
|
-
*/
|
|
156
|
-
async createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectInvite>> {
|
|
157
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
158
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling createInvite.');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
|
|
162
|
-
throw new runtime.RequiredError('createInviteRequest','Required parameter requestParameters.createInviteRequest was null or undefined when calling createInvite.');
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
170
|
-
|
|
171
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
-
// oauth required
|
|
173
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
177
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
const response = await this.request({
|
|
181
|
-
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
182
|
-
method: 'POST',
|
|
183
|
-
headers: headerParameters,
|
|
184
|
-
query: queryParameters,
|
|
185
|
-
body: CreateInviteRequestToJSON(requestParameters.createInviteRequest),
|
|
186
|
-
}, initOverrides);
|
|
187
|
-
|
|
188
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectInviteFromJSON(jsonValue));
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Creates an invite for the project
|
|
193
|
-
* Creates an invite
|
|
194
|
-
*/
|
|
195
|
-
async createInvite(
|
|
196
|
-
project: string, createInviteRequest: CreateInviteRequest,
|
|
197
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
198
|
-
): Promise<ProjectInvite> {
|
|
199
|
-
const response = await this.createInviteRaw(
|
|
200
|
-
{
|
|
201
|
-
project: project,createInviteRequest: createInviteRequest,
|
|
202
|
-
},
|
|
203
|
-
initOverrides
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
return await response.value();
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Create a new projects
|
|
211
|
-
* Create project
|
|
212
|
-
*/
|
|
213
|
-
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
214
|
-
if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
|
|
215
|
-
throw new runtime.RequiredError('createProjectRequest','Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const queryParameters: any = {};
|
|
219
|
-
|
|
220
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
221
|
-
|
|
222
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
223
|
-
|
|
224
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
-
// oauth required
|
|
226
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
230
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
const response = await this.request({
|
|
234
|
-
path: `/v1/projects`,
|
|
235
|
-
method: 'POST',
|
|
236
|
-
headers: headerParameters,
|
|
237
|
-
query: queryParameters,
|
|
238
|
-
body: CreateProjectRequestToJSON(requestParameters.createProjectRequest),
|
|
239
|
-
}, initOverrides);
|
|
240
|
-
|
|
241
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Create a new projects
|
|
246
|
-
* Create project
|
|
247
|
-
*/
|
|
248
|
-
async createProject(
|
|
249
|
-
createProjectRequest: CreateProjectRequest,
|
|
250
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
251
|
-
): Promise<Project> {
|
|
252
|
-
const response = await this.createProjectRaw(
|
|
253
|
-
{
|
|
254
|
-
createProjectRequest: createProjectRequest,
|
|
255
|
-
},
|
|
256
|
-
initOverrides
|
|
257
|
-
);
|
|
258
|
-
|
|
259
|
-
return await response.value();
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Deletes an invite to the project
|
|
264
|
-
* Deletes an invite
|
|
265
|
-
*/
|
|
266
|
-
async deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
267
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
268
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
272
|
-
throw new runtime.RequiredError('invite','Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
const queryParameters: any = {};
|
|
276
|
-
|
|
277
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
|
-
|
|
279
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
280
|
-
// oauth required
|
|
281
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
const response = await this.request({
|
|
289
|
-
path: `/v1/projects/{project}/invites/{invite}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
290
|
-
method: 'DELETE',
|
|
291
|
-
headers: headerParameters,
|
|
292
|
-
query: queryParameters,
|
|
293
|
-
}, initOverrides);
|
|
294
|
-
|
|
295
|
-
return new runtime.VoidApiResponse(response);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Deletes an invite to the project
|
|
300
|
-
* Deletes an invite
|
|
301
|
-
*/
|
|
302
|
-
async deleteInvite(
|
|
303
|
-
project: string, invite: string,
|
|
304
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
305
|
-
): Promise<void> {
|
|
306
|
-
await this.deleteInviteRaw(
|
|
307
|
-
{
|
|
308
|
-
project: project,invite: invite,
|
|
309
|
-
},
|
|
310
|
-
initOverrides
|
|
311
|
-
);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Delete a project
|
|
316
|
-
* Delete project
|
|
317
|
-
*/
|
|
318
|
-
async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
319
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
320
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteProject.');
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
const queryParameters: any = {};
|
|
324
|
-
|
|
325
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
326
|
-
|
|
327
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
328
|
-
// oauth required
|
|
329
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
333
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
const response = await this.request({
|
|
337
|
-
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
338
|
-
method: 'DELETE',
|
|
339
|
-
headers: headerParameters,
|
|
340
|
-
query: queryParameters,
|
|
341
|
-
}, initOverrides);
|
|
342
|
-
|
|
343
|
-
return new runtime.VoidApiResponse(response);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Delete a project
|
|
348
|
-
* Delete project
|
|
349
|
-
*/
|
|
350
|
-
async deleteProject(
|
|
351
|
-
project: string,
|
|
352
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
353
|
-
): Promise<void> {
|
|
354
|
-
await this.deleteProjectRaw(
|
|
355
|
-
{
|
|
356
|
-
project: project,
|
|
357
|
-
},
|
|
358
|
-
initOverrides
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Delete a project user by ID
|
|
364
|
-
* Delete a user by ID
|
|
365
|
-
*/
|
|
366
|
-
async deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
367
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
368
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteUser.');
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
372
|
-
throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling deleteUser.');
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
const queryParameters: any = {};
|
|
376
|
-
|
|
377
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
378
|
-
|
|
379
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
380
|
-
// oauth required
|
|
381
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
385
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
const response = await this.request({
|
|
389
|
-
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
390
|
-
method: 'DELETE',
|
|
391
|
-
headers: headerParameters,
|
|
392
|
-
query: queryParameters,
|
|
393
|
-
}, initOverrides);
|
|
394
|
-
|
|
395
|
-
return new runtime.VoidApiResponse(response);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Delete a project user by ID
|
|
400
|
-
* Delete a user by ID
|
|
401
|
-
*/
|
|
402
|
-
async deleteUser(
|
|
403
|
-
project: string, user: string,
|
|
404
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
405
|
-
): Promise<void> {
|
|
406
|
-
await this.deleteUserRaw(
|
|
407
|
-
{
|
|
408
|
-
project: project,user: user,
|
|
409
|
-
},
|
|
410
|
-
initOverrides
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Get an integration
|
|
416
|
-
* Get integration
|
|
417
|
-
*/
|
|
418
|
-
async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
419
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
420
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getIntegration.');
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
424
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
const queryParameters: any = {};
|
|
428
|
-
|
|
429
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
430
|
-
|
|
431
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
432
|
-
// oauth required
|
|
433
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
437
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
const response = await this.request({
|
|
441
|
-
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
442
|
-
method: 'GET',
|
|
443
|
-
headers: headerParameters,
|
|
444
|
-
query: queryParameters,
|
|
445
|
-
}, initOverrides);
|
|
446
|
-
|
|
447
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Get an integration
|
|
452
|
-
* Get integration
|
|
453
|
-
*/
|
|
454
|
-
async getIntegration(
|
|
455
|
-
project: string, integration: string,
|
|
456
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
457
|
-
): Promise<Integration> {
|
|
458
|
-
const response = await this.getIntegrationRaw(
|
|
459
|
-
{
|
|
460
|
-
project: project,integration: integration,
|
|
461
|
-
},
|
|
462
|
-
initOverrides
|
|
463
|
-
);
|
|
464
|
-
|
|
465
|
-
return await response.value();
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* List all integrations installed on a project
|
|
470
|
-
* List integrations
|
|
471
|
-
*/
|
|
472
|
-
async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
473
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
474
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getIntegrations.');
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
const queryParameters: any = {};
|
|
478
|
-
|
|
479
|
-
if (requestParameters.withUninstalled !== undefined) {
|
|
480
|
-
queryParameters['withUninstalled'] = requestParameters.withUninstalled;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
484
|
-
|
|
485
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
486
|
-
// oauth required
|
|
487
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
491
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
const response = await this.request({
|
|
495
|
-
path: `/v1/projects/{project}/integrations`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
496
|
-
method: 'GET',
|
|
497
|
-
headers: headerParameters,
|
|
498
|
-
query: queryParameters,
|
|
499
|
-
}, initOverrides);
|
|
500
|
-
|
|
501
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* List all integrations installed on a project
|
|
506
|
-
* List integrations
|
|
507
|
-
*/
|
|
508
|
-
async getIntegrations(
|
|
509
|
-
project: string,
|
|
510
|
-
optionalParameters: runtime.OptionalOnly<GetIntegrationsRequest> = {},
|
|
511
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
512
|
-
): Promise<IntegrationsResponse> {
|
|
513
|
-
const response = await this.getIntegrationsRaw(
|
|
514
|
-
{
|
|
515
|
-
project: project,
|
|
516
|
-
...optionalParameters,
|
|
517
|
-
},
|
|
518
|
-
initOverrides
|
|
519
|
-
);
|
|
520
|
-
|
|
521
|
-
return await response.value();
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* List the invites associated with a project
|
|
526
|
-
* List Invites
|
|
527
|
-
*/
|
|
528
|
-
async getInvitesRaw(requestParameters: GetInvitesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectInvites>> {
|
|
529
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
530
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getInvites.');
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
const queryParameters: any = {};
|
|
534
|
-
|
|
535
|
-
if (requestParameters.search !== undefined) {
|
|
536
|
-
queryParameters['search'] = requestParameters.search;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
if (requestParameters.pageToken !== undefined) {
|
|
540
|
-
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (requestParameters.pageSize !== undefined) {
|
|
544
|
-
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
548
|
-
|
|
549
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
550
|
-
// oauth required
|
|
551
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
555
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
const response = await this.request({
|
|
559
|
-
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
560
|
-
method: 'GET',
|
|
561
|
-
headers: headerParameters,
|
|
562
|
-
query: queryParameters,
|
|
563
|
-
}, initOverrides);
|
|
564
|
-
|
|
565
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectInvitesFromJSON(jsonValue));
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* List the invites associated with a project
|
|
570
|
-
* List Invites
|
|
571
|
-
*/
|
|
572
|
-
async getInvites(
|
|
573
|
-
project: string,
|
|
574
|
-
optionalParameters: runtime.OptionalOnly<GetInvitesRequest> = {},
|
|
575
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
576
|
-
): Promise<ProjectInvites> {
|
|
577
|
-
const response = await this.getInvitesRaw(
|
|
578
|
-
{
|
|
579
|
-
project: project,
|
|
580
|
-
...optionalParameters,
|
|
581
|
-
},
|
|
582
|
-
initOverrides
|
|
583
|
-
);
|
|
584
|
-
|
|
585
|
-
return await response.value();
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* Get a project
|
|
590
|
-
* Get project
|
|
591
|
-
*/
|
|
592
|
-
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
593
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
594
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getProject.');
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
const queryParameters: any = {};
|
|
598
|
-
|
|
599
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
600
|
-
|
|
601
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
602
|
-
// oauth required
|
|
603
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
607
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
const response = await this.request({
|
|
611
|
-
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
612
|
-
method: 'GET',
|
|
613
|
-
headers: headerParameters,
|
|
614
|
-
query: queryParameters,
|
|
615
|
-
}, initOverrides);
|
|
616
|
-
|
|
617
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Get a project
|
|
622
|
-
* Get project
|
|
623
|
-
*/
|
|
624
|
-
async getProject(
|
|
625
|
-
project: string,
|
|
626
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
627
|
-
): Promise<Project> {
|
|
628
|
-
const response = await this.getProjectRaw(
|
|
629
|
-
{
|
|
630
|
-
project: project,
|
|
631
|
-
},
|
|
632
|
-
initOverrides
|
|
633
|
-
);
|
|
634
|
-
|
|
635
|
-
return await response.value();
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* List all projects available
|
|
640
|
-
* List projects
|
|
641
|
-
*/
|
|
642
|
-
async getProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectsResponse>> {
|
|
643
|
-
const queryParameters: any = {};
|
|
644
|
-
|
|
645
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
646
|
-
|
|
647
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
648
|
-
// oauth required
|
|
649
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
653
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
const response = await this.request({
|
|
657
|
-
path: `/v1/projects`,
|
|
658
|
-
method: 'GET',
|
|
659
|
-
headers: headerParameters,
|
|
660
|
-
query: queryParameters,
|
|
661
|
-
}, initOverrides);
|
|
662
|
-
|
|
663
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectsResponseFromJSON(jsonValue));
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* List all projects available
|
|
668
|
-
* List projects
|
|
669
|
-
*/
|
|
670
|
-
async getProjects(
|
|
671
|
-
|
|
672
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
673
|
-
): Promise<ProjectsResponse> {
|
|
674
|
-
const response = await this.getProjectsRaw(
|
|
675
|
-
|
|
676
|
-
initOverrides
|
|
677
|
-
);
|
|
678
|
-
|
|
679
|
-
return await response.value();
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Get a project user by id
|
|
684
|
-
* Get a user
|
|
685
|
-
*/
|
|
686
|
-
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>> {
|
|
687
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
688
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getUser.');
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
692
|
-
throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling getUser.');
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
const queryParameters: any = {};
|
|
696
|
-
|
|
697
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
698
|
-
|
|
699
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
700
|
-
// oauth required
|
|
701
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
705
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
const response = await this.request({
|
|
709
|
-
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
710
|
-
method: 'GET',
|
|
711
|
-
headers: headerParameters,
|
|
712
|
-
query: queryParameters,
|
|
713
|
-
}, initOverrides);
|
|
714
|
-
|
|
715
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectUserFromJSON(jsonValue));
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* Get a project user by id
|
|
720
|
-
* Get a user
|
|
721
|
-
*/
|
|
722
|
-
async getUser(
|
|
723
|
-
project: string, user: string,
|
|
724
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
725
|
-
): Promise<ProjectUser> {
|
|
726
|
-
const response = await this.getUserRaw(
|
|
727
|
-
{
|
|
728
|
-
project: project,user: user,
|
|
729
|
-
},
|
|
730
|
-
initOverrides
|
|
731
|
-
);
|
|
732
|
-
|
|
733
|
-
return await response.value();
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* List the users associated with a project
|
|
738
|
-
* List project users
|
|
739
|
-
*/
|
|
740
|
-
async getUsersRaw(requestParameters: GetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUsers>> {
|
|
741
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
742
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getUsers.');
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
const queryParameters: any = {};
|
|
746
|
-
|
|
747
|
-
if (requestParameters.search !== undefined) {
|
|
748
|
-
queryParameters['search'] = requestParameters.search;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
if (requestParameters.pageToken !== undefined) {
|
|
752
|
-
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
if (requestParameters.pageSize !== undefined) {
|
|
756
|
-
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
760
|
-
|
|
761
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
762
|
-
// oauth required
|
|
763
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
767
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
const response = await this.request({
|
|
771
|
-
path: `/v1/projects/{project}/users`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
772
|
-
method: 'GET',
|
|
773
|
-
headers: headerParameters,
|
|
774
|
-
query: queryParameters,
|
|
775
|
-
}, initOverrides);
|
|
776
|
-
|
|
777
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectUsersFromJSON(jsonValue));
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* List the users associated with a project
|
|
782
|
-
* List project users
|
|
783
|
-
*/
|
|
784
|
-
async getUsers(
|
|
785
|
-
project: string,
|
|
786
|
-
optionalParameters: runtime.OptionalOnly<GetUsersRequest> = {},
|
|
787
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
788
|
-
): Promise<ProjectUsers> {
|
|
789
|
-
const response = await this.getUsersRaw(
|
|
790
|
-
{
|
|
791
|
-
project: project,
|
|
792
|
-
...optionalParameters,
|
|
793
|
-
},
|
|
794
|
-
initOverrides
|
|
795
|
-
);
|
|
796
|
-
|
|
797
|
-
return await response.value();
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* Install an integration on the project
|
|
802
|
-
* Install integration
|
|
803
|
-
*/
|
|
804
|
-
async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
805
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
806
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installIntegration.');
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
810
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling installIntegration.');
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
const queryParameters: any = {};
|
|
814
|
-
|
|
815
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
816
|
-
|
|
817
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
818
|
-
// oauth required
|
|
819
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
823
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
const response = await this.request({
|
|
827
|
-
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
828
|
-
method: 'POST',
|
|
829
|
-
headers: headerParameters,
|
|
830
|
-
query: queryParameters,
|
|
831
|
-
}, initOverrides);
|
|
832
|
-
|
|
833
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* Install an integration on the project
|
|
838
|
-
* Install integration
|
|
839
|
-
*/
|
|
840
|
-
async installIntegration(
|
|
841
|
-
project: string, integration: string,
|
|
842
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
843
|
-
): Promise<Integration> {
|
|
844
|
-
const response = await this.installIntegrationRaw(
|
|
845
|
-
{
|
|
846
|
-
project: project,integration: integration,
|
|
847
|
-
},
|
|
848
|
-
initOverrides
|
|
849
|
-
);
|
|
850
|
-
|
|
851
|
-
return await response.value();
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* Install an integration template on the project
|
|
856
|
-
* Install integration template
|
|
857
|
-
*/
|
|
858
|
-
async installTemplateRaw(requestParameters: InstallTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
859
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
860
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
864
|
-
throw new runtime.RequiredError('template','Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
if (requestParameters.installTemplateRequest === null || requestParameters.installTemplateRequest === undefined) {
|
|
868
|
-
throw new runtime.RequiredError('installTemplateRequest','Required parameter requestParameters.installTemplateRequest was null or undefined when calling installTemplate.');
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
const queryParameters: any = {};
|
|
872
|
-
|
|
873
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
874
|
-
|
|
875
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
876
|
-
|
|
877
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
878
|
-
// oauth required
|
|
879
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
883
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
const response = await this.request({
|
|
887
|
-
path: `/v1/projects/{project}/templates/{template}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"template"}}`, encodeURIComponent(String(requestParameters.template))),
|
|
888
|
-
method: 'POST',
|
|
889
|
-
headers: headerParameters,
|
|
890
|
-
query: queryParameters,
|
|
891
|
-
body: InstallTemplateRequestToJSON(requestParameters.installTemplateRequest),
|
|
892
|
-
}, initOverrides);
|
|
893
|
-
|
|
894
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Install an integration template on the project
|
|
899
|
-
* Install integration template
|
|
900
|
-
*/
|
|
901
|
-
async installTemplate(
|
|
902
|
-
project: string, template: string, installTemplateRequest: InstallTemplateRequest,
|
|
903
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
904
|
-
): Promise<IntegrationsResponse> {
|
|
905
|
-
const response = await this.installTemplateRaw(
|
|
906
|
-
{
|
|
907
|
-
project: project,template: template,installTemplateRequest: installTemplateRequest,
|
|
908
|
-
},
|
|
909
|
-
initOverrides
|
|
910
|
-
);
|
|
911
|
-
|
|
912
|
-
return await response.value();
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Setup an integration on the project
|
|
917
|
-
* Setup integration
|
|
918
|
-
*/
|
|
919
|
-
async setupIntegrationRaw(requestParameters: SetupIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
920
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
921
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
925
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
|
|
929
|
-
throw new runtime.RequiredError('setupIntegrationRequest','Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
const queryParameters: any = {};
|
|
933
|
-
|
|
934
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
935
|
-
|
|
936
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
937
|
-
|
|
938
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
939
|
-
// oauth required
|
|
940
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
944
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
const response = await this.request({
|
|
948
|
-
path: `/v1/projects/{project}/integrations/{integration}/setup`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
949
|
-
method: 'POST',
|
|
950
|
-
headers: headerParameters,
|
|
951
|
-
query: queryParameters,
|
|
952
|
-
body: SetupIntegrationRequestToJSON(requestParameters.setupIntegrationRequest),
|
|
953
|
-
}, initOverrides);
|
|
954
|
-
|
|
955
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* Setup an integration on the project
|
|
960
|
-
* Setup integration
|
|
961
|
-
*/
|
|
962
|
-
async setupIntegration(
|
|
963
|
-
project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest,
|
|
964
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
965
|
-
): Promise<Integration> {
|
|
966
|
-
const response = await this.setupIntegrationRaw(
|
|
967
|
-
{
|
|
968
|
-
project: project,integration: integration,setupIntegrationRequest: setupIntegrationRequest,
|
|
969
|
-
},
|
|
970
|
-
initOverrides
|
|
971
|
-
);
|
|
972
|
-
|
|
973
|
-
return await response.value();
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Uninstall a projects integration
|
|
978
|
-
* Uninstall integration
|
|
979
|
-
*/
|
|
980
|
-
async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
981
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
982
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling uninstallIntegration.');
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
986
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling uninstallIntegration.');
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
const queryParameters: any = {};
|
|
990
|
-
|
|
991
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
992
|
-
|
|
993
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
994
|
-
// oauth required
|
|
995
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
999
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
const response = await this.request({
|
|
1003
|
-
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
1004
|
-
method: 'DELETE',
|
|
1005
|
-
headers: headerParameters,
|
|
1006
|
-
query: queryParameters,
|
|
1007
|
-
}, initOverrides);
|
|
1008
|
-
|
|
1009
|
-
return new runtime.VoidApiResponse(response);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* Uninstall a projects integration
|
|
1014
|
-
* Uninstall integration
|
|
1015
|
-
*/
|
|
1016
|
-
async uninstallIntegration(
|
|
1017
|
-
project: string, integration: string,
|
|
1018
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
1019
|
-
): Promise<void> {
|
|
1020
|
-
await this.uninstallIntegrationRaw(
|
|
1021
|
-
{
|
|
1022
|
-
project: project,integration: integration,
|
|
1023
|
-
},
|
|
1024
|
-
initOverrides
|
|
1025
|
-
);
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* Update a project
|
|
1030
|
-
* Update project
|
|
1031
|
-
*/
|
|
1032
|
-
async updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
1033
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
1034
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateProject.');
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
|
|
1038
|
-
throw new runtime.RequiredError('updateProjectRequest','Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
const queryParameters: any = {};
|
|
1042
|
-
|
|
1043
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1044
|
-
|
|
1045
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1046
|
-
|
|
1047
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1048
|
-
// oauth required
|
|
1049
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1053
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
const response = await this.request({
|
|
1057
|
-
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
1058
|
-
method: 'PATCH',
|
|
1059
|
-
headers: headerParameters,
|
|
1060
|
-
query: queryParameters,
|
|
1061
|
-
body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
|
|
1062
|
-
}, initOverrides);
|
|
1063
|
-
|
|
1064
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
/**
|
|
1068
|
-
* Update a project
|
|
1069
|
-
* Update project
|
|
1070
|
-
*/
|
|
1071
|
-
async updateProject(
|
|
1072
|
-
project: string, updateProjectRequest: UpdateProjectRequest,
|
|
1073
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
1074
|
-
): Promise<Project> {
|
|
1075
|
-
const response = await this.updateProjectRaw(
|
|
1076
|
-
{
|
|
1077
|
-
project: project,updateProjectRequest: updateProjectRequest,
|
|
1078
|
-
},
|
|
1079
|
-
initOverrides
|
|
1080
|
-
);
|
|
1081
|
-
|
|
1082
|
-
return await response.value();
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
}
|