@teemill/projects 1.1.0 → 1.1.2
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 +0 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +56 -2
- package/dist/apis/ProjectsApi.js +241 -1
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -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 +2 -2
- package/dist/models/IntegrationsResponse.js +4 -4
- 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/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +196 -1
- package/src/apis/index.ts +0 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +5 -5
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.1.
|
|
1
|
+
## @teemill/projects@1.1.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.1.
|
|
39
|
+
npm install @teemill/projects@1.1.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,13 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Project, ProjectsResponse } from '../models/index';
|
|
13
|
+
import type { Integration, IntegrationsResponse, Project, ProjectsResponse } from '../models/index';
|
|
14
14
|
export interface DeleteProjectRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface GetIntegrationRequest {
|
|
18
|
+
projectId: string;
|
|
19
|
+
integrationId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetIntegrationsRequest {
|
|
22
|
+
projectId: string;
|
|
23
|
+
}
|
|
17
24
|
export interface GetProjectRequest {
|
|
18
25
|
projectId: string;
|
|
19
26
|
}
|
|
27
|
+
export interface InstallIntegrationRequest {
|
|
28
|
+
projectId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface UninstallIntegrationRequest {
|
|
31
|
+
projectId: string;
|
|
32
|
+
integrationId: string;
|
|
33
|
+
}
|
|
20
34
|
export interface UpdateProjectRequest {
|
|
21
35
|
projectId: string;
|
|
22
36
|
}
|
|
@@ -44,6 +58,26 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
44
58
|
* Delete project
|
|
45
59
|
*/
|
|
46
60
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
61
|
+
/**
|
|
62
|
+
* Get an integration
|
|
63
|
+
* Get integration
|
|
64
|
+
*/
|
|
65
|
+
getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
66
|
+
/**
|
|
67
|
+
* Get an integration
|
|
68
|
+
* Get integration
|
|
69
|
+
*/
|
|
70
|
+
getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
71
|
+
/**
|
|
72
|
+
* List all integrations installed on a project
|
|
73
|
+
* List integrations
|
|
74
|
+
*/
|
|
75
|
+
getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* List all integrations installed on a project
|
|
78
|
+
* List integrations
|
|
79
|
+
*/
|
|
80
|
+
getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
47
81
|
/**
|
|
48
82
|
* Get a project
|
|
49
83
|
* Get project
|
|
@@ -64,6 +98,26 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
64
98
|
* List projects
|
|
65
99
|
*/
|
|
66
100
|
getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectsResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Install an integration on the project
|
|
103
|
+
* Install integration
|
|
104
|
+
*/
|
|
105
|
+
installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
106
|
+
/**
|
|
107
|
+
* Install an integration on the project
|
|
108
|
+
* Install integration
|
|
109
|
+
*/
|
|
110
|
+
installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
111
|
+
/**
|
|
112
|
+
* Uninstall a projects integration
|
|
113
|
+
* Uninstall integration
|
|
114
|
+
*/
|
|
115
|
+
uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
116
|
+
/**
|
|
117
|
+
* Uninstall a projects integration
|
|
118
|
+
* Uninstall integration
|
|
119
|
+
*/
|
|
120
|
+
uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
67
121
|
/**
|
|
68
122
|
* Update a project
|
|
69
123
|
* Update project
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -190,6 +190,127 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Get an integration
|
|
195
|
+
* Get integration
|
|
196
|
+
*/
|
|
197
|
+
ProjectsApi.prototype.getIntegrationRaw = function (requestParameters, initOverrides) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
200
|
+
return __generator(this, function (_c) {
|
|
201
|
+
switch (_c.label) {
|
|
202
|
+
case 0:
|
|
203
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
204
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
205
|
+
}
|
|
206
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
207
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
208
|
+
}
|
|
209
|
+
queryParameters = {};
|
|
210
|
+
headerParameters = {};
|
|
211
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
212
|
+
// oauth required
|
|
213
|
+
_a = headerParameters;
|
|
214
|
+
_b = "Authorization";
|
|
215
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
216
|
+
case 1:
|
|
217
|
+
// oauth required
|
|
218
|
+
_a[_b] = _c.sent();
|
|
219
|
+
_c.label = 2;
|
|
220
|
+
case 2:
|
|
221
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
222
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
223
|
+
}
|
|
224
|
+
return [4 /*yield*/, this.request({
|
|
225
|
+
path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
|
|
226
|
+
method: 'GET',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
}, initOverrides)];
|
|
230
|
+
case 3:
|
|
231
|
+
response = _c.sent();
|
|
232
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Get an integration
|
|
239
|
+
* Get integration
|
|
240
|
+
*/
|
|
241
|
+
ProjectsApi.prototype.getIntegration = function (requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
var response;
|
|
244
|
+
return __generator(this, function (_a) {
|
|
245
|
+
switch (_a.label) {
|
|
246
|
+
case 0: return [4 /*yield*/, this.getIntegrationRaw(requestParameters, initOverrides)];
|
|
247
|
+
case 1:
|
|
248
|
+
response = _a.sent();
|
|
249
|
+
return [4 /*yield*/, response.value()];
|
|
250
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* List all integrations installed on a project
|
|
257
|
+
* List integrations
|
|
258
|
+
*/
|
|
259
|
+
ProjectsApi.prototype.getIntegrationsRaw = function (requestParameters, initOverrides) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
261
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
262
|
+
return __generator(this, function (_c) {
|
|
263
|
+
switch (_c.label) {
|
|
264
|
+
case 0:
|
|
265
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
266
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
267
|
+
}
|
|
268
|
+
queryParameters = {};
|
|
269
|
+
headerParameters = {};
|
|
270
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
271
|
+
// oauth required
|
|
272
|
+
_a = headerParameters;
|
|
273
|
+
_b = "Authorization";
|
|
274
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
275
|
+
case 1:
|
|
276
|
+
// oauth required
|
|
277
|
+
_a[_b] = _c.sent();
|
|
278
|
+
_c.label = 2;
|
|
279
|
+
case 2:
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
282
|
+
}
|
|
283
|
+
return [4 /*yield*/, this.request({
|
|
284
|
+
path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
285
|
+
method: 'GET',
|
|
286
|
+
headers: headerParameters,
|
|
287
|
+
query: queryParameters,
|
|
288
|
+
}, initOverrides)];
|
|
289
|
+
case 3:
|
|
290
|
+
response = _c.sent();
|
|
291
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* List all integrations installed on a project
|
|
298
|
+
* List integrations
|
|
299
|
+
*/
|
|
300
|
+
ProjectsApi.prototype.getIntegrations = function (requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
302
|
+
var response;
|
|
303
|
+
return __generator(this, function (_a) {
|
|
304
|
+
switch (_a.label) {
|
|
305
|
+
case 0: return [4 /*yield*/, this.getIntegrationsRaw(requestParameters, initOverrides)];
|
|
306
|
+
case 1:
|
|
307
|
+
response = _a.sent();
|
|
308
|
+
return [4 /*yield*/, response.value()];
|
|
309
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
};
|
|
193
314
|
/**
|
|
194
315
|
* Get a project
|
|
195
316
|
* Get project
|
|
@@ -305,6 +426,125 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
305
426
|
});
|
|
306
427
|
});
|
|
307
428
|
};
|
|
429
|
+
/**
|
|
430
|
+
* Install an integration on the project
|
|
431
|
+
* Install integration
|
|
432
|
+
*/
|
|
433
|
+
ProjectsApi.prototype.installIntegrationRaw = function (requestParameters, initOverrides) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
436
|
+
return __generator(this, function (_c) {
|
|
437
|
+
switch (_c.label) {
|
|
438
|
+
case 0:
|
|
439
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
440
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
441
|
+
}
|
|
442
|
+
queryParameters = {};
|
|
443
|
+
headerParameters = {};
|
|
444
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
445
|
+
// oauth required
|
|
446
|
+
_a = headerParameters;
|
|
447
|
+
_b = "Authorization";
|
|
448
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
449
|
+
case 1:
|
|
450
|
+
// oauth required
|
|
451
|
+
_a[_b] = _c.sent();
|
|
452
|
+
_c.label = 2;
|
|
453
|
+
case 2:
|
|
454
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
455
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
456
|
+
}
|
|
457
|
+
return [4 /*yield*/, this.request({
|
|
458
|
+
path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
459
|
+
method: 'POST',
|
|
460
|
+
headers: headerParameters,
|
|
461
|
+
query: queryParameters,
|
|
462
|
+
}, initOverrides)];
|
|
463
|
+
case 3:
|
|
464
|
+
response = _c.sent();
|
|
465
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Install an integration on the project
|
|
472
|
+
* Install integration
|
|
473
|
+
*/
|
|
474
|
+
ProjectsApi.prototype.installIntegration = function (requestParameters, initOverrides) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
+
var response;
|
|
477
|
+
return __generator(this, function (_a) {
|
|
478
|
+
switch (_a.label) {
|
|
479
|
+
case 0: return [4 /*yield*/, this.installIntegrationRaw(requestParameters, initOverrides)];
|
|
480
|
+
case 1:
|
|
481
|
+
response = _a.sent();
|
|
482
|
+
return [4 /*yield*/, response.value()];
|
|
483
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* Uninstall a projects integration
|
|
490
|
+
* Uninstall integration
|
|
491
|
+
*/
|
|
492
|
+
ProjectsApi.prototype.uninstallIntegrationRaw = function (requestParameters, initOverrides) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
494
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
495
|
+
return __generator(this, function (_c) {
|
|
496
|
+
switch (_c.label) {
|
|
497
|
+
case 0:
|
|
498
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
499
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
500
|
+
}
|
|
501
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
502
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
503
|
+
}
|
|
504
|
+
queryParameters = {};
|
|
505
|
+
headerParameters = {};
|
|
506
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
507
|
+
// oauth required
|
|
508
|
+
_a = headerParameters;
|
|
509
|
+
_b = "Authorization";
|
|
510
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
511
|
+
case 1:
|
|
512
|
+
// oauth required
|
|
513
|
+
_a[_b] = _c.sent();
|
|
514
|
+
_c.label = 2;
|
|
515
|
+
case 2:
|
|
516
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
517
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
518
|
+
}
|
|
519
|
+
return [4 /*yield*/, this.request({
|
|
520
|
+
path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
|
|
521
|
+
method: 'DELETE',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
}, initOverrides)];
|
|
525
|
+
case 3:
|
|
526
|
+
response = _c.sent();
|
|
527
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Uninstall a projects integration
|
|
534
|
+
* Uninstall integration
|
|
535
|
+
*/
|
|
536
|
+
ProjectsApi.prototype.uninstallIntegration = function (requestParameters, initOverrides) {
|
|
537
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
538
|
+
return __generator(this, function (_a) {
|
|
539
|
+
switch (_a.label) {
|
|
540
|
+
case 0: return [4 /*yield*/, this.uninstallIntegrationRaw(requestParameters, initOverrides)];
|
|
541
|
+
case 1:
|
|
542
|
+
_a.sent();
|
|
543
|
+
return [2 /*return*/];
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
});
|
|
547
|
+
};
|
|
308
548
|
/**
|
|
309
549
|
* Update a project
|
|
310
550
|
* Update project
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./IntegrationsApi"), exports);
|
|
20
19
|
__exportStar(require("./ProjectsApi"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,7 +21,7 @@ export interface IntegrationsResponse {
|
|
|
21
21
|
* @type {Array<Integration>}
|
|
22
22
|
* @memberof IntegrationsResponse
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
integrations: Array<Integration>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the IntegrationsResponse interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,7 +20,7 @@ var Integration_1 = require("./Integration");
|
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfIntegrationsResponse(value) {
|
|
22
22
|
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "
|
|
23
|
+
isInstance = isInstance && "integrations" in value;
|
|
24
24
|
return isInstance;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfIntegrationsResponse = instanceOfIntegrationsResponse;
|
|
@@ -33,7 +33,7 @@ function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'
|
|
36
|
+
'integrations': (json['integrations'].map(Integration_1.IntegrationFromJSON)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.IntegrationsResponseFromJSONTyped = IntegrationsResponseFromJSONTyped;
|
|
@@ -45,7 +45,7 @@ function IntegrationsResponseToJSON(value) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'
|
|
48
|
+
'integrations': (value.integrations.map(Integration_1.IntegrationToJSON)),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
exports.IntegrationsResponseToJSON = IntegrationsResponseToJSON;
|
package/dist/models/Project.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Project.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.1.
|
|
5
|
+
* The version of the OpenAPI document: 1.1.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.1.
|
|
8
|
+
* The version of the OpenAPI document: 1.1.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,12 +16,18 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiError,
|
|
19
|
+
Integration,
|
|
20
|
+
IntegrationsResponse,
|
|
19
21
|
Project,
|
|
20
22
|
ProjectsResponse,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
23
25
|
ApiErrorFromJSON,
|
|
24
26
|
ApiErrorToJSON,
|
|
27
|
+
IntegrationFromJSON,
|
|
28
|
+
IntegrationToJSON,
|
|
29
|
+
IntegrationsResponseFromJSON,
|
|
30
|
+
IntegrationsResponseToJSON,
|
|
25
31
|
ProjectFromJSON,
|
|
26
32
|
ProjectToJSON,
|
|
27
33
|
ProjectsResponseFromJSON,
|
|
@@ -32,10 +38,28 @@ export interface DeleteProjectRequest {
|
|
|
32
38
|
projectId: string;
|
|
33
39
|
}
|
|
34
40
|
|
|
41
|
+
export interface GetIntegrationRequest {
|
|
42
|
+
projectId: string;
|
|
43
|
+
integrationId: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface GetIntegrationsRequest {
|
|
47
|
+
projectId: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
export interface GetProjectRequest {
|
|
36
51
|
projectId: string;
|
|
37
52
|
}
|
|
38
53
|
|
|
54
|
+
export interface InstallIntegrationRequest {
|
|
55
|
+
projectId: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface UninstallIntegrationRequest {
|
|
59
|
+
projectId: string;
|
|
60
|
+
integrationId: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
export interface UpdateProjectRequest {
|
|
40
64
|
projectId: string;
|
|
41
65
|
}
|
|
@@ -123,6 +147,92 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
123
147
|
return await response.value();
|
|
124
148
|
}
|
|
125
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Get an integration
|
|
152
|
+
* Get integration
|
|
153
|
+
*/
|
|
154
|
+
async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
155
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
156
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const queryParameters: any = {};
|
|
164
|
+
|
|
165
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
|
+
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
// oauth required
|
|
169
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
173
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const response = await this.request({
|
|
177
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
178
|
+
method: 'GET',
|
|
179
|
+
headers: headerParameters,
|
|
180
|
+
query: queryParameters,
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Get an integration
|
|
188
|
+
* Get integration
|
|
189
|
+
*/
|
|
190
|
+
async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
191
|
+
const response = await this.getIntegrationRaw(requestParameters, initOverrides);
|
|
192
|
+
return await response.value();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* List all integrations installed on a project
|
|
197
|
+
* List integrations
|
|
198
|
+
*/
|
|
199
|
+
async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
200
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
201
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const queryParameters: any = {};
|
|
205
|
+
|
|
206
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
+
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
// oauth required
|
|
210
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const response = await this.request({
|
|
218
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
219
|
+
method: 'GET',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* List all integrations installed on a project
|
|
229
|
+
* List integrations
|
|
230
|
+
*/
|
|
231
|
+
async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
232
|
+
const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
|
|
233
|
+
return await response.value();
|
|
234
|
+
}
|
|
235
|
+
|
|
126
236
|
/**
|
|
127
237
|
* Get a project
|
|
128
238
|
* Get project
|
|
@@ -201,6 +311,91 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
201
311
|
return await response.value();
|
|
202
312
|
}
|
|
203
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Install an integration on the project
|
|
316
|
+
* Install integration
|
|
317
|
+
*/
|
|
318
|
+
async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
319
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
320
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
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/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
338
|
+
method: 'POST',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
|
|
343
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Install an integration on the project
|
|
348
|
+
* Install integration
|
|
349
|
+
*/
|
|
350
|
+
async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
351
|
+
const response = await this.installIntegrationRaw(requestParameters, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Uninstall a projects integration
|
|
357
|
+
* Uninstall integration
|
|
358
|
+
*/
|
|
359
|
+
async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
360
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
361
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
365
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const queryParameters: any = {};
|
|
369
|
+
|
|
370
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
371
|
+
|
|
372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
+
// oauth required
|
|
374
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
378
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const response = await this.request({
|
|
382
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
383
|
+
method: 'DELETE',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
}, initOverrides);
|
|
387
|
+
|
|
388
|
+
return new runtime.VoidApiResponse(response);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Uninstall a projects integration
|
|
393
|
+
* Uninstall integration
|
|
394
|
+
*/
|
|
395
|
+
async uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
396
|
+
await this.uninstallIntegrationRaw(requestParameters, initOverrides);
|
|
397
|
+
}
|
|
398
|
+
|
|
204
399
|
/**
|
|
205
400
|
* Update a project
|
|
206
401
|
* Update project
|
package/src/apis/index.ts
CHANGED
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,7 +31,7 @@ export interface IntegrationsResponse {
|
|
|
31
31
|
* @type {Array<Integration>}
|
|
32
32
|
* @memberof IntegrationsResponse
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
integrations: Array<Integration>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -39,7 +39,7 @@ export interface IntegrationsResponse {
|
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationsResponse(value: object): boolean {
|
|
41
41
|
let isInstance = true;
|
|
42
|
-
isInstance = isInstance && "
|
|
42
|
+
isInstance = isInstance && "integrations" in value;
|
|
43
43
|
|
|
44
44
|
return isInstance;
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
56
|
|
|
57
|
-
'
|
|
57
|
+
'integrations': ((json['integrations'] as Array<any>).map(IntegrationFromJSON)),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null):
|
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
|
|
70
|
-
'
|
|
70
|
+
'integrations': ((value.integrations as Array<any>).map(IntegrationToJSON)),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
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.1.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|