@teemill/projects 1.0.4 → 1.1.1

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.
@@ -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.1
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,
@@ -190,6 +190,127 @@ var ProjectsApi = /** @class */ (function (_super) {
190
190
  });
191
191
  });
192
192
  };
193
+ /**
194
+ * Get an integration
195
+ * Get integration
196
+ */
197
+ ProjectsApi.prototype.getIntegrationRaw = function (requestParameters, initOverrides) {
198
+ return __awaiter(this, void 0, void 0, function () {
199
+ var queryParameters, headerParameters, _a, _b, response;
200
+ return __generator(this, function (_c) {
201
+ switch (_c.label) {
202
+ case 0:
203
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
204
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
205
+ }
206
+ if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
207
+ throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
208
+ }
209
+ queryParameters = {};
210
+ headerParameters = {};
211
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
212
+ // oauth required
213
+ _a = headerParameters;
214
+ _b = "Authorization";
215
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
216
+ case 1:
217
+ // oauth required
218
+ _a[_b] = _c.sent();
219
+ _c.label = 2;
220
+ case 2:
221
+ if (this.configuration && this.configuration.apiKey) {
222
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
223
+ }
224
+ return [4 /*yield*/, this.request({
225
+ path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
226
+ method: 'GET',
227
+ headers: headerParameters,
228
+ query: queryParameters,
229
+ }, initOverrides)];
230
+ case 3:
231
+ response = _c.sent();
232
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
233
+ }
234
+ });
235
+ });
236
+ };
237
+ /**
238
+ * Get an integration
239
+ * Get integration
240
+ */
241
+ ProjectsApi.prototype.getIntegration = function (requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function () {
243
+ var response;
244
+ return __generator(this, function (_a) {
245
+ switch (_a.label) {
246
+ case 0: return [4 /*yield*/, this.getIntegrationRaw(requestParameters, initOverrides)];
247
+ case 1:
248
+ response = _a.sent();
249
+ return [4 /*yield*/, response.value()];
250
+ case 2: return [2 /*return*/, _a.sent()];
251
+ }
252
+ });
253
+ });
254
+ };
255
+ /**
256
+ * List all integrations installed on a project
257
+ * List integrations
258
+ */
259
+ ProjectsApi.prototype.getIntegrationsRaw = function (requestParameters, initOverrides) {
260
+ return __awaiter(this, void 0, void 0, function () {
261
+ var queryParameters, headerParameters, _a, _b, response;
262
+ return __generator(this, function (_c) {
263
+ switch (_c.label) {
264
+ case 0:
265
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
266
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
267
+ }
268
+ queryParameters = {};
269
+ headerParameters = {};
270
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
271
+ // oauth required
272
+ _a = headerParameters;
273
+ _b = "Authorization";
274
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
275
+ case 1:
276
+ // oauth required
277
+ _a[_b] = _c.sent();
278
+ _c.label = 2;
279
+ case 2:
280
+ if (this.configuration && this.configuration.apiKey) {
281
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
282
+ }
283
+ return [4 /*yield*/, this.request({
284
+ path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
285
+ method: 'GET',
286
+ headers: headerParameters,
287
+ query: queryParameters,
288
+ }, initOverrides)];
289
+ case 3:
290
+ response = _c.sent();
291
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
292
+ }
293
+ });
294
+ });
295
+ };
296
+ /**
297
+ * List all integrations installed on a project
298
+ * List integrations
299
+ */
300
+ ProjectsApi.prototype.getIntegrations = function (requestParameters, initOverrides) {
301
+ return __awaiter(this, void 0, void 0, function () {
302
+ var response;
303
+ return __generator(this, function (_a) {
304
+ switch (_a.label) {
305
+ case 0: return [4 /*yield*/, this.getIntegrationsRaw(requestParameters, initOverrides)];
306
+ case 1:
307
+ response = _a.sent();
308
+ return [4 /*yield*/, response.value()];
309
+ case 2: return [2 /*return*/, _a.sent()];
310
+ }
311
+ });
312
+ });
313
+ };
193
314
  /**
194
315
  * Get a project
195
316
  * Get project
@@ -219,7 +340,7 @@ var ProjectsApi = /** @class */ (function (_super) {
219
340
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
220
341
  }
221
342
  return [4 /*yield*/, this.request({
222
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
343
+ path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
223
344
  method: 'GET',
224
345
  headers: headerParameters,
225
346
  query: queryParameters,
@@ -275,7 +396,7 @@ var ProjectsApi = /** @class */ (function (_super) {
275
396
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
276
397
  }
277
398
  return [4 /*yield*/, this.request({
278
- path: "/dashboard/projects",
399
+ path: "/v1/projects",
279
400
  method: 'GET',
280
401
  headers: headerParameters,
281
402
  query: queryParameters,
@@ -305,6 +426,125 @@ var ProjectsApi = /** @class */ (function (_super) {
305
426
  });
306
427
  });
307
428
  };
429
+ /**
430
+ * Install an integration on the project
431
+ * Install integration
432
+ */
433
+ ProjectsApi.prototype.installIntegrationRaw = function (requestParameters, initOverrides) {
434
+ return __awaiter(this, void 0, void 0, function () {
435
+ var queryParameters, headerParameters, _a, _b, response;
436
+ return __generator(this, function (_c) {
437
+ switch (_c.label) {
438
+ case 0:
439
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
440
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
441
+ }
442
+ queryParameters = {};
443
+ headerParameters = {};
444
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
445
+ // oauth required
446
+ _a = headerParameters;
447
+ _b = "Authorization";
448
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
449
+ case 1:
450
+ // oauth required
451
+ _a[_b] = _c.sent();
452
+ _c.label = 2;
453
+ case 2:
454
+ if (this.configuration && this.configuration.apiKey) {
455
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
456
+ }
457
+ return [4 /*yield*/, this.request({
458
+ path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
459
+ method: 'POST',
460
+ headers: headerParameters,
461
+ query: queryParameters,
462
+ }, initOverrides)];
463
+ case 3:
464
+ response = _c.sent();
465
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
466
+ }
467
+ });
468
+ });
469
+ };
470
+ /**
471
+ * Install an integration on the project
472
+ * Install integration
473
+ */
474
+ ProjectsApi.prototype.installIntegration = function (requestParameters, initOverrides) {
475
+ return __awaiter(this, void 0, void 0, function () {
476
+ var response;
477
+ return __generator(this, function (_a) {
478
+ switch (_a.label) {
479
+ case 0: return [4 /*yield*/, this.installIntegrationRaw(requestParameters, initOverrides)];
480
+ case 1:
481
+ response = _a.sent();
482
+ return [4 /*yield*/, response.value()];
483
+ case 2: return [2 /*return*/, _a.sent()];
484
+ }
485
+ });
486
+ });
487
+ };
488
+ /**
489
+ * Uninstall a projects integration
490
+ * Uninstall integration
491
+ */
492
+ ProjectsApi.prototype.uninstallIntegrationRaw = function (requestParameters, initOverrides) {
493
+ return __awaiter(this, void 0, void 0, function () {
494
+ var queryParameters, headerParameters, _a, _b, response;
495
+ return __generator(this, function (_c) {
496
+ switch (_c.label) {
497
+ case 0:
498
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
499
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
500
+ }
501
+ if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
502
+ throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
503
+ }
504
+ queryParameters = {};
505
+ headerParameters = {};
506
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
507
+ // oauth required
508
+ _a = headerParameters;
509
+ _b = "Authorization";
510
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
511
+ case 1:
512
+ // oauth required
513
+ _a[_b] = _c.sent();
514
+ _c.label = 2;
515
+ case 2:
516
+ if (this.configuration && this.configuration.apiKey) {
517
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
518
+ }
519
+ return [4 /*yield*/, this.request({
520
+ path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
521
+ method: 'DELETE',
522
+ headers: headerParameters,
523
+ query: queryParameters,
524
+ }, initOverrides)];
525
+ case 3:
526
+ response = _c.sent();
527
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
528
+ }
529
+ });
530
+ });
531
+ };
532
+ /**
533
+ * Uninstall a projects integration
534
+ * Uninstall integration
535
+ */
536
+ ProjectsApi.prototype.uninstallIntegration = function (requestParameters, initOverrides) {
537
+ return __awaiter(this, void 0, void 0, function () {
538
+ return __generator(this, function (_a) {
539
+ switch (_a.label) {
540
+ case 0: return [4 /*yield*/, this.uninstallIntegrationRaw(requestParameters, initOverrides)];
541
+ case 1:
542
+ _a.sent();
543
+ return [2 /*return*/];
544
+ }
545
+ });
546
+ });
547
+ };
308
548
  /**
309
549
  * Update a project
310
550
  * Update project
@@ -334,7 +574,7 @@ var ProjectsApi = /** @class */ (function (_super) {
334
574
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
335
575
  }
336
576
  return [4 /*yield*/, this.request({
337
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
577
+ path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
338
578
  method: 'PATCH',
339
579
  headers: headerParameters,
340
580
  query: queryParameters,
@@ -1,2 +1 @@
1
- export * from './IntegrationsApi';
2
1
  export * from './ProjectsApi';
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./IntegrationsApi"), exports);
20
19
  __exportStar(require("./ProjectsApi"), exports);
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.4
5
+ * The version of the OpenAPI document: 1.1.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {