@teemill/projects 1.0.2 → 1.0.4

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.2
1
+ ## @teemill/projects@1.0.4
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.2 --save
39
+ npm install @teemill/projects@1.0.4 --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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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,27 @@ var IntegrationsApi = /** @class */ (function (_super) {
93
93
  }
94
94
  queryParameters = {};
95
95
  headerParameters = {};
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("session-oauth", [])];
101
+ case 1:
102
+ // oauth required
103
+ _a[_b] = _c.sent();
104
+ _c.label = 2;
105
+ case 2:
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
108
+ }
96
109
  return [4 /*yield*/, this.request({
97
110
  path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
98
111
  method: 'GET',
99
112
  headers: headerParameters,
100
113
  query: queryParameters,
101
114
  }, initOverrides)];
102
- case 1:
103
- response = _a.sent();
115
+ case 3:
116
+ response = _c.sent();
104
117
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
105
118
  }
106
119
  });
@@ -130,23 +143,36 @@ var IntegrationsApi = /** @class */ (function (_super) {
130
143
  */
131
144
  IntegrationsApi.prototype.getProjectIntegrationsRaw = function (requestParameters, initOverrides) {
132
145
  return __awaiter(this, void 0, void 0, function () {
133
- var queryParameters, headerParameters, response;
134
- return __generator(this, function (_a) {
135
- switch (_a.label) {
146
+ var queryParameters, headerParameters, _a, _b, response;
147
+ return __generator(this, function (_c) {
148
+ switch (_c.label) {
136
149
  case 0:
137
150
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
138
151
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegrations.');
139
152
  }
140
153
  queryParameters = {};
141
154
  headerParameters = {};
155
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
156
+ // oauth required
157
+ _a = headerParameters;
158
+ _b = "Authorization";
159
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
160
+ case 1:
161
+ // oauth required
162
+ _a[_b] = _c.sent();
163
+ _c.label = 2;
164
+ case 2:
165
+ if (this.configuration && this.configuration.apiKey) {
166
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
167
+ }
142
168
  return [4 /*yield*/, this.request({
143
169
  path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
144
170
  method: 'GET',
145
171
  headers: headerParameters,
146
172
  query: queryParameters,
147
173
  }, initOverrides)];
148
- case 1:
149
- response = _a.sent();
174
+ case 3:
175
+ response = _c.sent();
150
176
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
151
177
  }
152
178
  });
@@ -176,23 +202,36 @@ var IntegrationsApi = /** @class */ (function (_super) {
176
202
  */
177
203
  IntegrationsApi.prototype.installProjectIntegrationRaw = function (requestParameters, initOverrides) {
178
204
  return __awaiter(this, void 0, void 0, function () {
179
- var queryParameters, headerParameters, response;
180
- return __generator(this, function (_a) {
181
- switch (_a.label) {
205
+ var queryParameters, headerParameters, _a, _b, response;
206
+ return __generator(this, function (_c) {
207
+ switch (_c.label) {
182
208
  case 0:
183
209
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
184
210
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installProjectIntegration.');
185
211
  }
186
212
  queryParameters = {};
187
213
  headerParameters = {};
214
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
215
+ // oauth required
216
+ _a = headerParameters;
217
+ _b = "Authorization";
218
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
219
+ case 1:
220
+ // oauth required
221
+ _a[_b] = _c.sent();
222
+ _c.label = 2;
223
+ case 2:
224
+ if (this.configuration && this.configuration.apiKey) {
225
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
226
+ }
188
227
  return [4 /*yield*/, this.request({
189
228
  path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
190
229
  method: 'POST',
191
230
  headers: headerParameters,
192
231
  query: queryParameters,
193
232
  }, initOverrides)];
194
- case 1:
195
- response = _a.sent();
233
+ case 3:
234
+ response = _c.sent();
196
235
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
197
236
  }
198
237
  });
@@ -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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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,33 @@ 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
+ 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("session-oauth", [])];
95
+ case 1:
96
+ // oauth required
97
+ _a[_b] = _c.sent();
98
+ _c.label = 2;
99
+ case 2:
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
102
+ }
90
103
  return [4 /*yield*/, this.request({
91
104
  path: "/dashboard/projects",
92
105
  method: 'POST',
93
106
  headers: headerParameters,
94
107
  query: queryParameters,
95
108
  }, initOverrides)];
96
- case 1:
97
- response = _a.sent();
109
+ case 3:
110
+ response = _c.sent();
98
111
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
99
112
  }
100
113
  });
@@ -124,23 +137,36 @@ var ProjectsApi = /** @class */ (function (_super) {
124
137
  */
125
138
  ProjectsApi.prototype.deleteProjectRaw = function (requestParameters, initOverrides) {
126
139
  return __awaiter(this, void 0, void 0, function () {
127
- var queryParameters, headerParameters, response;
128
- return __generator(this, function (_a) {
129
- switch (_a.label) {
140
+ var queryParameters, headerParameters, _a, _b, response;
141
+ return __generator(this, function (_c) {
142
+ switch (_c.label) {
130
143
  case 0:
131
144
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
132
145
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProject.');
133
146
  }
134
147
  queryParameters = {};
135
148
  headerParameters = {};
149
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
150
+ // oauth required
151
+ _a = headerParameters;
152
+ _b = "Authorization";
153
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
154
+ case 1:
155
+ // oauth required
156
+ _a[_b] = _c.sent();
157
+ _c.label = 2;
158
+ case 2:
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
161
+ }
136
162
  return [4 /*yield*/, this.request({
137
163
  path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
138
164
  method: 'DELETE',
139
165
  headers: headerParameters,
140
166
  query: queryParameters,
141
167
  }, initOverrides)];
142
- case 1:
143
- response = _a.sent();
168
+ case 3:
169
+ response = _c.sent();
144
170
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
145
171
  }
146
172
  });
@@ -170,23 +196,36 @@ var ProjectsApi = /** @class */ (function (_super) {
170
196
  */
171
197
  ProjectsApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
172
198
  return __awaiter(this, void 0, void 0, function () {
173
- var queryParameters, headerParameters, response;
174
- return __generator(this, function (_a) {
175
- switch (_a.label) {
199
+ var queryParameters, headerParameters, _a, _b, response;
200
+ return __generator(this, function (_c) {
201
+ switch (_c.label) {
176
202
  case 0:
177
203
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
178
204
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProject.');
179
205
  }
180
206
  queryParameters = {};
181
207
  headerParameters = {};
208
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
209
+ // oauth required
210
+ _a = headerParameters;
211
+ _b = "Authorization";
212
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
213
+ case 1:
214
+ // oauth required
215
+ _a[_b] = _c.sent();
216
+ _c.label = 2;
217
+ case 2:
218
+ if (this.configuration && this.configuration.apiKey) {
219
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
220
+ }
182
221
  return [4 /*yield*/, this.request({
183
222
  path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
184
223
  method: 'GET',
185
224
  headers: headerParameters,
186
225
  query: queryParameters,
187
226
  }, initOverrides)];
188
- case 1:
189
- response = _a.sent();
227
+ case 3:
228
+ response = _c.sent();
190
229
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
191
230
  }
192
231
  });
@@ -216,20 +255,33 @@ var ProjectsApi = /** @class */ (function (_super) {
216
255
  */
217
256
  ProjectsApi.prototype.getProjectsRaw = function (initOverrides) {
218
257
  return __awaiter(this, void 0, void 0, function () {
219
- var queryParameters, headerParameters, response;
220
- return __generator(this, function (_a) {
221
- switch (_a.label) {
258
+ var queryParameters, headerParameters, _a, _b, response;
259
+ return __generator(this, function (_c) {
260
+ switch (_c.label) {
222
261
  case 0:
223
262
  queryParameters = {};
224
263
  headerParameters = {};
264
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
265
+ // oauth required
266
+ _a = headerParameters;
267
+ _b = "Authorization";
268
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
269
+ case 1:
270
+ // oauth required
271
+ _a[_b] = _c.sent();
272
+ _c.label = 2;
273
+ case 2:
274
+ if (this.configuration && this.configuration.apiKey) {
275
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
276
+ }
225
277
  return [4 /*yield*/, this.request({
226
278
  path: "/dashboard/projects",
227
279
  method: 'GET',
228
280
  headers: headerParameters,
229
281
  query: queryParameters,
230
282
  }, initOverrides)];
231
- case 1:
232
- response = _a.sent();
283
+ case 3:
284
+ response = _c.sent();
233
285
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
234
286
  }
235
287
  });
@@ -259,23 +311,36 @@ var ProjectsApi = /** @class */ (function (_super) {
259
311
  */
260
312
  ProjectsApi.prototype.updateProjectRaw = function (requestParameters, initOverrides) {
261
313
  return __awaiter(this, void 0, void 0, function () {
262
- var queryParameters, headerParameters, response;
263
- return __generator(this, function (_a) {
264
- switch (_a.label) {
314
+ var queryParameters, headerParameters, _a, _b, response;
315
+ return __generator(this, function (_c) {
316
+ switch (_c.label) {
265
317
  case 0:
266
318
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
267
319
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
268
320
  }
269
321
  queryParameters = {};
270
322
  headerParameters = {};
323
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
324
+ // oauth required
325
+ _a = headerParameters;
326
+ _b = "Authorization";
327
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
328
+ case 1:
329
+ // oauth required
330
+ _a[_b] = _c.sent();
331
+ _c.label = 2;
332
+ case 2:
333
+ if (this.configuration && this.configuration.apiKey) {
334
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
335
+ }
271
336
  return [4 /*yield*/, this.request({
272
337
  path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
273
338
  method: 'PATCH',
274
339
  headers: headerParameters,
275
340
  query: queryParameters,
276
341
  }, initOverrides)];
277
- case 1:
278
- response = _a.sent();
342
+ case 3:
343
+ response = _c.sent();
279
344
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
280
345
  }
281
346
  });
@@ -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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2
5
+ * The version of the OpenAPI document: 1.0.4
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.2
8
+ * The version of the OpenAPI document: 1.0.4
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.2",
3
+ "version": "1.0.4",
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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,15 @@ 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("session-oauth", []);
69
+ }
70
+
71
+ if (this.configuration && this.configuration.apiKey) {
72
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
73
+ }
74
+
66
75
  const response = await this.request({
67
76
  path: `/dashboard/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
68
77
  method: 'GET',
@@ -95,6 +104,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
95
104
 
96
105
  const headerParameters: runtime.HTTPHeaders = {};
97
106
 
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ // oauth required
109
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
110
+ }
111
+
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
114
+ }
115
+
98
116
  const response = await this.request({
99
117
  path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
100
118
  method: 'GET',
@@ -127,6 +145,15 @@ export class IntegrationsApi extends runtime.BaseAPI {
127
145
 
128
146
  const headerParameters: runtime.HTTPHeaders = {};
129
147
 
148
+ if (this.configuration && this.configuration.accessToken) {
149
+ // oauth required
150
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
151
+ }
152
+
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
155
+ }
156
+
130
157
  const response = await this.request({
131
158
  path: `/dashboard/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
132
159
  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.2
7
+ * The version of the OpenAPI document: 1.0.4
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,15 @@ 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("session-oauth", []);
60
+ }
61
+
62
+ if (this.configuration && this.configuration.apiKey) {
63
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
64
+ }
65
+
57
66
  const response = await this.request({
58
67
  path: `/dashboard/projects`,
59
68
  method: 'POST',
@@ -86,6 +95,15 @@ export class ProjectsApi extends runtime.BaseAPI {
86
95
 
87
96
  const headerParameters: runtime.HTTPHeaders = {};
88
97
 
98
+ if (this.configuration && this.configuration.accessToken) {
99
+ // oauth required
100
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
101
+ }
102
+
103
+ if (this.configuration && this.configuration.apiKey) {
104
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
105
+ }
106
+
89
107
  const response = await this.request({
90
108
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
91
109
  method: 'DELETE',
@@ -118,6 +136,15 @@ export class ProjectsApi extends runtime.BaseAPI {
118
136
 
119
137
  const headerParameters: runtime.HTTPHeaders = {};
120
138
 
139
+ if (this.configuration && this.configuration.accessToken) {
140
+ // oauth required
141
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
142
+ }
143
+
144
+ if (this.configuration && this.configuration.apiKey) {
145
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
146
+ }
147
+
121
148
  const response = await this.request({
122
149
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
123
150
  method: 'GET',
@@ -146,6 +173,15 @@ export class ProjectsApi extends runtime.BaseAPI {
146
173
 
147
174
  const headerParameters: runtime.HTTPHeaders = {};
148
175
 
176
+ if (this.configuration && this.configuration.accessToken) {
177
+ // oauth required
178
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
179
+ }
180
+
181
+ if (this.configuration && this.configuration.apiKey) {
182
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
183
+ }
184
+
149
185
  const response = await this.request({
150
186
  path: `/dashboard/projects`,
151
187
  method: 'GET',
@@ -178,6 +214,15 @@ export class ProjectsApi extends runtime.BaseAPI {
178
214
 
179
215
  const headerParameters: runtime.HTTPHeaders = {};
180
216
 
217
+ if (this.configuration && this.configuration.accessToken) {
218
+ // oauth required
219
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
220
+ }
221
+
222
+ if (this.configuration && this.configuration.apiKey) {
223
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
224
+ }
225
+
181
226
  const response = await this.request({
182
227
  path: `/dashboard/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
183
228
  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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
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.2
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).