@teemill/projects 1.12.1 → 1.12.4
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 +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +4 -4
- package/dist/apis/ProjectsApi.js +517 -927
- package/dist/esm/apis/ProjectsApi.d.ts +241 -0
- package/dist/esm/apis/ProjectsApi.js +701 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/CreateInviteRequest.d.ts +31 -0
- package/dist/esm/models/CreateInviteRequest.js +40 -0
- package/dist/esm/models/CreateProjectRequest.d.ts +43 -0
- package/dist/esm/models/CreateProjectRequest.js +44 -0
- package/dist/esm/models/CreateUserRequest.d.ts +56 -0
- package/dist/esm/models/CreateUserRequest.js +55 -0
- package/dist/esm/models/CreateUserRequestAvatar.d.ts +31 -0
- package/dist/esm/models/CreateUserRequestAvatar.js +43 -0
- package/dist/esm/models/InstallTemplateRequest.d.ts +31 -0
- package/dist/esm/models/InstallTemplateRequest.js +38 -0
- package/dist/esm/models/Integration.d.ts +49 -0
- package/dist/esm/models/Integration.js +47 -0
- package/dist/esm/models/IntegrationInfo.d.ts +49 -0
- package/dist/esm/models/IntegrationInfo.js +52 -0
- package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationsResponse.js +41 -0
- package/dist/esm/models/Project.d.ts +50 -0
- package/dist/esm/models/Project.js +51 -0
- package/dist/esm/models/ProjectInvite.d.ts +56 -0
- package/dist/esm/models/ProjectInvite.js +57 -0
- package/dist/esm/models/ProjectInvites.d.ts +38 -0
- package/dist/esm/models/ProjectInvites.js +45 -0
- package/dist/esm/models/ProjectLogo.d.ts +37 -0
- package/dist/esm/models/ProjectLogo.js +40 -0
- package/dist/esm/models/ProjectUser.d.ts +83 -0
- package/dist/esm/models/ProjectUser.js +75 -0
- package/dist/esm/models/ProjectUserAvatar.d.ts +31 -0
- package/dist/esm/models/ProjectUserAvatar.js +38 -0
- package/dist/esm/models/ProjectUsers.d.ts +38 -0
- package/dist/esm/models/ProjectUsers.js +45 -0
- package/dist/esm/models/ProjectsResponse.d.ts +32 -0
- package/dist/esm/models/ProjectsResponse.js +41 -0
- package/dist/esm/models/SetupIntegrationRequest.d.ts +31 -0
- package/dist/esm/models/SetupIntegrationRequest.js +40 -0
- package/dist/esm/models/UpdateProjectRequest.d.ts +31 -0
- package/dist/esm/models/UpdateProjectRequest.js +38 -0
- package/dist/esm/models/UpdateUserRequest.d.ts +56 -0
- package/dist/esm/models/UpdateUserRequest.js +52 -0
- package/dist/esm/models/UpdateUserRequestAvatar.d.ts +31 -0
- package/dist/esm/models/UpdateUserRequestAvatar.js +43 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateInviteRequest.d.ts +1 -1
- package/dist/models/CreateInviteRequest.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.js +1 -1
- package/dist/models/CreateUserRequest.js +3 -3
- package/dist/models/CreateUserRequestAvatar.js +2 -2
- package/dist/models/InstallTemplateRequest.d.ts +1 -1
- package/dist/models/InstallTemplateRequest.js +1 -1
- package/dist/models/Integration.d.ts +2 -2
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +2 -2
- package/dist/models/Project.d.ts +2 -2
- package/dist/models/Project.js +2 -2
- package/dist/models/ProjectInvite.d.ts +1 -1
- package/dist/models/ProjectInvite.js +2 -2
- package/dist/models/ProjectInvites.d.ts +1 -1
- package/dist/models/ProjectInvites.js +2 -2
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectUser.d.ts +1 -1
- package/dist/models/ProjectUser.js +2 -2
- package/dist/models/ProjectUserAvatar.d.ts +1 -1
- package/dist/models/ProjectUserAvatar.js +1 -1
- package/dist/models/ProjectUsers.d.ts +1 -1
- package/dist/models/ProjectUsers.js +2 -2
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +2 -2
- package/dist/models/SetupIntegrationRequest.d.ts +1 -1
- package/dist/models/SetupIntegrationRequest.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/models/UpdateUserRequest.js +3 -3
- package/dist/models/UpdateUserRequestAvatar.js +2 -2
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/ProjectsApi.ts +6 -8
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateInviteRequest.ts +1 -1
- package/src/models/CreateProjectRequest.ts +1 -1
- package/src/models/InstallTemplateRequest.ts +1 -1
- package/src/models/Integration.ts +2 -2
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +2 -2
- package/src/models/ProjectInvite.ts +1 -1
- package/src/models/ProjectInvites.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectUser.ts +1 -1
- package/src/models/ProjectUserAvatar.ts +1 -1
- package/src/models/ProjectUsers.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/SetupIntegrationRequest.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -0,0 +1,701 @@
|
|
|
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.12.4
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CreateInviteRequestToJSON, CreateProjectRequestToJSON, InstallTemplateRequestToJSON, IntegrationFromJSON, IntegrationsResponseFromJSON, ProjectFromJSON, ProjectInvitesFromJSON, ProjectUsersFromJSON, ProjectsResponseFromJSON, SetupIntegrationRequestToJSON, UpdateProjectRequestToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class ProjectsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates an invite for the project
|
|
31
|
+
* Creates an invite
|
|
32
|
+
*/
|
|
33
|
+
createInviteRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
36
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createInvite.');
|
|
37
|
+
}
|
|
38
|
+
if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
|
|
39
|
+
throw new runtime.RequiredError('createInviteRequest', 'Required parameter requestParameters.createInviteRequest was null or undefined when calling createInvite.');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
// oauth required
|
|
46
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
49
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
50
|
+
}
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
body: CreateInviteRequestToJSON(requestParameters.createInviteRequest),
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.VoidApiResponse(response);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates an invite for the project
|
|
63
|
+
* Creates an invite
|
|
64
|
+
*/
|
|
65
|
+
createInvite(project, createInviteRequest, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.createInviteRaw({
|
|
68
|
+
project: project, createInviteRequest: createInviteRequest,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Create a new projects
|
|
74
|
+
* Create project
|
|
75
|
+
*/
|
|
76
|
+
createProjectRaw(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
|
|
79
|
+
throw new runtime.RequiredError('createProjectRequest', 'Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
|
|
80
|
+
}
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
// oauth required
|
|
86
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
87
|
+
}
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
90
|
+
}
|
|
91
|
+
const response = yield this.request({
|
|
92
|
+
path: `/v1/projects`,
|
|
93
|
+
method: 'POST',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
body: CreateProjectRequestToJSON(requestParameters.createProjectRequest),
|
|
97
|
+
}, initOverrides);
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Create a new projects
|
|
103
|
+
* Create project
|
|
104
|
+
*/
|
|
105
|
+
createProject(createProjectRequest, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const response = yield this.createProjectRaw({
|
|
108
|
+
createProjectRequest: createProjectRequest,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
return yield response.value();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Deletes an invite to the project
|
|
115
|
+
* Deletes an invite
|
|
116
|
+
*/
|
|
117
|
+
deleteInviteRaw(requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
120
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
121
|
+
}
|
|
122
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
123
|
+
throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
// oauth required
|
|
129
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
130
|
+
}
|
|
131
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
132
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
133
|
+
}
|
|
134
|
+
const response = yield this.request({
|
|
135
|
+
path: `/v1/projects/{project}/invites/{invite}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
136
|
+
method: 'DELETE',
|
|
137
|
+
headers: headerParameters,
|
|
138
|
+
query: queryParameters,
|
|
139
|
+
}, initOverrides);
|
|
140
|
+
return new runtime.VoidApiResponse(response);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Deletes an invite to the project
|
|
145
|
+
* Deletes an invite
|
|
146
|
+
*/
|
|
147
|
+
deleteInvite(project, invite, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
yield this.deleteInviteRaw({
|
|
150
|
+
project: project, invite: invite,
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Delete a project
|
|
156
|
+
* Delete project
|
|
157
|
+
*/
|
|
158
|
+
deleteProjectRaw(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
161
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteProject.');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
// oauth required
|
|
167
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
168
|
+
}
|
|
169
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
171
|
+
}
|
|
172
|
+
const response = yield this.request({
|
|
173
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
174
|
+
method: 'DELETE',
|
|
175
|
+
headers: headerParameters,
|
|
176
|
+
query: queryParameters,
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.VoidApiResponse(response);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Delete a project
|
|
183
|
+
* Delete project
|
|
184
|
+
*/
|
|
185
|
+
deleteProject(project, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
yield this.deleteProjectRaw({
|
|
188
|
+
project: project,
|
|
189
|
+
}, initOverrides);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Delete a project user by ID
|
|
194
|
+
* Delete a user by ID
|
|
195
|
+
*/
|
|
196
|
+
deleteUserRaw(requestParameters, initOverrides) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
199
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteUser.');
|
|
200
|
+
}
|
|
201
|
+
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
202
|
+
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling deleteUser.');
|
|
203
|
+
}
|
|
204
|
+
const queryParameters = {};
|
|
205
|
+
const headerParameters = {};
|
|
206
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
207
|
+
// oauth required
|
|
208
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
209
|
+
}
|
|
210
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
211
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
212
|
+
}
|
|
213
|
+
const response = yield this.request({
|
|
214
|
+
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
215
|
+
method: 'DELETE',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
}, initOverrides);
|
|
219
|
+
return new runtime.VoidApiResponse(response);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Delete a project user by ID
|
|
224
|
+
* Delete a user by ID
|
|
225
|
+
*/
|
|
226
|
+
deleteUser(project, user, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
yield this.deleteUserRaw({
|
|
229
|
+
project: project, user: user,
|
|
230
|
+
}, initOverrides);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Get an integration
|
|
235
|
+
* Get integration
|
|
236
|
+
*/
|
|
237
|
+
getIntegrationRaw(requestParameters, initOverrides) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
240
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegration.');
|
|
241
|
+
}
|
|
242
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
243
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
|
|
244
|
+
}
|
|
245
|
+
const queryParameters = {};
|
|
246
|
+
const headerParameters = {};
|
|
247
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
248
|
+
// oauth required
|
|
249
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
250
|
+
}
|
|
251
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
252
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
253
|
+
}
|
|
254
|
+
const response = yield this.request({
|
|
255
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
256
|
+
method: 'GET',
|
|
257
|
+
headers: headerParameters,
|
|
258
|
+
query: queryParameters,
|
|
259
|
+
}, initOverrides);
|
|
260
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Get an integration
|
|
265
|
+
* Get integration
|
|
266
|
+
*/
|
|
267
|
+
getIntegration(project, integration, initOverrides) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const response = yield this.getIntegrationRaw({
|
|
270
|
+
project: project, integration: integration,
|
|
271
|
+
}, initOverrides);
|
|
272
|
+
return yield response.value();
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* List all integrations installed on a project
|
|
277
|
+
* List integrations
|
|
278
|
+
*/
|
|
279
|
+
getIntegrationsRaw(requestParameters, initOverrides) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
282
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegrations.');
|
|
283
|
+
}
|
|
284
|
+
const queryParameters = {};
|
|
285
|
+
if (requestParameters.withUninstalled !== undefined) {
|
|
286
|
+
queryParameters['withUninstalled'] = requestParameters.withUninstalled;
|
|
287
|
+
}
|
|
288
|
+
const headerParameters = {};
|
|
289
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
290
|
+
// oauth required
|
|
291
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
292
|
+
}
|
|
293
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
294
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
295
|
+
}
|
|
296
|
+
const response = yield this.request({
|
|
297
|
+
path: `/v1/projects/{project}/integrations`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
}, initOverrides);
|
|
302
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* List all integrations installed on a project
|
|
307
|
+
* List integrations
|
|
308
|
+
*/
|
|
309
|
+
getIntegrations(project, optionalParameters = {}, initOverrides) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
const response = yield this.getIntegrationsRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
312
|
+
return yield response.value();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* List the invites associated with a project
|
|
317
|
+
* List Invites
|
|
318
|
+
*/
|
|
319
|
+
getInvitesRaw(requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
322
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getInvites.');
|
|
323
|
+
}
|
|
324
|
+
const queryParameters = {};
|
|
325
|
+
if (requestParameters.search !== undefined) {
|
|
326
|
+
queryParameters['search'] = requestParameters.search;
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters.pageToken !== undefined) {
|
|
329
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
330
|
+
}
|
|
331
|
+
if (requestParameters.pageSize !== undefined) {
|
|
332
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
333
|
+
}
|
|
334
|
+
const headerParameters = {};
|
|
335
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
336
|
+
// oauth required
|
|
337
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
338
|
+
}
|
|
339
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
340
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
341
|
+
}
|
|
342
|
+
const response = yield this.request({
|
|
343
|
+
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
344
|
+
method: 'GET',
|
|
345
|
+
headers: headerParameters,
|
|
346
|
+
query: queryParameters,
|
|
347
|
+
}, initOverrides);
|
|
348
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectInvitesFromJSON(jsonValue));
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* List the invites associated with a project
|
|
353
|
+
* List Invites
|
|
354
|
+
*/
|
|
355
|
+
getInvites(project, optionalParameters = {}, initOverrides) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const response = yield this.getInvitesRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
358
|
+
return yield response.value();
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Get a project
|
|
363
|
+
* Get project
|
|
364
|
+
*/
|
|
365
|
+
getProjectRaw(requestParameters, initOverrides) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
368
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getProject.');
|
|
369
|
+
}
|
|
370
|
+
const queryParameters = {};
|
|
371
|
+
const headerParameters = {};
|
|
372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
+
// oauth required
|
|
374
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
375
|
+
}
|
|
376
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
377
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
378
|
+
}
|
|
379
|
+
const response = yield this.request({
|
|
380
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
381
|
+
method: 'GET',
|
|
382
|
+
headers: headerParameters,
|
|
383
|
+
query: queryParameters,
|
|
384
|
+
}, initOverrides);
|
|
385
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Get a project
|
|
390
|
+
* Get project
|
|
391
|
+
*/
|
|
392
|
+
getProject(project, initOverrides) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const response = yield this.getProjectRaw({
|
|
395
|
+
project: project,
|
|
396
|
+
}, initOverrides);
|
|
397
|
+
return yield response.value();
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* List all projects available
|
|
402
|
+
* List projects
|
|
403
|
+
*/
|
|
404
|
+
getProjectsRaw(initOverrides) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
const queryParameters = {};
|
|
407
|
+
const headerParameters = {};
|
|
408
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
409
|
+
// oauth required
|
|
410
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
411
|
+
}
|
|
412
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
413
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
414
|
+
}
|
|
415
|
+
const response = yield this.request({
|
|
416
|
+
path: `/v1/projects`,
|
|
417
|
+
method: 'GET',
|
|
418
|
+
headers: headerParameters,
|
|
419
|
+
query: queryParameters,
|
|
420
|
+
}, initOverrides);
|
|
421
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectsResponseFromJSON(jsonValue));
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* List all projects available
|
|
426
|
+
* List projects
|
|
427
|
+
*/
|
|
428
|
+
getProjects(initOverrides) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
const response = yield this.getProjectsRaw(initOverrides);
|
|
431
|
+
return yield response.value();
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* List the users associated with a project
|
|
436
|
+
* List project users
|
|
437
|
+
*/
|
|
438
|
+
getUsersRaw(requestParameters, initOverrides) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
441
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getUsers.');
|
|
442
|
+
}
|
|
443
|
+
const queryParameters = {};
|
|
444
|
+
if (requestParameters.search !== undefined) {
|
|
445
|
+
queryParameters['search'] = requestParameters.search;
|
|
446
|
+
}
|
|
447
|
+
if (requestParameters.pageToken !== undefined) {
|
|
448
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
449
|
+
}
|
|
450
|
+
if (requestParameters.pageSize !== undefined) {
|
|
451
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
452
|
+
}
|
|
453
|
+
const headerParameters = {};
|
|
454
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
455
|
+
// oauth required
|
|
456
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
457
|
+
}
|
|
458
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
459
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
460
|
+
}
|
|
461
|
+
const response = yield this.request({
|
|
462
|
+
path: `/v1/projects/{project}/users`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
463
|
+
method: 'GET',
|
|
464
|
+
headers: headerParameters,
|
|
465
|
+
query: queryParameters,
|
|
466
|
+
}, initOverrides);
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectUsersFromJSON(jsonValue));
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* List the users associated with a project
|
|
472
|
+
* List project users
|
|
473
|
+
*/
|
|
474
|
+
getUsers(project, optionalParameters = {}, initOverrides) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
+
const response = yield this.getUsersRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
477
|
+
return yield response.value();
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Install an integration on the project
|
|
482
|
+
* Install integration
|
|
483
|
+
*/
|
|
484
|
+
installIntegrationRaw(requestParameters, initOverrides) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
487
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installIntegration.');
|
|
488
|
+
}
|
|
489
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
490
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling installIntegration.');
|
|
491
|
+
}
|
|
492
|
+
const queryParameters = {};
|
|
493
|
+
const headerParameters = {};
|
|
494
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
495
|
+
// oauth required
|
|
496
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
497
|
+
}
|
|
498
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
499
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
500
|
+
}
|
|
501
|
+
const response = yield this.request({
|
|
502
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
503
|
+
method: 'POST',
|
|
504
|
+
headers: headerParameters,
|
|
505
|
+
query: queryParameters,
|
|
506
|
+
}, initOverrides);
|
|
507
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Install an integration on the project
|
|
512
|
+
* Install integration
|
|
513
|
+
*/
|
|
514
|
+
installIntegration(project, integration, initOverrides) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const response = yield this.installIntegrationRaw({
|
|
517
|
+
project: project, integration: integration,
|
|
518
|
+
}, initOverrides);
|
|
519
|
+
return yield response.value();
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Install an integration template on the project
|
|
524
|
+
* Install integration template
|
|
525
|
+
*/
|
|
526
|
+
installTemplateRaw(requestParameters, initOverrides) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
529
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
530
|
+
}
|
|
531
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
532
|
+
throw new runtime.RequiredError('template', 'Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
533
|
+
}
|
|
534
|
+
if (requestParameters.installTemplateRequest === null || requestParameters.installTemplateRequest === undefined) {
|
|
535
|
+
throw new runtime.RequiredError('installTemplateRequest', 'Required parameter requestParameters.installTemplateRequest was null or undefined when calling installTemplate.');
|
|
536
|
+
}
|
|
537
|
+
const queryParameters = {};
|
|
538
|
+
const headerParameters = {};
|
|
539
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
541
|
+
// oauth required
|
|
542
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
543
|
+
}
|
|
544
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
545
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
546
|
+
}
|
|
547
|
+
const response = yield this.request({
|
|
548
|
+
path: `/v1/projects/{project}/templates/{template}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"template"}}`, encodeURIComponent(String(requestParameters.template))),
|
|
549
|
+
method: 'POST',
|
|
550
|
+
headers: headerParameters,
|
|
551
|
+
query: queryParameters,
|
|
552
|
+
body: InstallTemplateRequestToJSON(requestParameters.installTemplateRequest),
|
|
553
|
+
}, initOverrides);
|
|
554
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Install an integration template on the project
|
|
559
|
+
* Install integration template
|
|
560
|
+
*/
|
|
561
|
+
installTemplate(project, template, installTemplateRequest, initOverrides) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
const response = yield this.installTemplateRaw({
|
|
564
|
+
project: project, template: template, installTemplateRequest: installTemplateRequest,
|
|
565
|
+
}, initOverrides);
|
|
566
|
+
return yield response.value();
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Setup an integration on the project
|
|
571
|
+
* Setup integration
|
|
572
|
+
*/
|
|
573
|
+
setupIntegrationRaw(requestParameters, initOverrides) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
576
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
|
|
577
|
+
}
|
|
578
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
579
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
|
|
580
|
+
}
|
|
581
|
+
if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
|
|
582
|
+
throw new runtime.RequiredError('setupIntegrationRequest', 'Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
|
|
583
|
+
}
|
|
584
|
+
const queryParameters = {};
|
|
585
|
+
const headerParameters = {};
|
|
586
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
587
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
588
|
+
// oauth required
|
|
589
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
590
|
+
}
|
|
591
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
592
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
593
|
+
}
|
|
594
|
+
const response = yield this.request({
|
|
595
|
+
path: `/v1/projects/{project}/integrations/{integration}/setup`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
596
|
+
method: 'POST',
|
|
597
|
+
headers: headerParameters,
|
|
598
|
+
query: queryParameters,
|
|
599
|
+
body: SetupIntegrationRequestToJSON(requestParameters.setupIntegrationRequest),
|
|
600
|
+
}, initOverrides);
|
|
601
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Setup an integration on the project
|
|
606
|
+
* Setup integration
|
|
607
|
+
*/
|
|
608
|
+
setupIntegration(project, integration, setupIntegrationRequest, initOverrides) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
const response = yield this.setupIntegrationRaw({
|
|
611
|
+
project: project, integration: integration, setupIntegrationRequest: setupIntegrationRequest,
|
|
612
|
+
}, initOverrides);
|
|
613
|
+
return yield response.value();
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Uninstall a projects integration
|
|
618
|
+
* Uninstall integration
|
|
619
|
+
*/
|
|
620
|
+
uninstallIntegrationRaw(requestParameters, initOverrides) {
|
|
621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
622
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
623
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling uninstallIntegration.');
|
|
624
|
+
}
|
|
625
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
626
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling uninstallIntegration.');
|
|
627
|
+
}
|
|
628
|
+
const queryParameters = {};
|
|
629
|
+
const headerParameters = {};
|
|
630
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
631
|
+
// oauth required
|
|
632
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
633
|
+
}
|
|
634
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
635
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
636
|
+
}
|
|
637
|
+
const response = yield this.request({
|
|
638
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
639
|
+
method: 'DELETE',
|
|
640
|
+
headers: headerParameters,
|
|
641
|
+
query: queryParameters,
|
|
642
|
+
}, initOverrides);
|
|
643
|
+
return new runtime.VoidApiResponse(response);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Uninstall a projects integration
|
|
648
|
+
* Uninstall integration
|
|
649
|
+
*/
|
|
650
|
+
uninstallIntegration(project, integration, initOverrides) {
|
|
651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
652
|
+
yield this.uninstallIntegrationRaw({
|
|
653
|
+
project: project, integration: integration,
|
|
654
|
+
}, initOverrides);
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Update a project
|
|
659
|
+
* Update project
|
|
660
|
+
*/
|
|
661
|
+
updateProjectRaw(requestParameters, initOverrides) {
|
|
662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
664
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateProject.');
|
|
665
|
+
}
|
|
666
|
+
if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
|
|
667
|
+
throw new runtime.RequiredError('updateProjectRequest', 'Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
|
|
668
|
+
}
|
|
669
|
+
const queryParameters = {};
|
|
670
|
+
const headerParameters = {};
|
|
671
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
672
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
673
|
+
// oauth required
|
|
674
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
675
|
+
}
|
|
676
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
677
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
678
|
+
}
|
|
679
|
+
const response = yield this.request({
|
|
680
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
681
|
+
method: 'PATCH',
|
|
682
|
+
headers: headerParameters,
|
|
683
|
+
query: queryParameters,
|
|
684
|
+
body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
|
|
685
|
+
}, initOverrides);
|
|
686
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Update a project
|
|
691
|
+
* Update project
|
|
692
|
+
*/
|
|
693
|
+
updateProject(project, updateProjectRequest, initOverrides) {
|
|
694
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
695
|
+
const response = yield this.updateProjectRaw({
|
|
696
|
+
project: project, updateProjectRequest: updateProjectRequest,
|
|
697
|
+
}, initOverrides);
|
|
698
|
+
return yield response.value();
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
}
|