@teemill/projects 1.1.5 → 1.3.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 +23 -9
- package/dist/apis/ProjectsApi.js +79 -17
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.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 +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/Project1.d.ts +31 -0
- package/dist/models/Project1.js +50 -0
- package/dist/models/Project2.d.ts +31 -0
- package/dist/models/Project2.js +50 -0
- 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 +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +67 -17
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateProjectRequest.ts +1 -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/Project1.ts +66 -0
- package/src/models/Project2.ts +65 -0
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.2.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.3.0
|
|
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.
|
|
39
|
+
npm install @teemill/projects@1.3.0 --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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,6 +31,10 @@ export interface InstallIntegrationRequest {
|
|
|
31
31
|
project: string;
|
|
32
32
|
integration: string;
|
|
33
33
|
}
|
|
34
|
+
export interface InstallTemplateRequest {
|
|
35
|
+
project: string;
|
|
36
|
+
template: string;
|
|
37
|
+
}
|
|
34
38
|
export interface UninstallIntegrationRequest {
|
|
35
39
|
project: string;
|
|
36
40
|
integration: string;
|
|
@@ -52,7 +56,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
52
56
|
* Create a new projects
|
|
53
57
|
* Create project
|
|
54
58
|
*/
|
|
55
|
-
createProject(
|
|
59
|
+
createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
56
60
|
/**
|
|
57
61
|
* Delete a project
|
|
58
62
|
* Delete project
|
|
@@ -62,7 +66,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
62
66
|
* Delete a project
|
|
63
67
|
* Delete project
|
|
64
68
|
*/
|
|
65
|
-
deleteProject(
|
|
69
|
+
deleteProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
66
70
|
/**
|
|
67
71
|
* Get an integration
|
|
68
72
|
* Get integration
|
|
@@ -72,7 +76,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
72
76
|
* Get an integration
|
|
73
77
|
* Get integration
|
|
74
78
|
*/
|
|
75
|
-
getIntegration(
|
|
79
|
+
getIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
76
80
|
/**
|
|
77
81
|
* List all integrations installed on a project
|
|
78
82
|
* List integrations
|
|
@@ -82,7 +86,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
82
86
|
* List all integrations installed on a project
|
|
83
87
|
* List integrations
|
|
84
88
|
*/
|
|
85
|
-
getIntegrations(
|
|
89
|
+
getIntegrations(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
86
90
|
/**
|
|
87
91
|
* Get a project
|
|
88
92
|
* Get project
|
|
@@ -92,7 +96,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
92
96
|
* Get a project
|
|
93
97
|
* Get project
|
|
94
98
|
*/
|
|
95
|
-
getProject(
|
|
99
|
+
getProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
96
100
|
/**
|
|
97
101
|
* List all projects available
|
|
98
102
|
* List projects
|
|
@@ -112,7 +116,17 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
112
116
|
* Install an integration on the project
|
|
113
117
|
* Install integration
|
|
114
118
|
*/
|
|
115
|
-
installIntegration(
|
|
119
|
+
installIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
120
|
+
/**
|
|
121
|
+
* Install an integration template on the project
|
|
122
|
+
* Install integration template
|
|
123
|
+
*/
|
|
124
|
+
installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
125
|
+
/**
|
|
126
|
+
* Install an integration template on the project
|
|
127
|
+
* Install integration template
|
|
128
|
+
*/
|
|
129
|
+
installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
116
130
|
/**
|
|
117
131
|
* Uninstall a projects integration
|
|
118
132
|
* Uninstall integration
|
|
@@ -122,7 +136,7 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
122
136
|
* Uninstall a projects integration
|
|
123
137
|
* Uninstall integration
|
|
124
138
|
*/
|
|
125
|
-
uninstallIntegration(
|
|
139
|
+
uninstallIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
126
140
|
/**
|
|
127
141
|
* Update a project
|
|
128
142
|
* Update project
|
|
@@ -132,5 +146,5 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
132
146
|
* Update a project
|
|
133
147
|
* Update project
|
|
134
148
|
*/
|
|
135
|
-
updateProject(
|
|
149
|
+
updateProject(project: string, updateProjectRequest: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
136
150
|
}
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -122,12 +122,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
122
122
|
* Create a new projects
|
|
123
123
|
* Create project
|
|
124
124
|
*/
|
|
125
|
-
ProjectsApi.prototype.createProject = function (
|
|
125
|
+
ProjectsApi.prototype.createProject = function (createProjectRequest, initOverrides) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
127
|
var response;
|
|
128
128
|
return __generator(this, function (_a) {
|
|
129
129
|
switch (_a.label) {
|
|
130
|
-
case 0: return [4 /*yield*/, this.createProjectRaw(
|
|
130
|
+
case 0: return [4 /*yield*/, this.createProjectRaw({ createProjectRequest: createProjectRequest }, initOverrides)];
|
|
131
131
|
case 1:
|
|
132
132
|
response = _a.sent();
|
|
133
133
|
return [4 /*yield*/, response.value()];
|
|
@@ -181,12 +181,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
181
181
|
* Delete a project
|
|
182
182
|
* Delete project
|
|
183
183
|
*/
|
|
184
|
-
ProjectsApi.prototype.deleteProject = function (
|
|
184
|
+
ProjectsApi.prototype.deleteProject = function (project, initOverrides) {
|
|
185
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
186
186
|
var response;
|
|
187
187
|
return __generator(this, function (_a) {
|
|
188
188
|
switch (_a.label) {
|
|
189
|
-
case 0: return [4 /*yield*/, this.deleteProjectRaw(
|
|
189
|
+
case 0: return [4 /*yield*/, this.deleteProjectRaw({ project: project }, initOverrides)];
|
|
190
190
|
case 1:
|
|
191
191
|
response = _a.sent();
|
|
192
192
|
return [4 /*yield*/, response.value()];
|
|
@@ -243,12 +243,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
243
243
|
* Get an integration
|
|
244
244
|
* Get integration
|
|
245
245
|
*/
|
|
246
|
-
ProjectsApi.prototype.getIntegration = function (
|
|
246
|
+
ProjectsApi.prototype.getIntegration = function (project, integration, initOverrides) {
|
|
247
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
248
248
|
var response;
|
|
249
249
|
return __generator(this, function (_a) {
|
|
250
250
|
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, this.getIntegrationRaw(
|
|
251
|
+
case 0: return [4 /*yield*/, this.getIntegrationRaw({ project: project, integration: integration }, initOverrides)];
|
|
252
252
|
case 1:
|
|
253
253
|
response = _a.sent();
|
|
254
254
|
return [4 /*yield*/, response.value()];
|
|
@@ -302,12 +302,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
302
302
|
* List all integrations installed on a project
|
|
303
303
|
* List integrations
|
|
304
304
|
*/
|
|
305
|
-
ProjectsApi.prototype.getIntegrations = function (
|
|
305
|
+
ProjectsApi.prototype.getIntegrations = function (project, initOverrides) {
|
|
306
306
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
307
|
var response;
|
|
308
308
|
return __generator(this, function (_a) {
|
|
309
309
|
switch (_a.label) {
|
|
310
|
-
case 0: return [4 /*yield*/, this.getIntegrationsRaw(
|
|
310
|
+
case 0: return [4 /*yield*/, this.getIntegrationsRaw({ project: project }, initOverrides)];
|
|
311
311
|
case 1:
|
|
312
312
|
response = _a.sent();
|
|
313
313
|
return [4 /*yield*/, response.value()];
|
|
@@ -361,12 +361,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
361
361
|
* Get a project
|
|
362
362
|
* Get project
|
|
363
363
|
*/
|
|
364
|
-
ProjectsApi.prototype.getProject = function (
|
|
364
|
+
ProjectsApi.prototype.getProject = function (project, initOverrides) {
|
|
365
365
|
return __awaiter(this, void 0, void 0, function () {
|
|
366
366
|
var response;
|
|
367
367
|
return __generator(this, function (_a) {
|
|
368
368
|
switch (_a.label) {
|
|
369
|
-
case 0: return [4 /*yield*/, this.getProjectRaw(
|
|
369
|
+
case 0: return [4 /*yield*/, this.getProjectRaw({ project: project }, initOverrides)];
|
|
370
370
|
case 1:
|
|
371
371
|
response = _a.sent();
|
|
372
372
|
return [4 /*yield*/, response.value()];
|
|
@@ -479,12 +479,74 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
479
479
|
* Install an integration on the project
|
|
480
480
|
* Install integration
|
|
481
481
|
*/
|
|
482
|
-
ProjectsApi.prototype.installIntegration = function (
|
|
482
|
+
ProjectsApi.prototype.installIntegration = function (project, integration, initOverrides) {
|
|
483
483
|
return __awaiter(this, void 0, void 0, function () {
|
|
484
484
|
var response;
|
|
485
485
|
return __generator(this, function (_a) {
|
|
486
486
|
switch (_a.label) {
|
|
487
|
-
case 0: return [4 /*yield*/, this.installIntegrationRaw(
|
|
487
|
+
case 0: return [4 /*yield*/, this.installIntegrationRaw({ project: project, integration: integration }, initOverrides)];
|
|
488
|
+
case 1:
|
|
489
|
+
response = _a.sent();
|
|
490
|
+
return [4 /*yield*/, response.value()];
|
|
491
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Install an integration template on the project
|
|
498
|
+
* Install integration template
|
|
499
|
+
*/
|
|
500
|
+
ProjectsApi.prototype.installTemplateRaw = function (requestParameters, initOverrides) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
502
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
503
|
+
return __generator(this, function (_c) {
|
|
504
|
+
switch (_c.label) {
|
|
505
|
+
case 0:
|
|
506
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
507
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
508
|
+
}
|
|
509
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
510
|
+
throw new runtime.RequiredError('template', 'Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
511
|
+
}
|
|
512
|
+
queryParameters = {};
|
|
513
|
+
headerParameters = {};
|
|
514
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
515
|
+
// oauth required
|
|
516
|
+
_a = headerParameters;
|
|
517
|
+
_b = "Authorization";
|
|
518
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
519
|
+
case 1:
|
|
520
|
+
// oauth required
|
|
521
|
+
_a[_b] = _c.sent();
|
|
522
|
+
_c.label = 2;
|
|
523
|
+
case 2:
|
|
524
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
525
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
526
|
+
}
|
|
527
|
+
return [4 /*yield*/, this.request({
|
|
528
|
+
path: "/v1/projects/{project}/templates/{template}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("template", "}"), encodeURIComponent(String(requestParameters.template))),
|
|
529
|
+
method: 'POST',
|
|
530
|
+
headers: headerParameters,
|
|
531
|
+
query: queryParameters,
|
|
532
|
+
}, initOverrides)];
|
|
533
|
+
case 3:
|
|
534
|
+
response = _c.sent();
|
|
535
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* Install an integration template on the project
|
|
542
|
+
* Install integration template
|
|
543
|
+
*/
|
|
544
|
+
ProjectsApi.prototype.installTemplate = function (project, template, initOverrides) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
546
|
+
var response;
|
|
547
|
+
return __generator(this, function (_a) {
|
|
548
|
+
switch (_a.label) {
|
|
549
|
+
case 0: return [4 /*yield*/, this.installTemplateRaw({ project: project, template: template }, initOverrides)];
|
|
488
550
|
case 1:
|
|
489
551
|
response = _a.sent();
|
|
490
552
|
return [4 /*yield*/, response.value()];
|
|
@@ -541,11 +603,11 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
541
603
|
* Uninstall a projects integration
|
|
542
604
|
* Uninstall integration
|
|
543
605
|
*/
|
|
544
|
-
ProjectsApi.prototype.uninstallIntegration = function (
|
|
606
|
+
ProjectsApi.prototype.uninstallIntegration = function (project, integration, initOverrides) {
|
|
545
607
|
return __awaiter(this, void 0, void 0, function () {
|
|
546
608
|
return __generator(this, function (_a) {
|
|
547
609
|
switch (_a.label) {
|
|
548
|
-
case 0: return [4 /*yield*/, this.uninstallIntegrationRaw(
|
|
610
|
+
case 0: return [4 /*yield*/, this.uninstallIntegrationRaw({ project: project, integration: integration }, initOverrides)];
|
|
549
611
|
case 1:
|
|
550
612
|
_a.sent();
|
|
551
613
|
return [2 /*return*/];
|
|
@@ -603,12 +665,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
603
665
|
* Update a project
|
|
604
666
|
* Update project
|
|
605
667
|
*/
|
|
606
|
-
ProjectsApi.prototype.updateProject = function (
|
|
668
|
+
ProjectsApi.prototype.updateProject = function (project, updateProjectRequest, initOverrides) {
|
|
607
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
608
670
|
var response;
|
|
609
671
|
return __generator(this, function (_a) {
|
|
610
672
|
switch (_a.label) {
|
|
611
|
-
case 0: return [4 /*yield*/, this.updateProjectRaw(
|
|
673
|
+
case 0: return [4 /*yield*/, this.updateProjectRaw({ project: project, updateProjectRequest: updateProjectRequest }, initOverrides)];
|
|
612
674
|
case 1:
|
|
613
675
|
response = _a.sent();
|
|
614
676
|
return [4 /*yield*/, response.value()];
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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/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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,31 @@
|
|
|
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.2.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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Project1
|
|
16
|
+
*/
|
|
17
|
+
export interface Project1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Project1
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Project1 interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfProject1(value: object): boolean;
|
|
29
|
+
export declare function Project1FromJSON(json: any): Project1;
|
|
30
|
+
export declare function Project1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project1;
|
|
31
|
+
export declare function Project1ToJSON(value?: Project1 | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Projects API
|
|
6
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Project1ToJSON = exports.Project1FromJSONTyped = exports.Project1FromJSON = exports.instanceOfProject1 = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the Project1 interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfProject1(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProject1 = instanceOfProject1;
|
|
26
|
+
function Project1FromJSON(json) {
|
|
27
|
+
return Project1FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.Project1FromJSON = Project1FromJSON;
|
|
30
|
+
function Project1FromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.Project1FromJSONTyped = Project1FromJSONTyped;
|
|
39
|
+
function Project1ToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value.name,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.Project1ToJSON = Project1ToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.2.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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Project2
|
|
16
|
+
*/
|
|
17
|
+
export interface Project2 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Project2
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Project2 interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfProject2(value: object): boolean;
|
|
29
|
+
export declare function Project2FromJSON(json: any): Project2;
|
|
30
|
+
export declare function Project2FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project2;
|
|
31
|
+
export declare function Project2ToJSON(value?: Project2 | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Projects API
|
|
6
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Project2ToJSON = exports.Project2FromJSONTyped = exports.Project2FromJSON = exports.instanceOfProject2 = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Project2 interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfProject2(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProject2 = instanceOfProject2;
|
|
26
|
+
function Project2FromJSON(json) {
|
|
27
|
+
return Project2FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.Project2FromJSON = Project2FromJSON;
|
|
30
|
+
function Project2FromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.Project2FromJSONTyped = Project2FromJSONTyped;
|
|
39
|
+
function Project2ToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value.name,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.Project2ToJSON = Project2ToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.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,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
120
125
|
* Create a new projects
|
|
121
126
|
* Create project
|
|
122
127
|
*/
|
|
123
|
-
async createProject(
|
|
124
|
-
const response = await this.createProjectRaw(
|
|
128
|
+
async createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
129
|
+
const response = await this.createProjectRaw({ createProjectRequest: createProjectRequest }, initOverrides);
|
|
125
130
|
return await response.value();
|
|
126
131
|
}
|
|
127
132
|
|
|
@@ -161,8 +166,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
161
166
|
* Delete a project
|
|
162
167
|
* Delete project
|
|
163
168
|
*/
|
|
164
|
-
async deleteProject(
|
|
165
|
-
const response = await this.deleteProjectRaw(
|
|
169
|
+
async deleteProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
170
|
+
const response = await this.deleteProjectRaw({ project: project }, initOverrides);
|
|
166
171
|
return await response.value();
|
|
167
172
|
}
|
|
168
173
|
|
|
@@ -206,8 +211,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
206
211
|
* Get an integration
|
|
207
212
|
* Get integration
|
|
208
213
|
*/
|
|
209
|
-
async getIntegration(
|
|
210
|
-
const response = await this.getIntegrationRaw(
|
|
214
|
+
async getIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
215
|
+
const response = await this.getIntegrationRaw({ project: project, integration: integration }, initOverrides);
|
|
211
216
|
return await response.value();
|
|
212
217
|
}
|
|
213
218
|
|
|
@@ -247,8 +252,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
247
252
|
* List all integrations installed on a project
|
|
248
253
|
* List integrations
|
|
249
254
|
*/
|
|
250
|
-
async getIntegrations(
|
|
251
|
-
const response = await this.getIntegrationsRaw(
|
|
255
|
+
async getIntegrations(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
256
|
+
const response = await this.getIntegrationsRaw({ project: project }, initOverrides);
|
|
252
257
|
return await response.value();
|
|
253
258
|
}
|
|
254
259
|
|
|
@@ -288,8 +293,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
288
293
|
* Get a project
|
|
289
294
|
* Get project
|
|
290
295
|
*/
|
|
291
|
-
async getProject(
|
|
292
|
-
const response = await this.getProjectRaw(
|
|
296
|
+
async getProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
297
|
+
const response = await this.getProjectRaw({ project: project }, initOverrides);
|
|
293
298
|
return await response.value();
|
|
294
299
|
}
|
|
295
300
|
|
|
@@ -370,8 +375,53 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
370
375
|
* Install an integration on the project
|
|
371
376
|
* Install integration
|
|
372
377
|
*/
|
|
373
|
-
async installIntegration(
|
|
374
|
-
const response = await this.installIntegrationRaw(
|
|
378
|
+
async installIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
379
|
+
const response = await this.installIntegrationRaw({ project: project, integration: integration }, initOverrides);
|
|
380
|
+
return await response.value();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Install an integration template on the project
|
|
385
|
+
* Install integration template
|
|
386
|
+
*/
|
|
387
|
+
async installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
388
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
389
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
393
|
+
throw new runtime.RequiredError('template','Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
const queryParameters: any = {};
|
|
397
|
+
|
|
398
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
399
|
+
|
|
400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
401
|
+
// oauth required
|
|
402
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
406
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const response = await this.request({
|
|
410
|
+
path: `/v1/projects/{project}/templates/{template}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"template"}}`, encodeURIComponent(String(requestParameters.template))),
|
|
411
|
+
method: 'POST',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
}, initOverrides);
|
|
415
|
+
|
|
416
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Install an integration template on the project
|
|
421
|
+
* Install integration template
|
|
422
|
+
*/
|
|
423
|
+
async installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
424
|
+
const response = await this.installTemplateRaw({ project: project, template: template }, initOverrides);
|
|
375
425
|
return await response.value();
|
|
376
426
|
}
|
|
377
427
|
|
|
@@ -415,8 +465,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
415
465
|
* Uninstall a projects integration
|
|
416
466
|
* Uninstall integration
|
|
417
467
|
*/
|
|
418
|
-
async uninstallIntegration(
|
|
419
|
-
await this.uninstallIntegrationRaw(
|
|
468
|
+
async uninstallIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
469
|
+
await this.uninstallIntegrationRaw({ project: project, integration: integration }, initOverrides);
|
|
420
470
|
}
|
|
421
471
|
|
|
422
472
|
/**
|
|
@@ -462,8 +512,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
462
512
|
* Update a project
|
|
463
513
|
* Update project
|
|
464
514
|
*/
|
|
465
|
-
async updateProject(
|
|
466
|
-
const response = await this.updateProjectRaw(
|
|
515
|
+
async updateProject(project: string, updateProjectRequest: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
516
|
+
const response = await this.updateProjectRaw({ project: project, updateProjectRequest: updateProjectRequest }, initOverrides);
|
|
467
517
|
return await response.value();
|
|
468
518
|
}
|
|
469
519
|
|
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.3.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.3.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.3.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.3.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.3.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.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,66 @@
|
|
|
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.2.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Project1
|
|
20
|
+
*/
|
|
21
|
+
export interface Project1 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Project1
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Project1 interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfProject1(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "name" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function Project1FromJSON(json: any): Project1 {
|
|
41
|
+
return Project1FromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function Project1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project1 {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function Project1ToJSON(value?: Project1 | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': value.name,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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.2.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Project2
|
|
20
|
+
*/
|
|
21
|
+
export interface Project2 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Project2
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Project2 interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfProject2(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function Project2FromJSON(json: any): Project2 {
|
|
40
|
+
return Project2FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function Project2FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project2 {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function Project2ToJSON(value?: Project2 | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': value.name,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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.3.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.3.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.3.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.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|