@teemill/projects 1.0.3 → 1.1.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/IntegrationsApi.d.ts +24 -10
- package/dist/apis/IntegrationsApi.js +107 -35
- package/dist/apis/ProjectsApi.d.ts +1 -1
- package/dist/apis/ProjectsApi.js +56 -36
- 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 +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/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/src/apis/IntegrationsApi.ts +84 -23
- package/src/apis/ProjectsApi.ts +31 -11
- 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 +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/runtime.ts +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.0
|
|
1
|
+
## @teemill/projects@1.1.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.0
|
|
39
|
+
npm install @teemill/projects@1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,16 +11,20 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { Integration, IntegrationsResponse } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetIntegrationRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
integrationId: string;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface GetIntegrationsRequest {
|
|
19
19
|
projectId: string;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface InstallIntegrationRequest {
|
|
22
22
|
projectId: string;
|
|
23
23
|
}
|
|
24
|
+
export interface UninstallIntegrationRequest {
|
|
25
|
+
projectId: string;
|
|
26
|
+
integrationId: string;
|
|
27
|
+
}
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
26
30
|
*/
|
|
@@ -29,30 +33,40 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
29
33
|
* Get an integration
|
|
30
34
|
* Get integration
|
|
31
35
|
*/
|
|
32
|
-
|
|
36
|
+
getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
33
37
|
/**
|
|
34
38
|
* Get an integration
|
|
35
39
|
* Get integration
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
38
42
|
/**
|
|
39
43
|
* List all integrations installed on a project
|
|
40
44
|
* List integrations
|
|
41
45
|
*/
|
|
42
|
-
|
|
46
|
+
getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
43
47
|
/**
|
|
44
48
|
* List all integrations installed on a project
|
|
45
49
|
* List integrations
|
|
46
50
|
*/
|
|
47
|
-
|
|
51
|
+
getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
48
52
|
/**
|
|
49
53
|
* Install an integration on the project
|
|
50
54
|
* Install integration
|
|
51
55
|
*/
|
|
52
|
-
|
|
56
|
+
installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
|
|
53
57
|
/**
|
|
54
58
|
* Install an integration on the project
|
|
55
59
|
* Install integration
|
|
56
60
|
*/
|
|
57
|
-
|
|
61
|
+
installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
62
|
+
/**
|
|
63
|
+
* Uninstall a projects integration
|
|
64
|
+
* Uninstall integration
|
|
65
|
+
*/
|
|
66
|
+
uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
67
|
+
/**
|
|
68
|
+
* Uninstall a projects integration
|
|
69
|
+
* Uninstall integration
|
|
70
|
+
*/
|
|
71
|
+
uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
58
72
|
}
|
|
@@ -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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -79,17 +79,17 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
79
79
|
* Get an integration
|
|
80
80
|
* Get integration
|
|
81
81
|
*/
|
|
82
|
-
IntegrationsApi.prototype.
|
|
82
|
+
IntegrationsApi.prototype.getIntegrationRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
84
|
var queryParameters, headerParameters, _a, _b, response;
|
|
85
85
|
return __generator(this, function (_c) {
|
|
86
86
|
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
89
|
-
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling
|
|
89
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
90
90
|
}
|
|
91
91
|
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
92
|
-
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling
|
|
92
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
93
93
|
}
|
|
94
94
|
queryParameters = {};
|
|
95
95
|
headerParameters = {};
|
|
@@ -97,17 +97,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
97
97
|
// oauth required
|
|
98
98
|
_a = headerParameters;
|
|
99
99
|
_b = "Authorization";
|
|
100
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
100
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
101
101
|
case 1:
|
|
102
102
|
// oauth required
|
|
103
103
|
_a[_b] = _c.sent();
|
|
104
104
|
_c.label = 2;
|
|
105
|
-
case 2:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
case 2:
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
108
|
+
}
|
|
109
|
+
return [4 /*yield*/, this.request({
|
|
110
|
+
path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides)];
|
|
111
115
|
case 3:
|
|
112
116
|
response = _c.sent();
|
|
113
117
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
@@ -119,12 +123,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
119
123
|
* Get an integration
|
|
120
124
|
* Get integration
|
|
121
125
|
*/
|
|
122
|
-
IntegrationsApi.prototype.
|
|
126
|
+
IntegrationsApi.prototype.getIntegration = function (requestParameters, initOverrides) {
|
|
123
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
124
128
|
var response;
|
|
125
129
|
return __generator(this, function (_a) {
|
|
126
130
|
switch (_a.label) {
|
|
127
|
-
case 0: return [4 /*yield*/, this.
|
|
131
|
+
case 0: return [4 /*yield*/, this.getIntegrationRaw(requestParameters, initOverrides)];
|
|
128
132
|
case 1:
|
|
129
133
|
response = _a.sent();
|
|
130
134
|
return [4 /*yield*/, response.value()];
|
|
@@ -137,14 +141,14 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
137
141
|
* List all integrations installed on a project
|
|
138
142
|
* List integrations
|
|
139
143
|
*/
|
|
140
|
-
IntegrationsApi.prototype.
|
|
144
|
+
IntegrationsApi.prototype.getIntegrationsRaw = function (requestParameters, initOverrides) {
|
|
141
145
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
146
|
var queryParameters, headerParameters, _a, _b, response;
|
|
143
147
|
return __generator(this, function (_c) {
|
|
144
148
|
switch (_c.label) {
|
|
145
149
|
case 0:
|
|
146
150
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
147
|
-
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling
|
|
151
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
148
152
|
}
|
|
149
153
|
queryParameters = {};
|
|
150
154
|
headerParameters = {};
|
|
@@ -152,17 +156,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
152
156
|
// oauth required
|
|
153
157
|
_a = headerParameters;
|
|
154
158
|
_b = "Authorization";
|
|
155
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
159
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
156
160
|
case 1:
|
|
157
161
|
// oauth required
|
|
158
162
|
_a[_b] = _c.sent();
|
|
159
163
|
_c.label = 2;
|
|
160
|
-
case 2:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
case 2:
|
|
165
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
166
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
167
|
+
}
|
|
168
|
+
return [4 /*yield*/, this.request({
|
|
169
|
+
path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides)];
|
|
166
174
|
case 3:
|
|
167
175
|
response = _c.sent();
|
|
168
176
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
@@ -174,12 +182,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
174
182
|
* List all integrations installed on a project
|
|
175
183
|
* List integrations
|
|
176
184
|
*/
|
|
177
|
-
IntegrationsApi.prototype.
|
|
185
|
+
IntegrationsApi.prototype.getIntegrations = function (requestParameters, initOverrides) {
|
|
178
186
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
187
|
var response;
|
|
180
188
|
return __generator(this, function (_a) {
|
|
181
189
|
switch (_a.label) {
|
|
182
|
-
case 0: return [4 /*yield*/, this.
|
|
190
|
+
case 0: return [4 /*yield*/, this.getIntegrationsRaw(requestParameters, initOverrides)];
|
|
183
191
|
case 1:
|
|
184
192
|
response = _a.sent();
|
|
185
193
|
return [4 /*yield*/, response.value()];
|
|
@@ -192,14 +200,14 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
192
200
|
* Install an integration on the project
|
|
193
201
|
* Install integration
|
|
194
202
|
*/
|
|
195
|
-
IntegrationsApi.prototype.
|
|
203
|
+
IntegrationsApi.prototype.installIntegrationRaw = function (requestParameters, initOverrides) {
|
|
196
204
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
205
|
var queryParameters, headerParameters, _a, _b, response;
|
|
198
206
|
return __generator(this, function (_c) {
|
|
199
207
|
switch (_c.label) {
|
|
200
208
|
case 0:
|
|
201
209
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
202
|
-
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling
|
|
210
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
203
211
|
}
|
|
204
212
|
queryParameters = {};
|
|
205
213
|
headerParameters = {};
|
|
@@ -207,17 +215,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
207
215
|
// oauth required
|
|
208
216
|
_a = headerParameters;
|
|
209
217
|
_b = "Authorization";
|
|
210
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
218
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
211
219
|
case 1:
|
|
212
220
|
// oauth required
|
|
213
221
|
_a[_b] = _c.sent();
|
|
214
222
|
_c.label = 2;
|
|
215
|
-
case 2:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
223
|
+
case 2:
|
|
224
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
226
|
+
}
|
|
227
|
+
return [4 /*yield*/, this.request({
|
|
228
|
+
path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
229
|
+
method: 'POST',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
}, initOverrides)];
|
|
221
233
|
case 3:
|
|
222
234
|
response = _c.sent();
|
|
223
235
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
@@ -229,12 +241,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
229
241
|
* Install an integration on the project
|
|
230
242
|
* Install integration
|
|
231
243
|
*/
|
|
232
|
-
IntegrationsApi.prototype.
|
|
244
|
+
IntegrationsApi.prototype.installIntegration = function (requestParameters, initOverrides) {
|
|
233
245
|
return __awaiter(this, void 0, void 0, function () {
|
|
234
246
|
var response;
|
|
235
247
|
return __generator(this, function (_a) {
|
|
236
248
|
switch (_a.label) {
|
|
237
|
-
case 0: return [4 /*yield*/, this.
|
|
249
|
+
case 0: return [4 /*yield*/, this.installIntegrationRaw(requestParameters, initOverrides)];
|
|
238
250
|
case 1:
|
|
239
251
|
response = _a.sent();
|
|
240
252
|
return [4 /*yield*/, response.value()];
|
|
@@ -243,6 +255,66 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
243
255
|
});
|
|
244
256
|
});
|
|
245
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* Uninstall a projects integration
|
|
260
|
+
* Uninstall integration
|
|
261
|
+
*/
|
|
262
|
+
IntegrationsApi.prototype.uninstallIntegrationRaw = function (requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
265
|
+
return __generator(this, function (_c) {
|
|
266
|
+
switch (_c.label) {
|
|
267
|
+
case 0:
|
|
268
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
269
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
270
|
+
}
|
|
271
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
272
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
273
|
+
}
|
|
274
|
+
queryParameters = {};
|
|
275
|
+
headerParameters = {};
|
|
276
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
277
|
+
// oauth required
|
|
278
|
+
_a = headerParameters;
|
|
279
|
+
_b = "Authorization";
|
|
280
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
281
|
+
case 1:
|
|
282
|
+
// oauth required
|
|
283
|
+
_a[_b] = _c.sent();
|
|
284
|
+
_c.label = 2;
|
|
285
|
+
case 2:
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
288
|
+
}
|
|
289
|
+
return [4 /*yield*/, this.request({
|
|
290
|
+
path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
|
|
291
|
+
method: 'DELETE',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
}, initOverrides)];
|
|
295
|
+
case 3:
|
|
296
|
+
response = _c.sent();
|
|
297
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Uninstall a projects integration
|
|
304
|
+
* Uninstall integration
|
|
305
|
+
*/
|
|
306
|
+
IntegrationsApi.prototype.uninstallIntegration = function (requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
+
return __generator(this, function (_a) {
|
|
309
|
+
switch (_a.label) {
|
|
310
|
+
case 0: return [4 /*yield*/, this.uninstallIntegrationRaw(requestParameters, initOverrides)];
|
|
311
|
+
case 1:
|
|
312
|
+
_a.sent();
|
|
313
|
+
return [2 /*return*/];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
};
|
|
246
318
|
return IntegrationsApi;
|
|
247
319
|
}(runtime.BaseAPI));
|
|
248
320
|
exports.IntegrationsApi = IntegrationsApi;
|
|
@@ -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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,17 +91,21 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
91
91
|
// oauth required
|
|
92
92
|
_a = headerParameters;
|
|
93
93
|
_b = "Authorization";
|
|
94
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
94
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
95
95
|
case 1:
|
|
96
96
|
// oauth required
|
|
97
97
|
_a[_b] = _c.sent();
|
|
98
98
|
_c.label = 2;
|
|
99
|
-
case 2:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
case 2:
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
102
|
+
}
|
|
103
|
+
return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/v1/projects",
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides)];
|
|
105
109
|
case 3:
|
|
106
110
|
response = _c.sent();
|
|
107
111
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
@@ -146,17 +150,21 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
146
150
|
// oauth required
|
|
147
151
|
_a = headerParameters;
|
|
148
152
|
_b = "Authorization";
|
|
149
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
153
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
150
154
|
case 1:
|
|
151
155
|
// oauth required
|
|
152
156
|
_a[_b] = _c.sent();
|
|
153
157
|
_c.label = 2;
|
|
154
|
-
case 2:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
case 2:
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
161
|
+
}
|
|
162
|
+
return [4 /*yield*/, this.request({
|
|
163
|
+
path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
164
|
+
method: 'DELETE',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides)];
|
|
160
168
|
case 3:
|
|
161
169
|
response = _c.sent();
|
|
162
170
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
@@ -201,17 +209,21 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
201
209
|
// oauth required
|
|
202
210
|
_a = headerParameters;
|
|
203
211
|
_b = "Authorization";
|
|
204
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
212
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
205
213
|
case 1:
|
|
206
214
|
// oauth required
|
|
207
215
|
_a[_b] = _c.sent();
|
|
208
216
|
_c.label = 2;
|
|
209
|
-
case 2:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
case 2:
|
|
218
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
219
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
220
|
+
}
|
|
221
|
+
return [4 /*yield*/, this.request({
|
|
222
|
+
path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
223
|
+
method: 'GET',
|
|
224
|
+
headers: headerParameters,
|
|
225
|
+
query: queryParameters,
|
|
226
|
+
}, initOverrides)];
|
|
215
227
|
case 3:
|
|
216
228
|
response = _c.sent();
|
|
217
229
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
@@ -253,17 +265,21 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
253
265
|
// oauth required
|
|
254
266
|
_a = headerParameters;
|
|
255
267
|
_b = "Authorization";
|
|
256
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
268
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
257
269
|
case 1:
|
|
258
270
|
// oauth required
|
|
259
271
|
_a[_b] = _c.sent();
|
|
260
272
|
_c.label = 2;
|
|
261
|
-
case 2:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
273
|
+
case 2:
|
|
274
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
275
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
276
|
+
}
|
|
277
|
+
return [4 /*yield*/, this.request({
|
|
278
|
+
path: "/v1/projects",
|
|
279
|
+
method: 'GET',
|
|
280
|
+
headers: headerParameters,
|
|
281
|
+
query: queryParameters,
|
|
282
|
+
}, initOverrides)];
|
|
267
283
|
case 3:
|
|
268
284
|
response = _c.sent();
|
|
269
285
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
|
|
@@ -308,17 +324,21 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
308
324
|
// oauth required
|
|
309
325
|
_a = headerParameters;
|
|
310
326
|
_b = "Authorization";
|
|
311
|
-
return [4 /*yield*/, this.configuration.accessToken("
|
|
327
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
312
328
|
case 1:
|
|
313
329
|
// oauth required
|
|
314
330
|
_a[_b] = _c.sent();
|
|
315
331
|
_c.label = 2;
|
|
316
|
-
case 2:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
332
|
+
case 2:
|
|
333
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
334
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
335
|
+
}
|
|
336
|
+
return [4 /*yield*/, this.request({
|
|
337
|
+
path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
338
|
+
method: 'PATCH',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides)];
|
|
322
342
|
case 3:
|
|
323
343
|
response = _c.sent();
|
|
324
344
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
@@ -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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
};
|
|
77
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
78
|
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
79
|
-
exports.BASE_PATH = "https://localhost:8080
|
|
79
|
+
exports.BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
80
80
|
var Configuration = /** @class */ (function () {
|
|
81
81
|
function Configuration(configuration) {
|
|
82
82
|
if (configuration === void 0) { configuration = {}; }
|
package/package.json
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,19 +28,24 @@ import {
|
|
|
28
28
|
IntegrationsResponseToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface GetIntegrationRequest {
|
|
32
32
|
projectId: string;
|
|
33
33
|
integrationId: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface
|
|
36
|
+
export interface GetIntegrationsRequest {
|
|
37
37
|
projectId: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export interface
|
|
40
|
+
export interface InstallIntegrationRequest {
|
|
41
41
|
projectId: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
export interface UninstallIntegrationRequest {
|
|
45
|
+
projectId: string;
|
|
46
|
+
integrationId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
*
|
|
46
51
|
*/
|
|
@@ -50,13 +55,13 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
50
55
|
* Get an integration
|
|
51
56
|
* Get integration
|
|
52
57
|
*/
|
|
53
|
-
async
|
|
58
|
+
async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
54
59
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
55
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
60
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
59
|
-
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling
|
|
64
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
const queryParameters: any = {};
|
|
@@ -65,11 +70,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
65
70
|
|
|
66
71
|
if (this.configuration && this.configuration.accessToken) {
|
|
67
72
|
// oauth required
|
|
68
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
73
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
77
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
const response = await this.request({
|
|
72
|
-
path: `/
|
|
81
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
73
82
|
method: 'GET',
|
|
74
83
|
headers: headerParameters,
|
|
75
84
|
query: queryParameters,
|
|
@@ -82,8 +91,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
82
91
|
* Get an integration
|
|
83
92
|
* Get integration
|
|
84
93
|
*/
|
|
85
|
-
async
|
|
86
|
-
const response = await this.
|
|
94
|
+
async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
95
|
+
const response = await this.getIntegrationRaw(requestParameters, initOverrides);
|
|
87
96
|
return await response.value();
|
|
88
97
|
}
|
|
89
98
|
|
|
@@ -91,9 +100,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
91
100
|
* List all integrations installed on a project
|
|
92
101
|
* List integrations
|
|
93
102
|
*/
|
|
94
|
-
async
|
|
103
|
+
async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
95
104
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
96
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
105
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
const queryParameters: any = {};
|
|
@@ -102,11 +111,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
102
111
|
|
|
103
112
|
if (this.configuration && this.configuration.accessToken) {
|
|
104
113
|
// oauth required
|
|
105
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
114
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
118
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
106
119
|
}
|
|
107
120
|
|
|
108
121
|
const response = await this.request({
|
|
109
|
-
path: `/
|
|
122
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
110
123
|
method: 'GET',
|
|
111
124
|
headers: headerParameters,
|
|
112
125
|
query: queryParameters,
|
|
@@ -119,8 +132,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
119
132
|
* List all integrations installed on a project
|
|
120
133
|
* List integrations
|
|
121
134
|
*/
|
|
122
|
-
async
|
|
123
|
-
const response = await this.
|
|
135
|
+
async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
136
|
+
const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
|
|
124
137
|
return await response.value();
|
|
125
138
|
}
|
|
126
139
|
|
|
@@ -128,9 +141,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
128
141
|
* Install an integration on the project
|
|
129
142
|
* Install integration
|
|
130
143
|
*/
|
|
131
|
-
async
|
|
144
|
+
async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
132
145
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
133
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
146
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
134
147
|
}
|
|
135
148
|
|
|
136
149
|
const queryParameters: any = {};
|
|
@@ -139,11 +152,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
139
152
|
|
|
140
153
|
if (this.configuration && this.configuration.accessToken) {
|
|
141
154
|
// oauth required
|
|
142
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
155
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
143
160
|
}
|
|
144
161
|
|
|
145
162
|
const response = await this.request({
|
|
146
|
-
path: `/
|
|
163
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
147
164
|
method: 'POST',
|
|
148
165
|
headers: headerParameters,
|
|
149
166
|
query: queryParameters,
|
|
@@ -156,9 +173,53 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
156
173
|
* Install an integration on the project
|
|
157
174
|
* Install integration
|
|
158
175
|
*/
|
|
159
|
-
async
|
|
160
|
-
const response = await this.
|
|
176
|
+
async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
177
|
+
const response = await this.installIntegrationRaw(requestParameters, initOverrides);
|
|
161
178
|
return await response.value();
|
|
162
179
|
}
|
|
163
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Uninstall a projects integration
|
|
183
|
+
* Uninstall integration
|
|
184
|
+
*/
|
|
185
|
+
async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
186
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
187
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
191
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const queryParameters: any = {};
|
|
195
|
+
|
|
196
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
+
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
// oauth required
|
|
200
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
204
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const response = await this.request({
|
|
208
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
209
|
+
method: 'DELETE',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
|
|
214
|
+
return new runtime.VoidApiResponse(response);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Uninstall a projects integration
|
|
219
|
+
* Uninstall integration
|
|
220
|
+
*/
|
|
221
|
+
async uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
222
|
+
await this.uninstallIntegrationRaw(requestParameters, initOverrides);
|
|
223
|
+
}
|
|
224
|
+
|
|
164
225
|
}
|
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -56,11 +56,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
56
56
|
|
|
57
57
|
if (this.configuration && this.configuration.accessToken) {
|
|
58
58
|
// oauth required
|
|
59
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
59
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
const response = await this.request({
|
|
63
|
-
path: `/
|
|
67
|
+
path: `/v1/projects`,
|
|
64
68
|
method: 'POST',
|
|
65
69
|
headers: headerParameters,
|
|
66
70
|
query: queryParameters,
|
|
@@ -93,11 +97,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
93
97
|
|
|
94
98
|
if (this.configuration && this.configuration.accessToken) {
|
|
95
99
|
// oauth required
|
|
96
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
100
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
97
105
|
}
|
|
98
106
|
|
|
99
107
|
const response = await this.request({
|
|
100
|
-
path: `/
|
|
108
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
101
109
|
method: 'DELETE',
|
|
102
110
|
headers: headerParameters,
|
|
103
111
|
query: queryParameters,
|
|
@@ -130,11 +138,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
130
138
|
|
|
131
139
|
if (this.configuration && this.configuration.accessToken) {
|
|
132
140
|
// oauth required
|
|
133
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
141
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
134
146
|
}
|
|
135
147
|
|
|
136
148
|
const response = await this.request({
|
|
137
|
-
path: `/
|
|
149
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
138
150
|
method: 'GET',
|
|
139
151
|
headers: headerParameters,
|
|
140
152
|
query: queryParameters,
|
|
@@ -163,11 +175,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
163
175
|
|
|
164
176
|
if (this.configuration && this.configuration.accessToken) {
|
|
165
177
|
// oauth required
|
|
166
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
178
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
182
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
167
183
|
}
|
|
168
184
|
|
|
169
185
|
const response = await this.request({
|
|
170
|
-
path: `/
|
|
186
|
+
path: `/v1/projects`,
|
|
171
187
|
method: 'GET',
|
|
172
188
|
headers: headerParameters,
|
|
173
189
|
query: queryParameters,
|
|
@@ -200,11 +216,15 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
200
216
|
|
|
201
217
|
if (this.configuration && this.configuration.accessToken) {
|
|
202
218
|
// oauth required
|
|
203
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("
|
|
219
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
223
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
204
224
|
}
|
|
205
225
|
|
|
206
226
|
const response = await this.request({
|
|
207
|
-
path: `/
|
|
227
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
208
228
|
method: 'PATCH',
|
|
209
229
|
headers: headerParameters,
|
|
210
230
|
query: queryParameters,
|
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export const BASE_PATH = "https://localhost:8080
|
|
16
|
+
export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
17
17
|
|
|
18
18
|
export interface ConfigurationParameters {
|
|
19
19
|
basePath?: string; // override base path
|