@teemill/projects 1.1.3 → 1.1.5

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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +21 -17
  4. package/dist/apis/ProjectsApi.js +41 -31
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CreateProjectRequest.d.ts +31 -0
  8. package/dist/models/CreateProjectRequest.js +50 -0
  9. package/dist/models/Integration.d.ts +1 -1
  10. package/dist/models/Integration.js +1 -1
  11. package/dist/models/IntegrationInfo.d.ts +1 -1
  12. package/dist/models/IntegrationInfo.js +1 -1
  13. package/dist/models/IntegrationsResponse.d.ts +1 -1
  14. package/dist/models/IntegrationsResponse.js +1 -1
  15. package/dist/models/Project.d.ts +1 -1
  16. package/dist/models/Project.js +1 -1
  17. package/dist/models/ProjectLogo.d.ts +1 -1
  18. package/dist/models/ProjectLogo.js +1 -1
  19. package/dist/models/ProjectsResponse.d.ts +1 -1
  20. package/dist/models/ProjectsResponse.js +1 -1
  21. package/dist/models/UpdateProjectRequest.d.ts +31 -0
  22. package/dist/models/UpdateProjectRequest.js +50 -0
  23. package/dist/models/index.d.ts +2 -0
  24. package/dist/models/index.js +2 -0
  25. package/dist/runtime.d.ts +1 -1
  26. package/dist/runtime.js +1 -1
  27. package/package.json +1 -1
  28. package/src/apis/ProjectsApi.ts +69 -44
  29. package/src/models/ApiError.ts +1 -1
  30. package/src/models/CreateProjectRequest.ts +66 -0
  31. package/src/models/Integration.ts +1 -1
  32. package/src/models/IntegrationInfo.ts +1 -1
  33. package/src/models/IntegrationsResponse.ts +1 -1
  34. package/src/models/Project.ts +1 -1
  35. package/src/models/ProjectLogo.ts +1 -1
  36. package/src/models/ProjectsResponse.ts +1 -1
  37. package/src/models/UpdateProjectRequest.ts +65 -0
  38. package/src/models/index.ts +2 -0
  39. package/src/runtime.ts +1 -1
@@ -6,12 +6,14 @@ src/apis/ProjectsApi.ts
6
6
  src/apis/index.ts
7
7
  src/index.ts
8
8
  src/models/ApiError.ts
9
+ src/models/CreateProjectRequest.ts
9
10
  src/models/Integration.ts
10
11
  src/models/IntegrationInfo.ts
11
12
  src/models/IntegrationsResponse.ts
12
13
  src/models/Project.ts
13
14
  src/models/ProjectLogo.ts
14
15
  src/models/ProjectsResponse.ts
16
+ src/models/UpdateProjectRequest.ts
15
17
  src/models/index.ts
16
18
  src/runtime.ts
17
19
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.1.3
1
+ ## @teemill/projects@1.1.5
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.1.3 --save
39
+ npm install @teemill/projects@1.1.5 --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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,30 +10,34 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Integration, IntegrationsResponse, Project, ProjectsResponse } from '../models/index';
13
+ import type { CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectsResponse, UpdateProjectRequest } from '../models/index';
14
+ export interface CreateProjectOperationRequest {
15
+ createProjectRequest: CreateProjectRequest;
16
+ }
14
17
  export interface DeleteProjectRequest {
15
- projectId: string;
18
+ project: string;
16
19
  }
17
20
  export interface GetIntegrationRequest {
18
- projectId: string;
19
- integrationId: string;
21
+ project: string;
22
+ integration: string;
20
23
  }
21
24
  export interface GetIntegrationsRequest {
22
- projectId: string;
25
+ project: string;
23
26
  }
24
27
  export interface GetProjectRequest {
25
- projectId: string;
28
+ project: string;
26
29
  }
27
30
  export interface InstallIntegrationRequest {
28
- projectId: string;
29
- integrationId: string;
31
+ project: string;
32
+ integration: string;
30
33
  }
31
34
  export interface UninstallIntegrationRequest {
32
- projectId: string;
33
- integrationId: string;
35
+ project: string;
36
+ integration: string;
34
37
  }
35
- export interface UpdateProjectRequest {
36
- projectId: string;
38
+ export interface UpdateProjectOperationRequest {
39
+ project: string;
40
+ updateProjectRequest: UpdateProjectRequest;
37
41
  }
38
42
  /**
39
43
  *
@@ -43,12 +47,12 @@ export declare class ProjectsApi extends runtime.BaseAPI {
43
47
  * Create a new projects
44
48
  * Create project
45
49
  */
46
- createProjectRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
50
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
47
51
  /**
48
52
  * Create a new projects
49
53
  * Create project
50
54
  */
51
- createProject(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
55
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
52
56
  /**
53
57
  * Delete a project
54
58
  * Delete project
@@ -123,10 +127,10 @@ export declare class ProjectsApi extends runtime.BaseAPI {
123
127
  * Update a project
124
128
  * Update project
125
129
  */
126
- updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
130
+ updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
127
131
  /**
128
132
  * Update a project
129
133
  * Update project
130
134
  */
131
- updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
135
+ updateProject(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
132
136
  }
@@ -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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -79,14 +79,18 @@ var ProjectsApi = /** @class */ (function (_super) {
79
79
  * Create a new projects
80
80
  * Create project
81
81
  */
82
- ProjectsApi.prototype.createProjectRaw = function (initOverrides) {
82
+ ProjectsApi.prototype.createProjectRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
84
  var queryParameters, headerParameters, _a, _b, response;
85
85
  return __generator(this, function (_c) {
86
86
  switch (_c.label) {
87
87
  case 0:
88
+ if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
89
+ throw new runtime.RequiredError('createProjectRequest', 'Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
90
+ }
88
91
  queryParameters = {};
89
92
  headerParameters = {};
93
+ headerParameters['Content-Type'] = 'application/json';
90
94
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
91
95
  // oauth required
92
96
  _a = headerParameters;
@@ -105,6 +109,7 @@ var ProjectsApi = /** @class */ (function (_super) {
105
109
  method: 'POST',
106
110
  headers: headerParameters,
107
111
  query: queryParameters,
112
+ body: (0, index_1.CreateProjectRequestToJSON)(requestParameters.createProjectRequest),
108
113
  }, initOverrides)];
109
114
  case 3:
110
115
  response = _c.sent();
@@ -117,12 +122,12 @@ var ProjectsApi = /** @class */ (function (_super) {
117
122
  * Create a new projects
118
123
  * Create project
119
124
  */
120
- ProjectsApi.prototype.createProject = function (initOverrides) {
125
+ ProjectsApi.prototype.createProject = function (requestParameters, initOverrides) {
121
126
  return __awaiter(this, void 0, void 0, function () {
122
127
  var response;
123
128
  return __generator(this, function (_a) {
124
129
  switch (_a.label) {
125
- case 0: return [4 /*yield*/, this.createProjectRaw(initOverrides)];
130
+ case 0: return [4 /*yield*/, this.createProjectRaw(requestParameters, initOverrides)];
126
131
  case 1:
127
132
  response = _a.sent();
128
133
  return [4 /*yield*/, response.value()];
@@ -141,8 +146,8 @@ var ProjectsApi = /** @class */ (function (_super) {
141
146
  return __generator(this, function (_c) {
142
147
  switch (_c.label) {
143
148
  case 0:
144
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
145
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProject.');
149
+ if (requestParameters.project === null || requestParameters.project === undefined) {
150
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteProject.');
146
151
  }
147
152
  queryParameters = {};
148
153
  headerParameters = {};
@@ -160,7 +165,7 @@ var ProjectsApi = /** @class */ (function (_super) {
160
165
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
161
166
  }
162
167
  return [4 /*yield*/, this.request({
163
- path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
168
+ path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
164
169
  method: 'DELETE',
165
170
  headers: headerParameters,
166
171
  query: queryParameters,
@@ -200,11 +205,11 @@ var ProjectsApi = /** @class */ (function (_super) {
200
205
  return __generator(this, function (_c) {
201
206
  switch (_c.label) {
202
207
  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.');
208
+ if (requestParameters.project === null || requestParameters.project === undefined) {
209
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegration.');
205
210
  }
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.');
211
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
212
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
208
213
  }
209
214
  queryParameters = {};
210
215
  headerParameters = {};
@@ -222,7 +227,7 @@ var ProjectsApi = /** @class */ (function (_super) {
222
227
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
223
228
  }
224
229
  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))),
230
+ path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
226
231
  method: 'GET',
227
232
  headers: headerParameters,
228
233
  query: queryParameters,
@@ -262,8 +267,8 @@ var ProjectsApi = /** @class */ (function (_super) {
262
267
  return __generator(this, function (_c) {
263
268
  switch (_c.label) {
264
269
  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.');
270
+ if (requestParameters.project === null || requestParameters.project === undefined) {
271
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegrations.');
267
272
  }
268
273
  queryParameters = {};
269
274
  headerParameters = {};
@@ -281,7 +286,7 @@ var ProjectsApi = /** @class */ (function (_super) {
281
286
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
282
287
  }
283
288
  return [4 /*yield*/, this.request({
284
- path: "/v1/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
289
+ path: "/v1/projects/{project}/integrations".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
285
290
  method: 'GET',
286
291
  headers: headerParameters,
287
292
  query: queryParameters,
@@ -321,8 +326,8 @@ var ProjectsApi = /** @class */ (function (_super) {
321
326
  return __generator(this, function (_c) {
322
327
  switch (_c.label) {
323
328
  case 0:
324
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
325
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProject.');
329
+ if (requestParameters.project === null || requestParameters.project === undefined) {
330
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getProject.');
326
331
  }
327
332
  queryParameters = {};
328
333
  headerParameters = {};
@@ -340,7 +345,7 @@ var ProjectsApi = /** @class */ (function (_super) {
340
345
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
341
346
  }
342
347
  return [4 /*yield*/, this.request({
343
- path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
348
+ path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
344
349
  method: 'GET',
345
350
  headers: headerParameters,
346
351
  query: queryParameters,
@@ -436,11 +441,11 @@ var ProjectsApi = /** @class */ (function (_super) {
436
441
  return __generator(this, function (_c) {
437
442
  switch (_c.label) {
438
443
  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.');
444
+ if (requestParameters.project === null || requestParameters.project === undefined) {
445
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installIntegration.');
441
446
  }
442
- if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
443
- throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling installIntegration.');
447
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
448
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling installIntegration.');
444
449
  }
445
450
  queryParameters = {};
446
451
  headerParameters = {};
@@ -458,7 +463,7 @@ var ProjectsApi = /** @class */ (function (_super) {
458
463
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
459
464
  }
460
465
  return [4 /*yield*/, this.request({
461
- path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
466
+ path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
462
467
  method: 'POST',
463
468
  headers: headerParameters,
464
469
  query: queryParameters,
@@ -498,11 +503,11 @@ var ProjectsApi = /** @class */ (function (_super) {
498
503
  return __generator(this, function (_c) {
499
504
  switch (_c.label) {
500
505
  case 0:
501
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
502
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
506
+ if (requestParameters.project === null || requestParameters.project === undefined) {
507
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling uninstallIntegration.');
503
508
  }
504
- if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
505
- throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
509
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
510
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling uninstallIntegration.');
506
511
  }
507
512
  queryParameters = {};
508
513
  headerParameters = {};
@@ -520,7 +525,7 @@ var ProjectsApi = /** @class */ (function (_super) {
520
525
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
521
526
  }
522
527
  return [4 /*yield*/, this.request({
523
- path: "/v1/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
528
+ path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
524
529
  method: 'DELETE',
525
530
  headers: headerParameters,
526
531
  query: queryParameters,
@@ -558,11 +563,15 @@ var ProjectsApi = /** @class */ (function (_super) {
558
563
  return __generator(this, function (_c) {
559
564
  switch (_c.label) {
560
565
  case 0:
561
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
562
- throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
566
+ if (requestParameters.project === null || requestParameters.project === undefined) {
567
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateProject.');
568
+ }
569
+ if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
570
+ throw new runtime.RequiredError('updateProjectRequest', 'Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
563
571
  }
564
572
  queryParameters = {};
565
573
  headerParameters = {};
574
+ headerParameters['Content-Type'] = 'application/json';
566
575
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
567
576
  // oauth required
568
577
  _a = headerParameters;
@@ -577,10 +586,11 @@ var ProjectsApi = /** @class */ (function (_super) {
577
586
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
578
587
  }
579
588
  return [4 /*yield*/, this.request({
580
- path: "/v1/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
589
+ path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
581
590
  method: 'PATCH',
582
591
  headers: headerParameters,
583
592
  query: queryParameters,
593
+ body: (0, index_1.UpdateProjectRequestToJSON)(requestParameters.updateProjectRequest),
584
594
  }, initOverrides)];
585
595
  case 3:
586
596
  response = _c.sent();
@@ -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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.1.5
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateProjectRequest
16
+ */
17
+ export interface CreateProjectRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateProjectRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateProjectRequest interface.
27
+ */
28
+ export declare function instanceOfCreateProjectRequest(value: object): boolean;
29
+ export declare function CreateProjectRequestFromJSON(json: any): CreateProjectRequest;
30
+ export declare function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest;
31
+ export declare function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.1.5
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateProjectRequestToJSON = exports.CreateProjectRequestFromJSONTyped = exports.CreateProjectRequestFromJSON = exports.instanceOfCreateProjectRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateProjectRequest interface.
19
+ */
20
+ function instanceOfCreateProjectRequest(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
26
+ function CreateProjectRequestFromJSON(json) {
27
+ return CreateProjectRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
30
+ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'],
36
+ };
37
+ }
38
+ exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
39
+ function CreateProjectRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ };
49
+ }
50
+ exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
@@ -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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.1.5
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateProjectRequest
16
+ */
17
+ export interface UpdateProjectRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateProjectRequest
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateProjectRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateProjectRequest(value: object): boolean;
29
+ export declare function UpdateProjectRequestFromJSON(json: any): UpdateProjectRequest;
30
+ export declare function UpdateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProjectRequest;
31
+ export declare function UpdateProjectRequestToJSON(value?: UpdateProjectRequest | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.1.5
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateProjectRequestToJSON = exports.UpdateProjectRequestFromJSONTyped = exports.UpdateProjectRequestFromJSON = exports.instanceOfUpdateProjectRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the UpdateProjectRequest interface.
20
+ */
21
+ function instanceOfUpdateProjectRequest(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfUpdateProjectRequest = instanceOfUpdateProjectRequest;
26
+ function UpdateProjectRequestFromJSON(json) {
27
+ return UpdateProjectRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.UpdateProjectRequestFromJSON = UpdateProjectRequestFromJSON;
30
+ function UpdateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
+ };
37
+ }
38
+ exports.UpdateProjectRequestFromJSONTyped = UpdateProjectRequestFromJSONTyped;
39
+ function UpdateProjectRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ };
49
+ }
50
+ exports.UpdateProjectRequestToJSON = UpdateProjectRequestToJSON;
@@ -1,7 +1,9 @@
1
1
  export * from './ApiError';
2
+ export * from './CreateProjectRequest';
2
3
  export * from './Integration';
3
4
  export * from './IntegrationInfo';
4
5
  export * from './IntegrationsResponse';
5
6
  export * from './Project';
6
7
  export * from './ProjectLogo';
7
8
  export * from './ProjectsResponse';
9
+ export * from './UpdateProjectRequest';
@@ -17,9 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ApiError"), exports);
20
+ __exportStar(require("./CreateProjectRequest"), exports);
20
21
  __exportStar(require("./Integration"), exports);
21
22
  __exportStar(require("./IntegrationInfo"), exports);
22
23
  __exportStar(require("./IntegrationsResponse"), exports);
23
24
  __exportStar(require("./Project"), exports);
24
25
  __exportStar(require("./ProjectLogo"), exports);
25
26
  __exportStar(require("./ProjectsResponse"), exports);
27
+ __exportStar(require("./UpdateProjectRequest"), exports);
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.1.3
5
+ * The version of the OpenAPI document: 1.1.5
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.1.3
8
+ * The version of the OpenAPI document: 1.1.5
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.1.3",
3
+ "version": "1.1.5",
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,14 +16,18 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
+ CreateProjectRequest,
19
20
  Integration,
20
21
  IntegrationsResponse,
21
22
  Project,
22
23
  ProjectsResponse,
24
+ UpdateProjectRequest,
23
25
  } from '../models/index';
24
26
  import {
25
27
  ApiErrorFromJSON,
26
28
  ApiErrorToJSON,
29
+ CreateProjectRequestFromJSON,
30
+ CreateProjectRequestToJSON,
27
31
  IntegrationFromJSON,
28
32
  IntegrationToJSON,
29
33
  IntegrationsResponseFromJSON,
@@ -32,37 +36,44 @@ import {
32
36
  ProjectToJSON,
33
37
  ProjectsResponseFromJSON,
34
38
  ProjectsResponseToJSON,
39
+ UpdateProjectRequestFromJSON,
40
+ UpdateProjectRequestToJSON,
35
41
  } from '../models/index';
36
42
 
43
+ export interface CreateProjectOperationRequest {
44
+ createProjectRequest: CreateProjectRequest;
45
+ }
46
+
37
47
  export interface DeleteProjectRequest {
38
- projectId: string;
48
+ project: string;
39
49
  }
40
50
 
41
51
  export interface GetIntegrationRequest {
42
- projectId: string;
43
- integrationId: string;
52
+ project: string;
53
+ integration: string;
44
54
  }
45
55
 
46
56
  export interface GetIntegrationsRequest {
47
- projectId: string;
57
+ project: string;
48
58
  }
49
59
 
50
60
  export interface GetProjectRequest {
51
- projectId: string;
61
+ project: string;
52
62
  }
53
63
 
54
64
  export interface InstallIntegrationRequest {
55
- projectId: string;
56
- integrationId: string;
65
+ project: string;
66
+ integration: string;
57
67
  }
58
68
 
59
69
  export interface UninstallIntegrationRequest {
60
- projectId: string;
61
- integrationId: string;
70
+ project: string;
71
+ integration: string;
62
72
  }
63
73
 
64
- export interface UpdateProjectRequest {
65
- projectId: string;
74
+ export interface UpdateProjectOperationRequest {
75
+ project: string;
76
+ updateProjectRequest: UpdateProjectRequest;
66
77
  }
67
78
 
68
79
  /**
@@ -74,11 +85,17 @@ export class ProjectsApi extends runtime.BaseAPI {
74
85
  * Create a new projects
75
86
  * Create project
76
87
  */
77
- async createProjectRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
88
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
89
+ if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
90
+ throw new runtime.RequiredError('createProjectRequest','Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
91
+ }
92
+
78
93
  const queryParameters: any = {};
79
94
 
80
95
  const headerParameters: runtime.HTTPHeaders = {};
81
96
 
97
+ headerParameters['Content-Type'] = 'application/json';
98
+
82
99
  if (this.configuration && this.configuration.accessToken) {
83
100
  // oauth required
84
101
  headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
@@ -93,6 +110,7 @@ export class ProjectsApi extends runtime.BaseAPI {
93
110
  method: 'POST',
94
111
  headers: headerParameters,
95
112
  query: queryParameters,
113
+ body: CreateProjectRequestToJSON(requestParameters.createProjectRequest),
96
114
  }, initOverrides);
97
115
 
98
116
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
@@ -102,8 +120,8 @@ export class ProjectsApi extends runtime.BaseAPI {
102
120
  * Create a new projects
103
121
  * Create project
104
122
  */
105
- async createProject(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
106
- const response = await this.createProjectRaw(initOverrides);
123
+ async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
124
+ const response = await this.createProjectRaw(requestParameters, initOverrides);
107
125
  return await response.value();
108
126
  }
109
127
 
@@ -112,8 +130,8 @@ export class ProjectsApi extends runtime.BaseAPI {
112
130
  * Delete project
113
131
  */
114
132
  async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
115
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
116
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling deleteProject.');
133
+ if (requestParameters.project === null || requestParameters.project === undefined) {
134
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteProject.');
117
135
  }
118
136
 
119
137
  const queryParameters: any = {};
@@ -130,7 +148,7 @@ export class ProjectsApi extends runtime.BaseAPI {
130
148
  }
131
149
 
132
150
  const response = await this.request({
133
- path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
151
+ path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
134
152
  method: 'DELETE',
135
153
  headers: headerParameters,
136
154
  query: queryParameters,
@@ -153,12 +171,12 @@ export class ProjectsApi extends runtime.BaseAPI {
153
171
  * Get integration
154
172
  */
155
173
  async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
156
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
157
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
174
+ if (requestParameters.project === null || requestParameters.project === undefined) {
175
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getIntegration.');
158
176
  }
159
177
 
160
- if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
161
- throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
178
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
179
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
162
180
  }
163
181
 
164
182
  const queryParameters: any = {};
@@ -175,7 +193,7 @@ export class ProjectsApi extends runtime.BaseAPI {
175
193
  }
176
194
 
177
195
  const response = await this.request({
178
- path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
196
+ path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
179
197
  method: 'GET',
180
198
  headers: headerParameters,
181
199
  query: queryParameters,
@@ -198,8 +216,8 @@ export class ProjectsApi extends runtime.BaseAPI {
198
216
  * List integrations
199
217
  */
200
218
  async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
201
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
202
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
219
+ if (requestParameters.project === null || requestParameters.project === undefined) {
220
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getIntegrations.');
203
221
  }
204
222
 
205
223
  const queryParameters: any = {};
@@ -216,7 +234,7 @@ export class ProjectsApi extends runtime.BaseAPI {
216
234
  }
217
235
 
218
236
  const response = await this.request({
219
- path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
237
+ path: `/v1/projects/{project}/integrations`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
220
238
  method: 'GET',
221
239
  headers: headerParameters,
222
240
  query: queryParameters,
@@ -239,8 +257,8 @@ export class ProjectsApi extends runtime.BaseAPI {
239
257
  * Get project
240
258
  */
241
259
  async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
242
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
243
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProject.');
260
+ if (requestParameters.project === null || requestParameters.project === undefined) {
261
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getProject.');
244
262
  }
245
263
 
246
264
  const queryParameters: any = {};
@@ -257,7 +275,7 @@ export class ProjectsApi extends runtime.BaseAPI {
257
275
  }
258
276
 
259
277
  const response = await this.request({
260
- path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
278
+ path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
261
279
  method: 'GET',
262
280
  headers: headerParameters,
263
281
  query: queryParameters,
@@ -317,12 +335,12 @@ export class ProjectsApi extends runtime.BaseAPI {
317
335
  * Install integration
318
336
  */
319
337
  async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
320
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
321
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
338
+ if (requestParameters.project === null || requestParameters.project === undefined) {
339
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installIntegration.');
322
340
  }
323
341
 
324
- if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
325
- throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling installIntegration.');
342
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
343
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling installIntegration.');
326
344
  }
327
345
 
328
346
  const queryParameters: any = {};
@@ -339,7 +357,7 @@ export class ProjectsApi extends runtime.BaseAPI {
339
357
  }
340
358
 
341
359
  const response = await this.request({
342
- path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
360
+ path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
343
361
  method: 'POST',
344
362
  headers: headerParameters,
345
363
  query: queryParameters,
@@ -362,12 +380,12 @@ export class ProjectsApi extends runtime.BaseAPI {
362
380
  * Uninstall integration
363
381
  */
364
382
  async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
365
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
366
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
383
+ if (requestParameters.project === null || requestParameters.project === undefined) {
384
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling uninstallIntegration.');
367
385
  }
368
386
 
369
- if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
370
- throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
387
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
388
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling uninstallIntegration.');
371
389
  }
372
390
 
373
391
  const queryParameters: any = {};
@@ -384,7 +402,7 @@ export class ProjectsApi extends runtime.BaseAPI {
384
402
  }
385
403
 
386
404
  const response = await this.request({
387
- path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
405
+ path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
388
406
  method: 'DELETE',
389
407
  headers: headerParameters,
390
408
  query: queryParameters,
@@ -405,15 +423,21 @@ export class ProjectsApi extends runtime.BaseAPI {
405
423
  * Update a project
406
424
  * Update project
407
425
  */
408
- async updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
409
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
410
- throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
426
+ async updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
427
+ if (requestParameters.project === null || requestParameters.project === undefined) {
428
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateProject.');
429
+ }
430
+
431
+ if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
432
+ throw new runtime.RequiredError('updateProjectRequest','Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
411
433
  }
412
434
 
413
435
  const queryParameters: any = {};
414
436
 
415
437
  const headerParameters: runtime.HTTPHeaders = {};
416
438
 
439
+ headerParameters['Content-Type'] = 'application/json';
440
+
417
441
  if (this.configuration && this.configuration.accessToken) {
418
442
  // oauth required
419
443
  headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
@@ -424,10 +448,11 @@ export class ProjectsApi extends runtime.BaseAPI {
424
448
  }
425
449
 
426
450
  const response = await this.request({
427
- path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
451
+ path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
428
452
  method: 'PATCH',
429
453
  headers: headerParameters,
430
454
  query: queryParameters,
455
+ body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
431
456
  }, initOverrides);
432
457
 
433
458
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
@@ -437,7 +462,7 @@ export class ProjectsApi extends runtime.BaseAPI {
437
462
  * Update a project
438
463
  * Update project
439
464
  */
440
- async updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
465
+ async updateProject(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
441
466
  const response = await this.updateProjectRaw(requestParameters, initOverrides);
442
467
  return await response.value();
443
468
  }
@@ -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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Projects API
5
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.1.5
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateProjectRequest
20
+ */
21
+ export interface CreateProjectRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateProjectRequest
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateProjectRequest interface.
32
+ */
33
+ export function instanceOfCreateProjectRequest(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "name" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
41
+ return CreateProjectRequestFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'name': json['name'],
51
+ };
52
+ }
53
+
54
+ export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'name': value.name,
64
+ };
65
+ }
66
+
@@ -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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Projects API
5
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.1.5
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateProjectRequest
20
+ */
21
+ export interface UpdateProjectRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateProjectRequest
26
+ */
27
+ name?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateProjectRequest interface.
32
+ */
33
+ export function instanceOfUpdateProjectRequest(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function UpdateProjectRequestFromJSON(json: any): UpdateProjectRequest {
40
+ return UpdateProjectRequestFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function UpdateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProjectRequest {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'name': !exists(json, 'name') ? undefined : json['name'],
50
+ };
51
+ }
52
+
53
+ export function UpdateProjectRequestToJSON(value?: UpdateProjectRequest | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'name': value.name,
63
+ };
64
+ }
65
+
@@ -1,9 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiError';
4
+ export * from './CreateProjectRequest';
4
5
  export * from './Integration';
5
6
  export * from './IntegrationInfo';
6
7
  export * from './IntegrationsResponse';
7
8
  export * from './Project';
8
9
  export * from './ProjectLogo';
9
10
  export * from './ProjectsResponse';
11
+ export * from './UpdateProjectRequest';
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.1.3
7
+ * The version of the OpenAPI document: 1.1.5
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).