@teemill/projects 1.1.4 → 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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +11 -7
- package/dist/apis/ProjectsApi.js +14 -4
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +31 -0
- package/dist/models/CreateProjectRequest.js +50 -0
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.d.ts +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +31 -0
- package/dist/models/UpdateProjectRequest.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +32 -7
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateProjectRequest.ts +66 -0
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +65 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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,7 +10,10 @@
|
|
|
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
18
|
project: string;
|
|
16
19
|
}
|
|
@@ -32,8 +35,9 @@ export interface UninstallIntegrationRequest {
|
|
|
32
35
|
project: string;
|
|
33
36
|
integration: string;
|
|
34
37
|
}
|
|
35
|
-
export interface
|
|
38
|
+
export interface UpdateProjectOperationRequest {
|
|
36
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:
|
|
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:
|
|
135
|
+
updateProject(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
132
136
|
}
|
package/dist/apis/ProjectsApi.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.
|
|
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()];
|
|
@@ -561,8 +566,12 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
561
566
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
562
567
|
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateProject.');
|
|
563
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.');
|
|
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;
|
|
@@ -581,6 +590,7 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
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.
|
|
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/models/ApiError.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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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/dist/models/Project.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.
|
|
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/models/Project.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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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
package/src/apis/ProjectsApi.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.
|
|
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,8 +36,14 @@ 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
48
|
project: string;
|
|
39
49
|
}
|
|
@@ -61,8 +71,9 @@ export interface UninstallIntegrationRequest {
|
|
|
61
71
|
integration: string;
|
|
62
72
|
}
|
|
63
73
|
|
|
64
|
-
export interface
|
|
74
|
+
export interface UpdateProjectOperationRequest {
|
|
65
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
|
|
|
@@ -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:
|
|
426
|
+
async updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
409
427
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
410
428
|
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateProject.');
|
|
411
429
|
}
|
|
412
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.');
|
|
433
|
+
}
|
|
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", []);
|
|
@@ -428,6 +452,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
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:
|
|
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
|
}
|
package/src/models/ApiError.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.
|
|
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.
|
|
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.
|
|
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.
|
|
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).
|
package/src/models/Project.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.
|
|
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.
|
|
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.
|
|
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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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.
|
|
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).
|