@teemill/projects 1.4.0 → 1.5.0
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 +9 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +126 -2
- package/dist/apis/ProjectsApi.js +580 -14
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateInviteRequest.d.ts +31 -0
- package/dist/models/CreateInviteRequest.js +50 -0
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.js +1 -1
- package/dist/models/CreateUserRequest.d.ts +56 -0
- package/dist/models/CreateUserRequest.js +62 -0
- package/dist/models/CreateUserRequestAvatar.d.ts +31 -0
- package/dist/models/CreateUserRequestAvatar.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/ProjectInvite.d.ts +69 -0
- package/dist/models/ProjectInvite.js +70 -0
- package/dist/models/ProjectInvites.d.ts +32 -0
- package/dist/models/ProjectInvites.js +51 -0
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectUser.d.ts +62 -0
- package/dist/models/ProjectUser.js +65 -0
- package/dist/models/ProjectUsers.d.ts +32 -0
- package/dist/models/ProjectUsers.js +51 -0
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/models/UpdateUserRequest.d.ts +56 -0
- package/dist/models/UpdateUserRequest.js +59 -0
- package/dist/models/UpdateUserRequestAvatar.d.ts +31 -0
- package/dist/models/UpdateUserRequestAvatar.js +50 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +555 -14
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateInviteRequest.ts +66 -0
- package/src/models/CreateProjectRequest.ts +1 -1
- package/src/models/CreateUserRequest.ts +107 -0
- package/src/models/CreateUserRequestAvatar.ts +65 -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/ProjectInvite.ts +133 -0
- package/src/models/ProjectInvites.ts +73 -0
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectUser.ts +116 -0
- package/src/models/ProjectUsers.ts +73 -0
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/models/UpdateUserRequest.ts +104 -0
- package/src/models/UpdateUserRequestAvatar.ts +65 -0
- package/src/models/index.ts +9 -0
- package/src/runtime.ts +1 -1
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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.5.0
|
|
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 CreateInviteRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateInviteRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateInviteRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateInviteRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateInviteRequest(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "email" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
|
|
41
|
+
return CreateInviteRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInviteRequest {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'email': json['email'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CreateInviteRequestToJSON(value?: CreateInviteRequest | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'email': value.email,
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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,107 @@
|
|
|
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.5.0
|
|
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
|
+
import type { CreateUserRequestAvatar } from './CreateUserRequestAvatar';
|
|
17
|
+
import {
|
|
18
|
+
CreateUserRequestAvatarFromJSON,
|
|
19
|
+
CreateUserRequestAvatarFromJSONTyped,
|
|
20
|
+
CreateUserRequestAvatarToJSON,
|
|
21
|
+
} from './CreateUserRequestAvatar';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateUserRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateUserRequest {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateUserRequest
|
|
33
|
+
*/
|
|
34
|
+
firstName: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateUserRequest
|
|
39
|
+
*/
|
|
40
|
+
lastName: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateUserRequest
|
|
45
|
+
*/
|
|
46
|
+
username?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateUserRequest
|
|
51
|
+
*/
|
|
52
|
+
email: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CreateUserRequestAvatar}
|
|
56
|
+
* @memberof CreateUserRequest
|
|
57
|
+
*/
|
|
58
|
+
avatar?: CreateUserRequestAvatar;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the CreateUserRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfCreateUserRequest(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "firstName" in value;
|
|
67
|
+
isInstance = isInstance && "lastName" in value;
|
|
68
|
+
isInstance = isInstance && "email" in value;
|
|
69
|
+
|
|
70
|
+
return isInstance;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CreateUserRequestFromJSON(json: any): CreateUserRequest {
|
|
74
|
+
return CreateUserRequestFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CreateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequest {
|
|
78
|
+
if ((json === undefined) || (json === null)) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'firstName': json['firstName'],
|
|
84
|
+
'lastName': json['lastName'],
|
|
85
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
86
|
+
'email': json['email'],
|
|
87
|
+
'avatar': !exists(json, 'avatar') ? undefined : CreateUserRequestAvatarFromJSON(json['avatar']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function CreateUserRequestToJSON(value?: CreateUserRequest | null): any {
|
|
92
|
+
if (value === undefined) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
if (value === null) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'firstName': value.firstName,
|
|
101
|
+
'lastName': value.lastName,
|
|
102
|
+
'username': value.username,
|
|
103
|
+
'email': value.email,
|
|
104
|
+
'avatar': CreateUserRequestAvatarToJSON(value.avatar),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -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.5.0
|
|
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 CreateUserRequestAvatar
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateUserRequestAvatar {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateUserRequestAvatar
|
|
26
|
+
*/
|
|
27
|
+
original?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateUserRequestAvatar interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateUserRequestAvatar(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CreateUserRequestAvatarFromJSON(json: any): CreateUserRequestAvatar {
|
|
40
|
+
return CreateUserRequestAvatarFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CreateUserRequestAvatarFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequestAvatar {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'original': !exists(json, 'original') ? undefined : json['original'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function CreateUserRequestAvatarToJSON(value?: CreateUserRequestAvatar | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'original': value.original,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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,133 @@
|
|
|
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.5.0
|
|
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
|
+
import type { Project } from './Project';
|
|
17
|
+
import {
|
|
18
|
+
ProjectFromJSON,
|
|
19
|
+
ProjectFromJSONTyped,
|
|
20
|
+
ProjectToJSON,
|
|
21
|
+
} from './Project';
|
|
22
|
+
import type { ProjectUser } from './ProjectUser';
|
|
23
|
+
import {
|
|
24
|
+
ProjectUserFromJSON,
|
|
25
|
+
ProjectUserFromJSONTyped,
|
|
26
|
+
ProjectUserToJSON,
|
|
27
|
+
} from './ProjectUser';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ProjectInvite
|
|
33
|
+
*/
|
|
34
|
+
export interface ProjectInvite {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProjectInvite
|
|
39
|
+
*/
|
|
40
|
+
email: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProjectInvite
|
|
45
|
+
*/
|
|
46
|
+
status: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProjectInvite
|
|
51
|
+
*/
|
|
52
|
+
createdAt: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProjectInvite
|
|
57
|
+
*/
|
|
58
|
+
updatedAt: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Project}
|
|
62
|
+
* @memberof ProjectInvite
|
|
63
|
+
*/
|
|
64
|
+
project: Project;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {ProjectUser}
|
|
68
|
+
* @memberof ProjectInvite
|
|
69
|
+
*/
|
|
70
|
+
createdUser: ProjectUser;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {ProjectUser}
|
|
74
|
+
* @memberof ProjectInvite
|
|
75
|
+
*/
|
|
76
|
+
updatedUser: ProjectUser;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the ProjectInvite interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfProjectInvite(value: object): boolean {
|
|
83
|
+
let isInstance = true;
|
|
84
|
+
isInstance = isInstance && "email" in value;
|
|
85
|
+
isInstance = isInstance && "status" in value;
|
|
86
|
+
isInstance = isInstance && "createdAt" in value;
|
|
87
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
88
|
+
isInstance = isInstance && "project" in value;
|
|
89
|
+
isInstance = isInstance && "createdUser" in value;
|
|
90
|
+
isInstance = isInstance && "updatedUser" in value;
|
|
91
|
+
|
|
92
|
+
return isInstance;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProjectInviteFromJSON(json: any): ProjectInvite {
|
|
96
|
+
return ProjectInviteFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvite {
|
|
100
|
+
if ((json === undefined) || (json === null)) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'email': json['email'],
|
|
106
|
+
'status': json['status'],
|
|
107
|
+
'createdAt': json['createdAt'],
|
|
108
|
+
'updatedAt': json['updatedAt'],
|
|
109
|
+
'project': ProjectFromJSON(json['project']),
|
|
110
|
+
'createdUser': ProjectUserFromJSON(json['createdUser']),
|
|
111
|
+
'updatedUser': ProjectUserFromJSON(json['updatedUser']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
if (value === null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'email': value.email,
|
|
125
|
+
'status': value.status,
|
|
126
|
+
'createdAt': value.createdAt,
|
|
127
|
+
'updatedAt': value.updatedAt,
|
|
128
|
+
'project': ProjectToJSON(value.project),
|
|
129
|
+
'createdUser': ProjectUserToJSON(value.createdUser),
|
|
130
|
+
'updatedUser': ProjectUserToJSON(value.updatedUser),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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.5.0
|
|
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
|
+
import type { ProjectInvite } from './ProjectInvite';
|
|
17
|
+
import {
|
|
18
|
+
ProjectInviteFromJSON,
|
|
19
|
+
ProjectInviteFromJSONTyped,
|
|
20
|
+
ProjectInviteToJSON,
|
|
21
|
+
} from './ProjectInvite';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ProjectInvites
|
|
27
|
+
*/
|
|
28
|
+
export interface ProjectInvites {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ProjectInvite>}
|
|
32
|
+
* @memberof ProjectInvites
|
|
33
|
+
*/
|
|
34
|
+
invites: Array<ProjectInvite>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProjectInvites interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfProjectInvites(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "invites" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ProjectInvitesFromJSON(json: any): ProjectInvites {
|
|
48
|
+
return ProjectInvitesFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvites {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'invites': ((json['invites'] as Array<any>).map(ProjectInviteFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProjectInvitesToJSON(value?: ProjectInvites | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'invites': ((value.invites as Array<any>).map(ProjectInviteToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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,116 @@
|
|
|
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.5.0
|
|
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
|
+
import type { CreateUserRequestAvatar } from './CreateUserRequestAvatar';
|
|
17
|
+
import {
|
|
18
|
+
CreateUserRequestAvatarFromJSON,
|
|
19
|
+
CreateUserRequestAvatarFromJSONTyped,
|
|
20
|
+
CreateUserRequestAvatarToJSON,
|
|
21
|
+
} from './CreateUserRequestAvatar';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ProjectUser
|
|
27
|
+
*/
|
|
28
|
+
export interface ProjectUser {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ProjectUser
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProjectUser
|
|
39
|
+
*/
|
|
40
|
+
firstName: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProjectUser
|
|
45
|
+
*/
|
|
46
|
+
lastName: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProjectUser
|
|
51
|
+
*/
|
|
52
|
+
username?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProjectUser
|
|
57
|
+
*/
|
|
58
|
+
email: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreateUserRequestAvatar}
|
|
62
|
+
* @memberof ProjectUser
|
|
63
|
+
*/
|
|
64
|
+
avatar?: CreateUserRequestAvatar;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ProjectUser interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfProjectUser(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "id" in value;
|
|
73
|
+
isInstance = isInstance && "firstName" in value;
|
|
74
|
+
isInstance = isInstance && "lastName" in value;
|
|
75
|
+
isInstance = isInstance && "email" in value;
|
|
76
|
+
|
|
77
|
+
return isInstance;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ProjectUserFromJSON(json: any): ProjectUser {
|
|
81
|
+
return ProjectUserFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUser {
|
|
85
|
+
if ((json === undefined) || (json === null)) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'firstName': json['firstName'],
|
|
92
|
+
'lastName': json['lastName'],
|
|
93
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
94
|
+
'email': json['email'],
|
|
95
|
+
'avatar': !exists(json, 'avatar') ? undefined : CreateUserRequestAvatarFromJSON(json['avatar']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProjectUserToJSON(value?: ProjectUser | null): any {
|
|
100
|
+
if (value === undefined) {
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
if (value === null) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': value.id,
|
|
109
|
+
'firstName': value.firstName,
|
|
110
|
+
'lastName': value.lastName,
|
|
111
|
+
'username': value.username,
|
|
112
|
+
'email': value.email,
|
|
113
|
+
'avatar': CreateUserRequestAvatarToJSON(value.avatar),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|