@teemill/projects 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +1 -1
- package/dist/apis/ProjectsApi.js +29 -9
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +7 -1
- package/dist/models/CreateProjectRequest.js +4 -1
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.d.ts +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +6 -3
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +106 -20
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateProjectRequest.ts +9 -1
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/runtime.ts +13 -3
- package/dist/apis/IntegrationsApi.d.ts +0 -72
- package/dist/apis/IntegrationsApi.js +0 -320
- package/dist/models/Project1.d.ts +0 -31
- package/dist/models/Project1.js +0 -50
- package/dist/models/Project2.d.ts +0 -31
- package/dist/models/Project2.js +0 -50
- package/src/apis/IntegrationsApi.ts +0 -225
- package/src/models/Project1.ts +0 -66
- package/src/models/Project2.ts +0 -65
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.4.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.4.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.4.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/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.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -127,7 +127,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
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({
|
|
131
|
+
createProjectRequest: createProjectRequest
|
|
132
|
+
}, initOverrides)];
|
|
131
133
|
case 1:
|
|
132
134
|
response = _a.sent();
|
|
133
135
|
return [4 /*yield*/, response.value()];
|
|
@@ -186,7 +188,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
186
188
|
var response;
|
|
187
189
|
return __generator(this, function (_a) {
|
|
188
190
|
switch (_a.label) {
|
|
189
|
-
case 0: return [4 /*yield*/, this.deleteProjectRaw({
|
|
191
|
+
case 0: return [4 /*yield*/, this.deleteProjectRaw({
|
|
192
|
+
project: project
|
|
193
|
+
}, initOverrides)];
|
|
190
194
|
case 1:
|
|
191
195
|
response = _a.sent();
|
|
192
196
|
return [4 /*yield*/, response.value()];
|
|
@@ -248,7 +252,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
248
252
|
var response;
|
|
249
253
|
return __generator(this, function (_a) {
|
|
250
254
|
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, this.getIntegrationRaw({
|
|
255
|
+
case 0: return [4 /*yield*/, this.getIntegrationRaw({
|
|
256
|
+
project: project,
|
|
257
|
+
integration: integration
|
|
258
|
+
}, initOverrides)];
|
|
252
259
|
case 1:
|
|
253
260
|
response = _a.sent();
|
|
254
261
|
return [4 /*yield*/, response.value()];
|
|
@@ -307,7 +314,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
307
314
|
var response;
|
|
308
315
|
return __generator(this, function (_a) {
|
|
309
316
|
switch (_a.label) {
|
|
310
|
-
case 0: return [4 /*yield*/, this.getIntegrationsRaw({
|
|
317
|
+
case 0: return [4 /*yield*/, this.getIntegrationsRaw({
|
|
318
|
+
project: project
|
|
319
|
+
}, initOverrides)];
|
|
311
320
|
case 1:
|
|
312
321
|
response = _a.sent();
|
|
313
322
|
return [4 /*yield*/, response.value()];
|
|
@@ -366,7 +375,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
366
375
|
var response;
|
|
367
376
|
return __generator(this, function (_a) {
|
|
368
377
|
switch (_a.label) {
|
|
369
|
-
case 0: return [4 /*yield*/, this.getProjectRaw({
|
|
378
|
+
case 0: return [4 /*yield*/, this.getProjectRaw({
|
|
379
|
+
project: project
|
|
380
|
+
}, initOverrides)];
|
|
370
381
|
case 1:
|
|
371
382
|
response = _a.sent();
|
|
372
383
|
return [4 /*yield*/, response.value()];
|
|
@@ -484,7 +495,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
484
495
|
var response;
|
|
485
496
|
return __generator(this, function (_a) {
|
|
486
497
|
switch (_a.label) {
|
|
487
|
-
case 0: return [4 /*yield*/, this.installIntegrationRaw({
|
|
498
|
+
case 0: return [4 /*yield*/, this.installIntegrationRaw({
|
|
499
|
+
project: project,
|
|
500
|
+
integration: integration
|
|
501
|
+
}, initOverrides)];
|
|
488
502
|
case 1:
|
|
489
503
|
response = _a.sent();
|
|
490
504
|
return [4 /*yield*/, response.value()];
|
|
@@ -546,7 +560,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
546
560
|
var response;
|
|
547
561
|
return __generator(this, function (_a) {
|
|
548
562
|
switch (_a.label) {
|
|
549
|
-
case 0: return [4 /*yield*/, this.installTemplateRaw({
|
|
563
|
+
case 0: return [4 /*yield*/, this.installTemplateRaw({
|
|
564
|
+
project: project,
|
|
565
|
+
template: template
|
|
566
|
+
}, initOverrides)];
|
|
550
567
|
case 1:
|
|
551
568
|
response = _a.sent();
|
|
552
569
|
return [4 /*yield*/, response.value()];
|
|
@@ -670,7 +687,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
670
687
|
var response;
|
|
671
688
|
return __generator(this, function (_a) {
|
|
672
689
|
switch (_a.label) {
|
|
673
|
-
case 0: return [4 /*yield*/, this.updateProjectRaw({
|
|
690
|
+
case 0: return [4 /*yield*/, this.updateProjectRaw({
|
|
691
|
+
project: project,
|
|
692
|
+
updateProjectRequest: updateProjectRequest
|
|
693
|
+
}, initOverrides)];
|
|
674
694
|
case 1:
|
|
675
695
|
response = _a.sent();
|
|
676
696
|
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.4.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.4.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.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,12 @@ export interface CreateProjectRequest {
|
|
|
21
21
|
* @memberof CreateProjectRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProjectRequest
|
|
28
|
+
*/
|
|
29
|
+
template?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the CreateProjectRequest 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.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateProjectRequestToJSON = exports.CreateProjectRequestFromJSONTyped = exports.CreateProjectRequestFromJSON = exports.instanceOfCreateProjectRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CreateProjectRequest interface.
|
|
19
20
|
*/
|
|
@@ -33,6 +34,7 @@ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
36
|
'name': json['name'],
|
|
37
|
+
'template': !(0, runtime_1.exists)(json, 'template') ? undefined : json['template'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
|
|
@@ -45,6 +47,7 @@ function CreateProjectRequestToJSON(value) {
|
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
49
|
'name': value.name,
|
|
50
|
+
'template': value.template,
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
|
|
@@ -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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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,13 +2,17 @@
|
|
|
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.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
export type OptionalProperties<T> = {
|
|
13
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
14
|
+
}[keyof T];
|
|
15
|
+
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
12
16
|
export declare const BASE_PATH: string;
|
|
13
17
|
export interface ConfigurationParameters {
|
|
14
18
|
basePath?: string;
|
|
@@ -46,6 +50,7 @@ export declare class BaseAPI {
|
|
|
46
50
|
private static readonly jsonRegex;
|
|
47
51
|
private middleware;
|
|
48
52
|
constructor(configuration?: Configuration);
|
|
53
|
+
isResponseError(error: any): error is ResponseError;
|
|
49
54
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
55
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
56
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
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.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
266
266
|
}); };
|
|
267
267
|
this.middleware = configuration.middleware;
|
|
268
268
|
}
|
|
269
|
+
BaseAPI.prototype.isResponseError = function (error) {
|
|
270
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
271
|
+
};
|
|
269
272
|
BaseAPI.prototype.withMiddleware = function () {
|
|
270
273
|
var _a;
|
|
271
274
|
var middlewares = [];
|
|
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
|
|
|
456
459
|
var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
|
|
457
460
|
if (value instanceof Array) {
|
|
458
461
|
var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
|
|
459
|
-
.join("&".concat(encodeURIComponent(fullKey), "="));
|
|
460
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
|
|
462
|
+
.join("&".concat(encodeURIComponent(fullKey), "[]="));
|
|
463
|
+
return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
|
|
461
464
|
}
|
|
462
465
|
if (value instanceof Set) {
|
|
463
466
|
var valueAsArray = Array.from(value);
|
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.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -125,8 +125,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
125
125
|
* Create a new projects
|
|
126
126
|
* Create project
|
|
127
127
|
*/
|
|
128
|
-
async createProject(
|
|
129
|
-
|
|
128
|
+
async createProject(
|
|
129
|
+
createProjectRequest: CreateProjectRequest,
|
|
130
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
131
|
+
): Promise<Project> {
|
|
132
|
+
const response = await this.createProjectRaw(
|
|
133
|
+
{
|
|
134
|
+
createProjectRequest: createProjectRequest
|
|
135
|
+
},
|
|
136
|
+
initOverrides
|
|
137
|
+
);
|
|
138
|
+
|
|
130
139
|
return await response.value();
|
|
131
140
|
}
|
|
132
141
|
|
|
@@ -166,8 +175,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
166
175
|
* Delete a project
|
|
167
176
|
* Delete project
|
|
168
177
|
*/
|
|
169
|
-
async deleteProject(
|
|
170
|
-
|
|
178
|
+
async deleteProject(
|
|
179
|
+
project: string,
|
|
180
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
181
|
+
): Promise<Project> {
|
|
182
|
+
const response = await this.deleteProjectRaw(
|
|
183
|
+
{
|
|
184
|
+
project: project
|
|
185
|
+
},
|
|
186
|
+
initOverrides
|
|
187
|
+
);
|
|
188
|
+
|
|
171
189
|
return await response.value();
|
|
172
190
|
}
|
|
173
191
|
|
|
@@ -211,8 +229,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
211
229
|
* Get an integration
|
|
212
230
|
* Get integration
|
|
213
231
|
*/
|
|
214
|
-
async getIntegration(
|
|
215
|
-
|
|
232
|
+
async getIntegration(
|
|
233
|
+
project: string, integration: string,
|
|
234
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
235
|
+
): Promise<Integration> {
|
|
236
|
+
const response = await this.getIntegrationRaw(
|
|
237
|
+
{
|
|
238
|
+
project: project,
|
|
239
|
+
integration: integration
|
|
240
|
+
},
|
|
241
|
+
initOverrides
|
|
242
|
+
);
|
|
243
|
+
|
|
216
244
|
return await response.value();
|
|
217
245
|
}
|
|
218
246
|
|
|
@@ -252,8 +280,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
252
280
|
* List all integrations installed on a project
|
|
253
281
|
* List integrations
|
|
254
282
|
*/
|
|
255
|
-
async getIntegrations(
|
|
256
|
-
|
|
283
|
+
async getIntegrations(
|
|
284
|
+
project: string,
|
|
285
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
286
|
+
): Promise<IntegrationsResponse> {
|
|
287
|
+
const response = await this.getIntegrationsRaw(
|
|
288
|
+
{
|
|
289
|
+
project: project
|
|
290
|
+
},
|
|
291
|
+
initOverrides
|
|
292
|
+
);
|
|
293
|
+
|
|
257
294
|
return await response.value();
|
|
258
295
|
}
|
|
259
296
|
|
|
@@ -293,8 +330,17 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
293
330
|
* Get a project
|
|
294
331
|
* Get project
|
|
295
332
|
*/
|
|
296
|
-
async getProject(
|
|
297
|
-
|
|
333
|
+
async getProject(
|
|
334
|
+
project: string,
|
|
335
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
336
|
+
): Promise<Project> {
|
|
337
|
+
const response = await this.getProjectRaw(
|
|
338
|
+
{
|
|
339
|
+
project: project
|
|
340
|
+
},
|
|
341
|
+
initOverrides
|
|
342
|
+
);
|
|
343
|
+
|
|
298
344
|
return await response.value();
|
|
299
345
|
}
|
|
300
346
|
|
|
@@ -330,8 +376,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
330
376
|
* List all projects available
|
|
331
377
|
* List projects
|
|
332
378
|
*/
|
|
333
|
-
async getProjects(
|
|
334
|
-
|
|
379
|
+
async getProjects(
|
|
380
|
+
|
|
381
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
382
|
+
): Promise<ProjectsResponse> {
|
|
383
|
+
const response = await this.getProjectsRaw(
|
|
384
|
+
|
|
385
|
+
initOverrides
|
|
386
|
+
);
|
|
387
|
+
|
|
335
388
|
return await response.value();
|
|
336
389
|
}
|
|
337
390
|
|
|
@@ -375,8 +428,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
375
428
|
* Install an integration on the project
|
|
376
429
|
* Install integration
|
|
377
430
|
*/
|
|
378
|
-
async installIntegration(
|
|
379
|
-
|
|
431
|
+
async installIntegration(
|
|
432
|
+
project: string, integration: string,
|
|
433
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
434
|
+
): Promise<Integration> {
|
|
435
|
+
const response = await this.installIntegrationRaw(
|
|
436
|
+
{
|
|
437
|
+
project: project,
|
|
438
|
+
integration: integration
|
|
439
|
+
},
|
|
440
|
+
initOverrides
|
|
441
|
+
);
|
|
442
|
+
|
|
380
443
|
return await response.value();
|
|
381
444
|
}
|
|
382
445
|
|
|
@@ -420,8 +483,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
420
483
|
* Install an integration template on the project
|
|
421
484
|
* Install integration template
|
|
422
485
|
*/
|
|
423
|
-
async installTemplate(
|
|
424
|
-
|
|
486
|
+
async installTemplate(
|
|
487
|
+
project: string, template: string,
|
|
488
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
489
|
+
): Promise<IntegrationsResponse> {
|
|
490
|
+
const response = await this.installTemplateRaw(
|
|
491
|
+
{
|
|
492
|
+
project: project,
|
|
493
|
+
template: template
|
|
494
|
+
},
|
|
495
|
+
initOverrides
|
|
496
|
+
);
|
|
497
|
+
|
|
425
498
|
return await response.value();
|
|
426
499
|
}
|
|
427
500
|
|
|
@@ -465,7 +538,10 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
465
538
|
* Uninstall a projects integration
|
|
466
539
|
* Uninstall integration
|
|
467
540
|
*/
|
|
468
|
-
async uninstallIntegration(
|
|
541
|
+
async uninstallIntegration(
|
|
542
|
+
project: string, integration: string,
|
|
543
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
544
|
+
): Promise<void> {
|
|
469
545
|
await this.uninstallIntegrationRaw({ project: project, integration: integration }, initOverrides);
|
|
470
546
|
}
|
|
471
547
|
|
|
@@ -512,8 +588,18 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
512
588
|
* Update a project
|
|
513
589
|
* Update project
|
|
514
590
|
*/
|
|
515
|
-
async updateProject(
|
|
516
|
-
|
|
591
|
+
async updateProject(
|
|
592
|
+
project: string, updateProjectRequest: UpdateProjectRequest,
|
|
593
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
594
|
+
): Promise<Project> {
|
|
595
|
+
const response = await this.updateProjectRaw(
|
|
596
|
+
{
|
|
597
|
+
project: project,
|
|
598
|
+
updateProjectRequest: updateProjectRequest
|
|
599
|
+
},
|
|
600
|
+
initOverrides
|
|
601
|
+
);
|
|
602
|
+
|
|
517
603
|
return await response.value();
|
|
518
604
|
}
|
|
519
605
|
|
package/src/models/ApiError.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,6 +25,12 @@ export interface CreateProjectRequest {
|
|
|
25
25
|
* @memberof CreateProjectRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateProjectRequest
|
|
32
|
+
*/
|
|
33
|
+
template?: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -48,6 +54,7 @@ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
48
54
|
return {
|
|
49
55
|
|
|
50
56
|
'name': json['name'],
|
|
57
|
+
'template': !exists(json, 'template') ? undefined : json['template'],
|
|
51
58
|
};
|
|
52
59
|
}
|
|
53
60
|
|
|
@@ -61,6 +68,7 @@ export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null):
|
|
|
61
68
|
return {
|
|
62
69
|
|
|
63
70
|
'name': value.name,
|
|
71
|
+
'template': value.template,
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|