@teemill/projects 1.0.4 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.0.4
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.4 --save
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.4
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 GetProjectIntegrationRequest {
14
+ export interface GetIntegrationRequest {
15
15
  projectId: string;
16
16
  integrationId: string;
17
17
  }
18
- export interface GetProjectIntegrationsRequest {
18
+ export interface GetIntegrationsRequest {
19
19
  projectId: string;
20
20
  }
21
- export interface InstallProjectIntegrationRequest {
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
- getProjectIntegrationRaw(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
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
- getProjectIntegration(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
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
- getProjectIntegrationsRaw(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
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
- getProjectIntegrations(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
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
- installProjectIntegrationRaw(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
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
- installProjectIntegration(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
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.4
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.getProjectIntegrationRaw = function (requestParameters, initOverrides) {
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 getProjectIntegration.');
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 getProjectIntegration.');
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 = {};
@@ -107,7 +107,7 @@ var IntegrationsApi = /** @class */ (function (_super) {
107
107
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
108
108
  }
109
109
  return [4 /*yield*/, this.request({
110
- path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
110
+ path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
111
111
  method: 'GET',
112
112
  headers: headerParameters,
113
113
  query: queryParameters,
@@ -123,12 +123,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
123
123
  * Get an integration
124
124
  * Get integration
125
125
  */
126
- IntegrationsApi.prototype.getProjectIntegration = function (requestParameters, initOverrides) {
126
+ IntegrationsApi.prototype.getIntegration = function (requestParameters, initOverrides) {
127
127
  return __awaiter(this, void 0, void 0, function () {
128
128
  var response;
129
129
  return __generator(this, function (_a) {
130
130
  switch (_a.label) {
131
- case 0: return [4 /*yield*/, this.getProjectIntegrationRaw(requestParameters, initOverrides)];
131
+ case 0: return [4 /*yield*/, this.getIntegrationRaw(requestParameters, initOverrides)];
132
132
  case 1:
133
133
  response = _a.sent();
134
134
  return [4 /*yield*/, response.value()];
@@ -141,14 +141,14 @@ var IntegrationsApi = /** @class */ (function (_super) {
141
141
  * List all integrations installed on a project
142
142
  * List integrations
143
143
  */
144
- IntegrationsApi.prototype.getProjectIntegrationsRaw = function (requestParameters, initOverrides) {
144
+ IntegrationsApi.prototype.getIntegrationsRaw = function (requestParameters, initOverrides) {
145
145
  return __awaiter(this, void 0, void 0, function () {
146
146
  var queryParameters, headerParameters, _a, _b, response;
147
147
  return __generator(this, function (_c) {
148
148
  switch (_c.label) {
149
149
  case 0:
150
150
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
151
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegrations.');
151
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
152
152
  }
153
153
  queryParameters = {};
154
154
  headerParameters = {};
@@ -166,7 +166,7 @@ var IntegrationsApi = /** @class */ (function (_super) {
166
166
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
167
167
  }
168
168
  return [4 /*yield*/, this.request({
169
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
169
+ path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
170
170
  method: 'GET',
171
171
  headers: headerParameters,
172
172
  query: queryParameters,
@@ -182,12 +182,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
182
182
  * List all integrations installed on a project
183
183
  * List integrations
184
184
  */
185
- IntegrationsApi.prototype.getProjectIntegrations = function (requestParameters, initOverrides) {
185
+ IntegrationsApi.prototype.getIntegrations = function (requestParameters, initOverrides) {
186
186
  return __awaiter(this, void 0, void 0, function () {
187
187
  var response;
188
188
  return __generator(this, function (_a) {
189
189
  switch (_a.label) {
190
- case 0: return [4 /*yield*/, this.getProjectIntegrationsRaw(requestParameters, initOverrides)];
190
+ case 0: return [4 /*yield*/, this.getIntegrationsRaw(requestParameters, initOverrides)];
191
191
  case 1:
192
192
  response = _a.sent();
193
193
  return [4 /*yield*/, response.value()];
@@ -200,14 +200,14 @@ var IntegrationsApi = /** @class */ (function (_super) {
200
200
  * Install an integration on the project
201
201
  * Install integration
202
202
  */
203
- IntegrationsApi.prototype.installProjectIntegrationRaw = function (requestParameters, initOverrides) {
203
+ IntegrationsApi.prototype.installIntegrationRaw = function (requestParameters, initOverrides) {
204
204
  return __awaiter(this, void 0, void 0, function () {
205
205
  var queryParameters, headerParameters, _a, _b, response;
206
206
  return __generator(this, function (_c) {
207
207
  switch (_c.label) {
208
208
  case 0:
209
209
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
210
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installProjectIntegration.');
210
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
211
211
  }
212
212
  queryParameters = {};
213
213
  headerParameters = {};
@@ -225,7 +225,7 @@ var IntegrationsApi = /** @class */ (function (_super) {
225
225
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
226
226
  }
227
227
  return [4 /*yield*/, this.request({
228
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
228
+ path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
229
229
  method: 'POST',
230
230
  headers: headerParameters,
231
231
  query: queryParameters,
@@ -241,12 +241,12 @@ var IntegrationsApi = /** @class */ (function (_super) {
241
241
  * Install an integration on the project
242
242
  * Install integration
243
243
  */
244
- IntegrationsApi.prototype.installProjectIntegration = function (requestParameters, initOverrides) {
244
+ IntegrationsApi.prototype.installIntegration = function (requestParameters, initOverrides) {
245
245
  return __awaiter(this, void 0, void 0, function () {
246
246
  var response;
247
247
  return __generator(this, function (_a) {
248
248
  switch (_a.label) {
249
- case 0: return [4 /*yield*/, this.installProjectIntegrationRaw(requestParameters, initOverrides)];
249
+ case 0: return [4 /*yield*/, this.installIntegrationRaw(requestParameters, initOverrides)];
250
250
  case 1:
251
251
  response = _a.sent();
252
252
  return [4 /*yield*/, response.value()];
@@ -255,6 +255,66 @@ var IntegrationsApi = /** @class */ (function (_super) {
255
255
  });
256
256
  });
257
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
+ };
258
318
  return IntegrationsApi;
259
319
  }(runtime.BaseAPI));
260
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.4
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.4
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).
@@ -101,7 +101,7 @@ var ProjectsApi = /** @class */ (function (_super) {
101
101
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
102
102
  }
103
103
  return [4 /*yield*/, this.request({
104
- path: "/dashboard/projects",
104
+ path: "/v1/projects",
105
105
  method: 'POST',
106
106
  headers: headerParameters,
107
107
  query: queryParameters,
@@ -160,7 +160,7 @@ var ProjectsApi = /** @class */ (function (_super) {
160
160
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
161
161
  }
162
162
  return [4 /*yield*/, this.request({
163
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
163
+ path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
164
164
  method: 'DELETE',
165
165
  headers: headerParameters,
166
166
  query: queryParameters,
@@ -219,7 +219,7 @@ var ProjectsApi = /** @class */ (function (_super) {
219
219
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
220
220
  }
221
221
  return [4 /*yield*/, this.request({
222
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
222
+ path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
223
223
  method: 'GET',
224
224
  headers: headerParameters,
225
225
  query: queryParameters,
@@ -275,7 +275,7 @@ var ProjectsApi = /** @class */ (function (_super) {
275
275
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
276
276
  }
277
277
  return [4 /*yield*/, this.request({
278
- path: "/dashboard/projects",
278
+ path: "/v1/projects",
279
279
  method: 'GET',
280
280
  headers: headerParameters,
281
281
  query: queryParameters,
@@ -334,7 +334,7 @@ var ProjectsApi = /** @class */ (function (_super) {
334
334
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
335
335
  }
336
336
  return [4 /*yield*/, this.request({
337
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
337
+ path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
338
338
  method: 'PATCH',
339
339
  headers: headerParameters,
340
340
  query: queryParameters,
@@ -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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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/omnis/v3".replace(/\/+$/, "");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.4
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 GetProjectIntegrationRequest {
31
+ export interface GetIntegrationRequest {
32
32
  projectId: string;
33
33
  integrationId: string;
34
34
  }
35
35
 
36
- export interface GetProjectIntegrationsRequest {
36
+ export interface GetIntegrationsRequest {
37
37
  projectId: string;
38
38
  }
39
39
 
40
- export interface InstallProjectIntegrationRequest {
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 getProjectIntegrationRaw(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
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 getProjectIntegration.');
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 getProjectIntegration.');
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 = {};
@@ -73,7 +78,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
73
78
  }
74
79
 
75
80
  const response = await this.request({
76
- path: `/dashboard/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
81
+ path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
77
82
  method: 'GET',
78
83
  headers: headerParameters,
79
84
  query: queryParameters,
@@ -86,8 +91,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
86
91
  * Get an integration
87
92
  * Get integration
88
93
  */
89
- async getProjectIntegration(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
90
- const response = await this.getProjectIntegrationRaw(requestParameters, initOverrides);
94
+ async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
95
+ const response = await this.getIntegrationRaw(requestParameters, initOverrides);
91
96
  return await response.value();
92
97
  }
93
98
 
@@ -95,9 +100,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
95
100
  * List all integrations installed on a project
96
101
  * List integrations
97
102
  */
98
- async getProjectIntegrationsRaw(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
103
+ async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
99
104
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
100
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegrations.');
105
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
101
106
  }
102
107
 
103
108
  const queryParameters: any = {};
@@ -114,7 +119,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
114
119
  }
115
120
 
116
121
  const response = await this.request({
117
- path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
122
+ path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
118
123
  method: 'GET',
119
124
  headers: headerParameters,
120
125
  query: queryParameters,
@@ -127,8 +132,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
127
132
  * List all integrations installed on a project
128
133
  * List integrations
129
134
  */
130
- async getProjectIntegrations(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
131
- const response = await this.getProjectIntegrationsRaw(requestParameters, initOverrides);
135
+ async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
136
+ const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
132
137
  return await response.value();
133
138
  }
134
139
 
@@ -136,9 +141,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
136
141
  * Install an integration on the project
137
142
  * Install integration
138
143
  */
139
- async installProjectIntegrationRaw(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
144
+ async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
140
145
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
141
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installProjectIntegration.');
146
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
142
147
  }
143
148
 
144
149
  const queryParameters: any = {};
@@ -155,7 +160,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
155
160
  }
156
161
 
157
162
  const response = await this.request({
158
- path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
163
+ path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
159
164
  method: 'POST',
160
165
  headers: headerParameters,
161
166
  query: queryParameters,
@@ -168,9 +173,53 @@ export class IntegrationsApi extends runtime.BaseAPI {
168
173
  * Install an integration on the project
169
174
  * Install integration
170
175
  */
171
- async installProjectIntegration(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
172
- const response = await this.installProjectIntegrationRaw(requestParameters, initOverrides);
176
+ async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
177
+ const response = await this.installIntegrationRaw(requestParameters, initOverrides);
173
178
  return await response.value();
174
179
  }
175
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
+
176
225
  }
@@ -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.4
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).
@@ -64,7 +64,7 @@ export class ProjectsApi extends runtime.BaseAPI {
64
64
  }
65
65
 
66
66
  const response = await this.request({
67
- path: `/dashboard/projects`,
67
+ path: `/v1/projects`,
68
68
  method: 'POST',
69
69
  headers: headerParameters,
70
70
  query: queryParameters,
@@ -105,7 +105,7 @@ export class ProjectsApi extends runtime.BaseAPI {
105
105
  }
106
106
 
107
107
  const response = await this.request({
108
- path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
108
+ path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
109
109
  method: 'DELETE',
110
110
  headers: headerParameters,
111
111
  query: queryParameters,
@@ -146,7 +146,7 @@ export class ProjectsApi extends runtime.BaseAPI {
146
146
  }
147
147
 
148
148
  const response = await this.request({
149
- path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
149
+ path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
150
150
  method: 'GET',
151
151
  headers: headerParameters,
152
152
  query: queryParameters,
@@ -183,7 +183,7 @@ export class ProjectsApi extends runtime.BaseAPI {
183
183
  }
184
184
 
185
185
  const response = await this.request({
186
- path: `/dashboard/projects`,
186
+ path: `/v1/projects`,
187
187
  method: 'GET',
188
188
  headers: headerParameters,
189
189
  query: queryParameters,
@@ -224,7 +224,7 @@ export class ProjectsApi extends runtime.BaseAPI {
224
224
  }
225
225
 
226
226
  const response = await this.request({
227
- path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
227
+ path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
228
228
  method: 'PATCH',
229
229
  headers: headerParameters,
230
230
  query: queryParameters,
@@ -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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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/omnis/v3".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path