@teemill/projects 1.0.1 → 1.0.3

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.
@@ -1,6 +1,5 @@
1
1
  .gitignore
2
2
  .npmignore
3
- .openapi-generator-ignore
4
3
  README.md
5
4
  package.json
6
5
  src/apis/IntegrationsApi.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.0.1
1
+ ## @teemill/projects@1.0.3
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.1 --save
39
+ npm install @teemill/projects@1.0.3 --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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,9 +81,9 @@ var IntegrationsApi = /** @class */ (function (_super) {
81
81
  */
82
82
  IntegrationsApi.prototype.getProjectIntegrationRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
84
+ var queryParameters, headerParameters, _a, _b, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
87
  case 0:
88
88
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
89
89
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegration.');
@@ -93,14 +93,23 @@ var IntegrationsApi = /** @class */ (function (_super) {
93
93
  }
94
94
  queryParameters = {};
95
95
  headerParameters = {};
96
- return [4 /*yield*/, this.request({
97
- path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
98
- method: 'GET',
99
- headers: headerParameters,
100
- query: queryParameters,
101
- }, initOverrides)];
96
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
97
+ // oauth required
98
+ _a = headerParameters;
99
+ _b = "Authorization";
100
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
102
101
  case 1:
103
- response = _a.sent();
102
+ // oauth required
103
+ _a[_b] = _c.sent();
104
+ _c.label = 2;
105
+ case 2: return [4 /*yield*/, this.request({
106
+ path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ }, initOverrides)];
111
+ case 3:
112
+ response = _c.sent();
104
113
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
105
114
  }
106
115
  });
@@ -130,23 +139,32 @@ var IntegrationsApi = /** @class */ (function (_super) {
130
139
  */
131
140
  IntegrationsApi.prototype.getProjectIntegrationsRaw = function (requestParameters, initOverrides) {
132
141
  return __awaiter(this, void 0, void 0, function () {
133
- var queryParameters, headerParameters, response;
134
- return __generator(this, function (_a) {
135
- switch (_a.label) {
142
+ var queryParameters, headerParameters, _a, _b, response;
143
+ return __generator(this, function (_c) {
144
+ switch (_c.label) {
136
145
  case 0:
137
146
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
138
147
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegrations.');
139
148
  }
140
149
  queryParameters = {};
141
150
  headerParameters = {};
142
- return [4 /*yield*/, this.request({
143
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
144
- method: 'GET',
145
- headers: headerParameters,
146
- query: queryParameters,
147
- }, initOverrides)];
151
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
152
+ // oauth required
153
+ _a = headerParameters;
154
+ _b = "Authorization";
155
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
148
156
  case 1:
149
- response = _a.sent();
157
+ // oauth required
158
+ _a[_b] = _c.sent();
159
+ _c.label = 2;
160
+ case 2: return [4 /*yield*/, this.request({
161
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
162
+ method: 'GET',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ }, initOverrides)];
166
+ case 3:
167
+ response = _c.sent();
150
168
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
151
169
  }
152
170
  });
@@ -176,23 +194,32 @@ var IntegrationsApi = /** @class */ (function (_super) {
176
194
  */
177
195
  IntegrationsApi.prototype.installProjectIntegrationRaw = function (requestParameters, initOverrides) {
178
196
  return __awaiter(this, void 0, void 0, function () {
179
- var queryParameters, headerParameters, response;
180
- return __generator(this, function (_a) {
181
- switch (_a.label) {
197
+ var queryParameters, headerParameters, _a, _b, response;
198
+ return __generator(this, function (_c) {
199
+ switch (_c.label) {
182
200
  case 0:
183
201
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
184
202
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installProjectIntegration.');
185
203
  }
186
204
  queryParameters = {};
187
205
  headerParameters = {};
188
- return [4 /*yield*/, this.request({
189
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
190
- method: 'POST',
191
- headers: headerParameters,
192
- query: queryParameters,
193
- }, initOverrides)];
206
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
207
+ // oauth required
208
+ _a = headerParameters;
209
+ _b = "Authorization";
210
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
194
211
  case 1:
195
- response = _a.sent();
212
+ // oauth required
213
+ _a[_b] = _c.sent();
214
+ _c.label = 2;
215
+ case 2: return [4 /*yield*/, this.request({
216
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
217
+ method: 'POST',
218
+ headers: headerParameters,
219
+ query: queryParameters,
220
+ }, initOverrides)];
221
+ case 3:
222
+ response = _c.sent();
196
223
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
197
224
  }
198
225
  });
@@ -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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,20 +81,29 @@ var ProjectsApi = /** @class */ (function (_super) {
81
81
  */
82
82
  ProjectsApi.prototype.createProjectRaw = function (initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
84
+ var queryParameters, headerParameters, _a, _b, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
87
  case 0:
88
88
  queryParameters = {};
89
89
  headerParameters = {};
90
- return [4 /*yield*/, this.request({
91
- path: "/dashboard/projects",
92
- method: 'POST',
93
- headers: headerParameters,
94
- query: queryParameters,
95
- }, initOverrides)];
90
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
91
+ // oauth required
92
+ _a = headerParameters;
93
+ _b = "Authorization";
94
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
96
95
  case 1:
97
- response = _a.sent();
96
+ // oauth required
97
+ _a[_b] = _c.sent();
98
+ _c.label = 2;
99
+ case 2: return [4 /*yield*/, this.request({
100
+ path: "/dashboard/projects",
101
+ method: 'POST',
102
+ headers: headerParameters,
103
+ query: queryParameters,
104
+ }, initOverrides)];
105
+ case 3:
106
+ response = _c.sent();
98
107
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
99
108
  }
100
109
  });
@@ -124,23 +133,32 @@ var ProjectsApi = /** @class */ (function (_super) {
124
133
  */
125
134
  ProjectsApi.prototype.deleteProjectRaw = function (requestParameters, initOverrides) {
126
135
  return __awaiter(this, void 0, void 0, function () {
127
- var queryParameters, headerParameters, response;
128
- return __generator(this, function (_a) {
129
- switch (_a.label) {
136
+ var queryParameters, headerParameters, _a, _b, response;
137
+ return __generator(this, function (_c) {
138
+ switch (_c.label) {
130
139
  case 0:
131
140
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
132
141
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProject.');
133
142
  }
134
143
  queryParameters = {};
135
144
  headerParameters = {};
136
- return [4 /*yield*/, this.request({
137
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
138
- method: 'DELETE',
139
- headers: headerParameters,
140
- query: queryParameters,
141
- }, initOverrides)];
145
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
146
+ // oauth required
147
+ _a = headerParameters;
148
+ _b = "Authorization";
149
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
142
150
  case 1:
143
- response = _a.sent();
151
+ // oauth required
152
+ _a[_b] = _c.sent();
153
+ _c.label = 2;
154
+ case 2: return [4 /*yield*/, this.request({
155
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
156
+ method: 'DELETE',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }, initOverrides)];
160
+ case 3:
161
+ response = _c.sent();
144
162
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
145
163
  }
146
164
  });
@@ -170,23 +188,32 @@ var ProjectsApi = /** @class */ (function (_super) {
170
188
  */
171
189
  ProjectsApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
172
190
  return __awaiter(this, void 0, void 0, function () {
173
- var queryParameters, headerParameters, response;
174
- return __generator(this, function (_a) {
175
- switch (_a.label) {
191
+ var queryParameters, headerParameters, _a, _b, response;
192
+ return __generator(this, function (_c) {
193
+ switch (_c.label) {
176
194
  case 0:
177
195
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
178
196
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProject.');
179
197
  }
180
198
  queryParameters = {};
181
199
  headerParameters = {};
182
- return [4 /*yield*/, this.request({
183
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
184
- method: 'GET',
185
- headers: headerParameters,
186
- query: queryParameters,
187
- }, initOverrides)];
200
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
201
+ // oauth required
202
+ _a = headerParameters;
203
+ _b = "Authorization";
204
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
188
205
  case 1:
189
- response = _a.sent();
206
+ // oauth required
207
+ _a[_b] = _c.sent();
208
+ _c.label = 2;
209
+ case 2: return [4 /*yield*/, this.request({
210
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
211
+ method: 'GET',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ }, initOverrides)];
215
+ case 3:
216
+ response = _c.sent();
190
217
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
191
218
  }
192
219
  });
@@ -216,20 +243,29 @@ var ProjectsApi = /** @class */ (function (_super) {
216
243
  */
217
244
  ProjectsApi.prototype.getProjectsRaw = function (initOverrides) {
218
245
  return __awaiter(this, void 0, void 0, function () {
219
- var queryParameters, headerParameters, response;
220
- return __generator(this, function (_a) {
221
- switch (_a.label) {
246
+ var queryParameters, headerParameters, _a, _b, response;
247
+ return __generator(this, function (_c) {
248
+ switch (_c.label) {
222
249
  case 0:
223
250
  queryParameters = {};
224
251
  headerParameters = {};
225
- return [4 /*yield*/, this.request({
226
- path: "/dashboard/projects",
227
- method: 'GET',
228
- headers: headerParameters,
229
- query: queryParameters,
230
- }, initOverrides)];
252
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
253
+ // oauth required
254
+ _a = headerParameters;
255
+ _b = "Authorization";
256
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
231
257
  case 1:
232
- response = _a.sent();
258
+ // oauth required
259
+ _a[_b] = _c.sent();
260
+ _c.label = 2;
261
+ case 2: return [4 /*yield*/, this.request({
262
+ path: "/dashboard/projects",
263
+ method: 'GET',
264
+ headers: headerParameters,
265
+ query: queryParameters,
266
+ }, initOverrides)];
267
+ case 3:
268
+ response = _c.sent();
233
269
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
234
270
  }
235
271
  });
@@ -259,23 +295,32 @@ var ProjectsApi = /** @class */ (function (_super) {
259
295
  */
260
296
  ProjectsApi.prototype.updateProjectRaw = function (requestParameters, initOverrides) {
261
297
  return __awaiter(this, void 0, void 0, function () {
262
- var queryParameters, headerParameters, response;
263
- return __generator(this, function (_a) {
264
- switch (_a.label) {
298
+ var queryParameters, headerParameters, _a, _b, response;
299
+ return __generator(this, function (_c) {
300
+ switch (_c.label) {
265
301
  case 0:
266
302
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
267
303
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
268
304
  }
269
305
  queryParameters = {};
270
306
  headerParameters = {};
271
- return [4 /*yield*/, this.request({
272
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
273
- method: 'PATCH',
274
- headers: headerParameters,
275
- query: queryParameters,
276
- }, initOverrides)];
307
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
308
+ // oauth required
309
+ _a = headerParameters;
310
+ _b = "Authorization";
311
+ return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
277
312
  case 1:
278
- response = _a.sent();
313
+ // oauth required
314
+ _a[_b] = _c.sent();
315
+ _c.label = 2;
316
+ case 2: return [4 /*yield*/, this.request({
317
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
318
+ method: 'PATCH',
319
+ headers: headerParameters,
320
+ query: queryParameters,
321
+ }, initOverrides)];
322
+ case 3:
323
+ response = _c.sent();
279
324
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
280
325
  }
281
326
  });
@@ -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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,6 +34,12 @@ export interface Project {
34
34
  * @memberof Project
35
35
  */
36
36
  logo: ProjectLogo;
37
+ /**
38
+ *
39
+ * @type {Array<string>}
40
+ * @memberof Project
41
+ */
42
+ integrations?: Array<string>;
37
43
  }
38
44
  /**
39
45
  * Check if a given object implements the Project interface.
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.1
8
+ * The version of the OpenAPI document: 1.0.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectToJSON = exports.ProjectFromJSONTyped = exports.ProjectFromJSON = exports.instanceOfProject = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  var ProjectLogo_1 = require("./ProjectLogo");
18
19
  /**
19
20
  * Check if a given object implements the Project interface.
@@ -38,6 +39,7 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
38
39
  'id': json['id'],
39
40
  'name': json['name'],
40
41
  'logo': (0, ProjectLogo_1.ProjectLogoFromJSON)(json['logo']),
42
+ 'integrations': !(0, runtime_1.exists)(json, 'integrations') ? undefined : json['integrations'],
41
43
  };
42
44
  }
43
45
  exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
@@ -52,6 +54,7 @@ function ProjectToJSON(value) {
52
54
  'id': value.id,
53
55
  'name': value.name,
54
56
  'logo': (0, ProjectLogo_1.ProjectLogoToJSON)(value.logo),
57
+ 'integrations': value.integrations,
55
58
  };
56
59
  }
57
60
  exports.ProjectToJSON = ProjectToJSON;
@@ -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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
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.1
5
+ * The version of the OpenAPI document: 1.0.3
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.1
8
+ * The version of the OpenAPI document: 1.0.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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.1
7
+ * The version of the OpenAPI document: 1.0.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -63,6 +63,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
63
63
 
64
64
  const headerParameters: runtime.HTTPHeaders = {};
65
65
 
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ // oauth required
68
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
69
+ }
70
+
66
71
  const response = await this.request({
67
72
  path: `/dashboard/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
68
73
  method: 'GET',
@@ -95,6 +100,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
95
100
 
96
101
  const headerParameters: runtime.HTTPHeaders = {};
97
102
 
103
+ if (this.configuration && this.configuration.accessToken) {
104
+ // oauth required
105
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
106
+ }
107
+
98
108
  const response = await this.request({
99
109
  path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
100
110
  method: 'GET',
@@ -127,6 +137,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
127
137
 
128
138
  const headerParameters: runtime.HTTPHeaders = {};
129
139
 
140
+ if (this.configuration && this.configuration.accessToken) {
141
+ // oauth required
142
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
143
+ }
144
+
130
145
  const response = await this.request({
131
146
  path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
132
147
  method: 'POST',
@@ -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.1
7
+ * The version of the OpenAPI document: 1.0.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,6 +54,11 @@ export class ProjectsApi extends runtime.BaseAPI {
54
54
 
55
55
  const headerParameters: runtime.HTTPHeaders = {};
56
56
 
57
+ if (this.configuration && this.configuration.accessToken) {
58
+ // oauth required
59
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
60
+ }
61
+
57
62
  const response = await this.request({
58
63
  path: `/dashboard/projects`,
59
64
  method: 'POST',
@@ -86,6 +91,11 @@ export class ProjectsApi extends runtime.BaseAPI {
86
91
 
87
92
  const headerParameters: runtime.HTTPHeaders = {};
88
93
 
94
+ if (this.configuration && this.configuration.accessToken) {
95
+ // oauth required
96
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
97
+ }
98
+
89
99
  const response = await this.request({
90
100
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
91
101
  method: 'DELETE',
@@ -118,6 +128,11 @@ export class ProjectsApi extends runtime.BaseAPI {
118
128
 
119
129
  const headerParameters: runtime.HTTPHeaders = {};
120
130
 
131
+ if (this.configuration && this.configuration.accessToken) {
132
+ // oauth required
133
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
134
+ }
135
+
121
136
  const response = await this.request({
122
137
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
123
138
  method: 'GET',
@@ -146,6 +161,11 @@ export class ProjectsApi extends runtime.BaseAPI {
146
161
 
147
162
  const headerParameters: runtime.HTTPHeaders = {};
148
163
 
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ // oauth required
166
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
167
+ }
168
+
149
169
  const response = await this.request({
150
170
  path: `/dashboard/projects`,
151
171
  method: 'GET',
@@ -178,6 +198,11 @@ export class ProjectsApi extends runtime.BaseAPI {
178
198
 
179
199
  const headerParameters: runtime.HTTPHeaders = {};
180
200
 
201
+ if (this.configuration && this.configuration.accessToken) {
202
+ // oauth required
203
+ headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
204
+ }
205
+
181
206
  const response = await this.request({
182
207
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
183
208
  method: 'PATCH',
@@ -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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,6 +44,12 @@ export interface Project {
44
44
  * @memberof Project
45
45
  */
46
46
  logo: ProjectLogo;
47
+ /**
48
+ *
49
+ * @type {Array<string>}
50
+ * @memberof Project
51
+ */
52
+ integrations?: Array<string>;
47
53
  }
48
54
 
49
55
  /**
@@ -71,6 +77,7 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
71
77
  'id': json['id'],
72
78
  'name': json['name'],
73
79
  'logo': ProjectLogoFromJSON(json['logo']),
80
+ 'integrations': !exists(json, 'integrations') ? undefined : json['integrations'],
74
81
  };
75
82
  }
76
83
 
@@ -86,6 +93,7 @@ export function ProjectToJSON(value?: Project | null): any {
86
93
  'id': value.id,
87
94
  'name': value.name,
88
95
  'logo': ProjectLogoToJSON(value.logo),
96
+ 'integrations': value.integrations,
89
97
  };
90
98
  }
91
99
 
@@ -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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
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.1
7
+ * The version of the OpenAPI document: 1.0.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).