@teemill/projects 1.2.0 → 1.4.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/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +15 -1
- package/dist/apis/ProjectsApi.js +90 -8
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +7 -1
- package/dist/models/CreateProjectRequest.js +4 -1
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.d.ts +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +6 -3
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +154 -18
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateProjectRequest.ts +9 -1
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/runtime.ts +13 -3
- package/dist/apis/IntegrationsApi.d.ts +0 -72
- package/dist/apis/IntegrationsApi.js +0 -320
- package/dist/models/Project1.d.ts +0 -31
- package/dist/models/Project1.js +0 -50
- package/dist/models/Project2.d.ts +0 -31
- package/dist/models/Project2.js +0 -50
- package/src/apis/IntegrationsApi.ts +0 -225
- package/src/models/Project1.ts +0 -66
- package/src/models/Project2.ts +0 -65
package/src/apis/ProjectsApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -66,6 +66,11 @@ export interface InstallIntegrationRequest {
|
|
|
66
66
|
integration: string;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export interface InstallTemplateRequest {
|
|
70
|
+
project: string;
|
|
71
|
+
template: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
export interface UninstallIntegrationRequest {
|
|
70
75
|
project: string;
|
|
71
76
|
integration: string;
|
|
@@ -120,8 +125,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
120
125
|
* Create a new projects
|
|
121
126
|
* Create project
|
|
122
127
|
*/
|
|
123
|
-
async createProject(
|
|
124
|
-
|
|
128
|
+
async createProject(
|
|
129
|
+
createProjectRequest: CreateProjectRequest,
|
|
130
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
131
|
+
): Promise<Project> {
|
|
132
|
+
const response = await this.createProjectRaw(
|
|
133
|
+
{
|
|
134
|
+
createProjectRequest: createProjectRequest
|
|
135
|
+
},
|
|
136
|
+
initOverrides
|
|
137
|
+
);
|
|
138
|
+
|
|
125
139
|
return await response.value();
|
|
126
140
|
}
|
|
127
141
|
|
|
@@ -161,8 +175,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
161
175
|
* Delete a project
|
|
162
176
|
* Delete project
|
|
163
177
|
*/
|
|
164
|
-
async deleteProject(
|
|
165
|
-
|
|
178
|
+
async deleteProject(
|
|
179
|
+
project: string,
|
|
180
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
181
|
+
): Promise<Project> {
|
|
182
|
+
const response = await this.deleteProjectRaw(
|
|
183
|
+
{
|
|
184
|
+
project: project
|
|
185
|
+
},
|
|
186
|
+
initOverrides
|
|
187
|
+
);
|
|
188
|
+
|
|
166
189
|
return await response.value();
|
|
167
190
|
}
|
|
168
191
|
|
|
@@ -206,8 +229,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
206
229
|
* Get an integration
|
|
207
230
|
* Get integration
|
|
208
231
|
*/
|
|
209
|
-
async getIntegration(
|
|
210
|
-
|
|
232
|
+
async getIntegration(
|
|
233
|
+
project: string, integration: string,
|
|
234
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
235
|
+
): Promise<Integration> {
|
|
236
|
+
const response = await this.getIntegrationRaw(
|
|
237
|
+
{
|
|
238
|
+
project: project,
|
|
239
|
+
integration: integration
|
|
240
|
+
},
|
|
241
|
+
initOverrides
|
|
242
|
+
);
|
|
243
|
+
|
|
211
244
|
return await response.value();
|
|
212
245
|
}
|
|
213
246
|
|
|
@@ -247,8 +280,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
247
280
|
* List all integrations installed on a project
|
|
248
281
|
* List integrations
|
|
249
282
|
*/
|
|
250
|
-
async getIntegrations(
|
|
251
|
-
|
|
283
|
+
async getIntegrations(
|
|
284
|
+
project: string,
|
|
285
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
286
|
+
): Promise<IntegrationsResponse> {
|
|
287
|
+
const response = await this.getIntegrationsRaw(
|
|
288
|
+
{
|
|
289
|
+
project: project
|
|
290
|
+
},
|
|
291
|
+
initOverrides
|
|
292
|
+
);
|
|
293
|
+
|
|
252
294
|
return await response.value();
|
|
253
295
|
}
|
|
254
296
|
|
|
@@ -288,8 +330,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
288
330
|
* Get a project
|
|
289
331
|
* Get project
|
|
290
332
|
*/
|
|
291
|
-
async getProject(
|
|
292
|
-
|
|
333
|
+
async getProject(
|
|
334
|
+
project: string,
|
|
335
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
336
|
+
): Promise<Project> {
|
|
337
|
+
const response = await this.getProjectRaw(
|
|
338
|
+
{
|
|
339
|
+
project: project
|
|
340
|
+
},
|
|
341
|
+
initOverrides
|
|
342
|
+
);
|
|
343
|
+
|
|
293
344
|
return await response.value();
|
|
294
345
|
}
|
|
295
346
|
|
|
@@ -325,8 +376,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
325
376
|
* List all projects available
|
|
326
377
|
* List projects
|
|
327
378
|
*/
|
|
328
|
-
async getProjects(
|
|
329
|
-
|
|
379
|
+
async getProjects(
|
|
380
|
+
|
|
381
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
382
|
+
): Promise<ProjectsResponse> {
|
|
383
|
+
const response = await this.getProjectsRaw(
|
|
384
|
+
|
|
385
|
+
initOverrides
|
|
386
|
+
);
|
|
387
|
+
|
|
330
388
|
return await response.value();
|
|
331
389
|
}
|
|
332
390
|
|
|
@@ -370,8 +428,73 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
370
428
|
* Install an integration on the project
|
|
371
429
|
* Install integration
|
|
372
430
|
*/
|
|
373
|
-
async installIntegration(
|
|
374
|
-
|
|
431
|
+
async installIntegration(
|
|
432
|
+
project: string, integration: string,
|
|
433
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
434
|
+
): Promise<Integration> {
|
|
435
|
+
const response = await this.installIntegrationRaw(
|
|
436
|
+
{
|
|
437
|
+
project: project,
|
|
438
|
+
integration: integration
|
|
439
|
+
},
|
|
440
|
+
initOverrides
|
|
441
|
+
);
|
|
442
|
+
|
|
443
|
+
return await response.value();
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Install an integration template on the project
|
|
448
|
+
* Install integration template
|
|
449
|
+
*/
|
|
450
|
+
async installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
451
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
452
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
456
|
+
throw new runtime.RequiredError('template','Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const queryParameters: any = {};
|
|
460
|
+
|
|
461
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
462
|
+
|
|
463
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
464
|
+
// oauth required
|
|
465
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
469
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const response = await this.request({
|
|
473
|
+
path: `/v1/projects/{project}/templates/{template}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"template"}}`, encodeURIComponent(String(requestParameters.template))),
|
|
474
|
+
method: 'POST',
|
|
475
|
+
headers: headerParameters,
|
|
476
|
+
query: queryParameters,
|
|
477
|
+
}, initOverrides);
|
|
478
|
+
|
|
479
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Install an integration template on the project
|
|
484
|
+
* Install integration template
|
|
485
|
+
*/
|
|
486
|
+
async installTemplate(
|
|
487
|
+
project: string, template: string,
|
|
488
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
489
|
+
): Promise<IntegrationsResponse> {
|
|
490
|
+
const response = await this.installTemplateRaw(
|
|
491
|
+
{
|
|
492
|
+
project: project,
|
|
493
|
+
template: template
|
|
494
|
+
},
|
|
495
|
+
initOverrides
|
|
496
|
+
);
|
|
497
|
+
|
|
375
498
|
return await response.value();
|
|
376
499
|
}
|
|
377
500
|
|
|
@@ -415,7 +538,10 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
415
538
|
* Uninstall a projects integration
|
|
416
539
|
* Uninstall integration
|
|
417
540
|
*/
|
|
418
|
-
async uninstallIntegration(
|
|
541
|
+
async uninstallIntegration(
|
|
542
|
+
project: string, integration: string,
|
|
543
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
544
|
+
): Promise<void> {
|
|
419
545
|
await this.uninstallIntegrationRaw({ project: project, integration: integration }, initOverrides);
|
|
420
546
|
}
|
|
421
547
|
|
|
@@ -462,8 +588,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
462
588
|
* Update a project
|
|
463
589
|
* Update project
|
|
464
590
|
*/
|
|
465
|
-
async updateProject(
|
|
466
|
-
|
|
591
|
+
async updateProject(
|
|
592
|
+
project: string, updateProjectRequest: UpdateProjectRequest,
|
|
593
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
594
|
+
): Promise<Project> {
|
|
595
|
+
const response = await this.updateProjectRaw(
|
|
596
|
+
{
|
|
597
|
+
project: project,
|
|
598
|
+
updateProjectRequest: updateProjectRequest
|
|
599
|
+
},
|
|
600
|
+
initOverrides
|
|
601
|
+
);
|
|
602
|
+
|
|
467
603
|
return await response.value();
|
|
468
604
|
}
|
|
469
605
|
|
package/src/models/ApiError.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,6 +25,12 @@ export interface CreateProjectRequest {
|
|
|
25
25
|
* @memberof CreateProjectRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateProjectRequest
|
|
32
|
+
*/
|
|
33
|
+
template?: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -48,6 +54,7 @@ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
48
54
|
return {
|
|
49
55
|
|
|
50
56
|
'name': json['name'],
|
|
57
|
+
'template': !exists(json, 'template') ? undefined : json['template'],
|
|
51
58
|
};
|
|
52
59
|
}
|
|
53
60
|
|
|
@@ -61,6 +68,7 @@ export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null):
|
|
|
61
68
|
return {
|
|
62
69
|
|
|
63
70
|
'name': value.name,
|
|
71
|
+
'template': value.template,
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Project.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
export type OptionalProperties<T> = {
|
|
17
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never
|
|
18
|
+
}[keyof T];
|
|
19
|
+
|
|
20
|
+
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
21
|
+
|
|
16
22
|
export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
17
23
|
|
|
18
24
|
export interface ConfigurationParameters {
|
|
@@ -98,6 +104,10 @@ export class BaseAPI {
|
|
|
98
104
|
this.middleware = configuration.middleware;
|
|
99
105
|
}
|
|
100
106
|
|
|
107
|
+
isResponseError(error: any): error is ResponseError {
|
|
108
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
109
|
+
}
|
|
110
|
+
|
|
101
111
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
|
102
112
|
const next = this.clone<T>();
|
|
103
113
|
next.middleware = next.middleware.concat(...middlewares);
|
|
@@ -326,8 +336,8 @@ function querystringSingleKey(key: string, value: string | number | null | undef
|
|
|
326
336
|
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
327
337
|
if (value instanceof Array) {
|
|
328
338
|
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
329
|
-
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
330
|
-
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
339
|
+
.join(`&${encodeURIComponent(fullKey)}[]=`);
|
|
340
|
+
return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
|
|
331
341
|
}
|
|
332
342
|
if (value instanceof Set) {
|
|
333
343
|
const valueAsArray = Array.from(value);
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Projects API
|
|
3
|
-
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { Integration, IntegrationsResponse } from '../models/index';
|
|
14
|
-
export interface GetIntegrationRequest {
|
|
15
|
-
projectId: string;
|
|
16
|
-
integrationId: string;
|
|
17
|
-
}
|
|
18
|
-
export interface GetIntegrationsRequest {
|
|
19
|
-
projectId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface InstallIntegrationRequest {
|
|
22
|
-
projectId: string;
|
|
23
|
-
}
|
|
24
|
-
export interface UninstallIntegrationRequest {
|
|
25
|
-
projectId: string;
|
|
26
|
-
integrationId: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Get an integration
|
|
34
|
-
* Get integration
|
|
35
|
-
*/
|
|
36
|
-
getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
37
|
-
/**
|
|
38
|
-
* Get an integration
|
|
39
|
-
* Get integration
|
|
40
|
-
*/
|
|
41
|
-
getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
42
|
-
/**
|
|
43
|
-
* List all integrations installed on a project
|
|
44
|
-
* List integrations
|
|
45
|
-
*/
|
|
46
|
-
getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
47
|
-
/**
|
|
48
|
-
* List all integrations installed on a project
|
|
49
|
-
* List integrations
|
|
50
|
-
*/
|
|
51
|
-
getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* Install an integration on the project
|
|
54
|
-
* Install integration
|
|
55
|
-
*/
|
|
56
|
-
installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
57
|
-
/**
|
|
58
|
-
* Install an integration on the project
|
|
59
|
-
* Install integration
|
|
60
|
-
*/
|
|
61
|
-
installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
62
|
-
/**
|
|
63
|
-
* Uninstall a projects integration
|
|
64
|
-
* Uninstall integration
|
|
65
|
-
*/
|
|
66
|
-
uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
67
|
-
/**
|
|
68
|
-
* Uninstall a projects integration
|
|
69
|
-
* Uninstall integration
|
|
70
|
-
*/
|
|
71
|
-
uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
72
|
-
}
|