@teemill/projects 1.11.0 → 1.11.2
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/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +1 -1
- package/dist/apis/ProjectsApi.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/CreateInviteRequest.d.ts +1 -1
- package/dist/models/CreateInviteRequest.js +8 -11
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.js +12 -16
- package/dist/models/InstallTemplateRequest.d.ts +1 -1
- package/dist/models/InstallTemplateRequest.js +7 -12
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +14 -17
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +8 -11
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +16 -18
- package/dist/models/ProjectInvite.d.ts +1 -1
- package/dist/models/ProjectInvite.js +20 -19
- package/dist/models/ProjectInvites.d.ts +1 -1
- package/dist/models/ProjectInvites.js +11 -13
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +9 -14
- package/dist/models/ProjectUser.d.ts +16 -1
- package/dist/models/ProjectUser.js +34 -22
- package/dist/models/ProjectUserAvatar.d.ts +2 -2
- package/dist/models/ProjectUserAvatar.js +7 -12
- package/dist/models/ProjectUsers.d.ts +1 -1
- package/dist/models/ProjectUsers.js +11 -13
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +8 -11
- package/dist/models/SetupIntegrationRequest.d.ts +1 -1
- package/dist/models/SetupIntegrationRequest.js +8 -11
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +7 -12
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +1 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/CreateInviteRequest.ts +8 -13
- package/src/models/CreateProjectRequest.ts +12 -17
- package/src/models/InstallTemplateRequest.ts +8 -13
- package/src/models/Integration.ts +13 -18
- package/src/models/IntegrationsResponse.ts +8 -13
- package/src/models/Project.ts +14 -19
- package/src/models/ProjectInvite.ts +16 -21
- package/src/models/ProjectInvites.ts +10 -15
- package/src/models/ProjectLogo.ts +10 -15
- package/src/models/ProjectUser.ts +38 -23
- package/src/models/ProjectUserAvatar.ts +9 -14
- package/src/models/ProjectUsers.ts +10 -15
- package/src/models/ProjectsResponse.ts +8 -13
- package/src/models/SetupIntegrationRequest.ts +8 -13
- package/src/models/UpdateProjectRequest.ts +8 -13
- package/src/runtime.ts +1 -1
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { ProjectUserAvatar } from './ProjectUserAvatar';
|
|
17
17
|
import {
|
|
18
18
|
ProjectUserAvatarFromJSON,
|
|
@@ -32,6 +32,12 @@ export interface ProjectUser {
|
|
|
32
32
|
* @memberof ProjectUser
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProjectUser
|
|
39
|
+
*/
|
|
40
|
+
type?: ProjectUserTypeEnum;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {string}
|
|
@@ -64,19 +70,29 @@ export interface ProjectUser {
|
|
|
64
70
|
avatar: ProjectUserAvatar;
|
|
65
71
|
}
|
|
66
72
|
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const ProjectUserTypeEnum = {
|
|
78
|
+
User: 'user',
|
|
79
|
+
Service: 'service',
|
|
80
|
+
Ghost: 'ghost'
|
|
81
|
+
} as const;
|
|
82
|
+
export type ProjectUserTypeEnum = typeof ProjectUserTypeEnum[keyof typeof ProjectUserTypeEnum];
|
|
83
|
+
|
|
84
|
+
|
|
67
85
|
/**
|
|
68
86
|
* Check if a given object implements the ProjectUser interface.
|
|
69
87
|
*/
|
|
70
88
|
export function instanceOfProjectUser(value: object): boolean {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return isInstance;
|
|
89
|
+
if (!('id' in value)) return false;
|
|
90
|
+
if (!('firstName' in value)) return false;
|
|
91
|
+
if (!('lastName' in value)) return false;
|
|
92
|
+
if (!('username' in value)) return false;
|
|
93
|
+
if (!('email' in value)) return false;
|
|
94
|
+
if (!('avatar' in value)) return false;
|
|
95
|
+
return true;
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
export function ProjectUserFromJSON(json: any): ProjectUser {
|
|
@@ -84,12 +100,13 @@ export function ProjectUserFromJSON(json: any): ProjectUser {
|
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUser {
|
|
87
|
-
if (
|
|
103
|
+
if (json == null) {
|
|
88
104
|
return json;
|
|
89
105
|
}
|
|
90
106
|
return {
|
|
91
107
|
|
|
92
108
|
'id': json['id'],
|
|
109
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
93
110
|
'firstName': json['firstName'],
|
|
94
111
|
'lastName': json['lastName'],
|
|
95
112
|
'username': json['username'],
|
|
@@ -99,20 +116,18 @@ export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
99
116
|
}
|
|
100
117
|
|
|
101
118
|
export function ProjectUserToJSON(value?: ProjectUser | null): any {
|
|
102
|
-
if (value
|
|
103
|
-
return
|
|
104
|
-
}
|
|
105
|
-
if (value === null) {
|
|
106
|
-
return null;
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
107
121
|
}
|
|
108
122
|
return {
|
|
109
123
|
|
|
110
|
-
'id': value
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'type': value['type'],
|
|
126
|
+
'firstName': value['firstName'],
|
|
127
|
+
'lastName': value['lastName'],
|
|
128
|
+
'username': value['username'],
|
|
129
|
+
'email': value['email'],
|
|
130
|
+
'avatar': ProjectUserAvatarToJSON(value['avatar']),
|
|
116
131
|
};
|
|
117
132
|
}
|
|
118
133
|
|
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -24,16 +24,14 @@ export interface ProjectUserAvatar {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ProjectUserAvatar
|
|
26
26
|
*/
|
|
27
|
-
original?: string
|
|
27
|
+
original?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the ProjectUserAvatar interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfProjectUserAvatar(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
34
|
+
return true;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export function ProjectUserAvatarFromJSON(json: any): ProjectUserAvatar {
|
|
@@ -41,25 +39,22 @@ export function ProjectUserAvatarFromJSON(json: any): ProjectUserAvatar {
|
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export function ProjectUserAvatarFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUserAvatar {
|
|
44
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
45
43
|
return json;
|
|
46
44
|
}
|
|
47
45
|
return {
|
|
48
46
|
|
|
49
|
-
'original':
|
|
47
|
+
'original': json['original'] == null ? undefined : json['original'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function ProjectUserAvatarToJSON(value?: ProjectUserAvatar | null): any {
|
|
54
|
-
if (value
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
59
54
|
}
|
|
60
55
|
return {
|
|
61
56
|
|
|
62
|
-
'original': value
|
|
57
|
+
'original': value['original'],
|
|
63
58
|
};
|
|
64
59
|
}
|
|
65
60
|
|
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { ProjectUser } from './ProjectUser';
|
|
17
17
|
import {
|
|
18
18
|
ProjectUserFromJSON,
|
|
@@ -44,11 +44,9 @@ export interface ProjectUsers {
|
|
|
44
44
|
* Check if a given object implements the ProjectUsers interface.
|
|
45
45
|
*/
|
|
46
46
|
export function instanceOfProjectUsers(value: object): boolean {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return isInstance;
|
|
47
|
+
if (!('users' in value)) return false;
|
|
48
|
+
if (!('nextPageToken' in value)) return false;
|
|
49
|
+
return true;
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function ProjectUsersFromJSON(json: any): ProjectUsers {
|
|
@@ -56,7 +54,7 @@ export function ProjectUsersFromJSON(json: any): ProjectUsers {
|
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
export function ProjectUsersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUsers {
|
|
59
|
-
if (
|
|
57
|
+
if (json == null) {
|
|
60
58
|
return json;
|
|
61
59
|
}
|
|
62
60
|
return {
|
|
@@ -67,16 +65,13 @@ export function ProjectUsersFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function ProjectUsersToJSON(value?: ProjectUsers | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'users': ((value
|
|
79
|
-
'nextPageToken': value
|
|
73
|
+
'users': ((value['users'] as Array<any>).map(ProjectUserToJSON)),
|
|
74
|
+
'nextPageToken': value['nextPageToken'],
|
|
80
75
|
};
|
|
81
76
|
}
|
|
82
77
|
|
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { Project } from './Project';
|
|
17
17
|
import {
|
|
18
18
|
ProjectFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface ProjectsResponse {
|
|
|
38
38
|
* Check if a given object implements the ProjectsResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfProjectsResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('projects' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function ProjectsResponseFromJSON(json: any): ProjectsResponse {
|
|
@@ -49,7 +47,7 @@ export function ProjectsResponseFromJSON(json: any): ProjectsResponse {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function ProjectsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectsResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function ProjectsResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function ProjectsResponseToJSON(value?: ProjectsResponse | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'projects': ((value
|
|
65
|
+
'projects': ((value['projects'] as Array<any>).map(ProjectToJSON)),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -31,10 +31,8 @@ export interface SetupIntegrationRequest {
|
|
|
31
31
|
* Check if a given object implements the SetupIntegrationRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfSetupIntegrationRequest(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
34
|
+
if (!('config' in value)) return false;
|
|
35
|
+
return true;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
export function SetupIntegrationRequestFromJSON(json: any): SetupIntegrationRequest {
|
|
@@ -42,7 +40,7 @@ export function SetupIntegrationRequestFromJSON(json: any): SetupIntegrationRequ
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
export function SetupIntegrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetupIntegrationRequest {
|
|
45
|
-
if (
|
|
43
|
+
if (json == null) {
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
@@ -52,15 +50,12 @@ export function SetupIntegrationRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function SetupIntegrationRequestToJSON(value?: SetupIntegrationRequest | null): any {
|
|
55
|
-
if (value
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
60
55
|
}
|
|
61
56
|
return {
|
|
62
57
|
|
|
63
|
-
'config': value
|
|
58
|
+
'config': value['config'],
|
|
64
59
|
};
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -31,9 +31,7 @@ export interface UpdateProjectRequest {
|
|
|
31
31
|
* Check if a given object implements the UpdateProjectRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfUpdateProjectRequest(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
34
|
+
return true;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export function UpdateProjectRequestFromJSON(json: any): UpdateProjectRequest {
|
|
@@ -41,25 +39,22 @@ export function UpdateProjectRequestFromJSON(json: any): UpdateProjectRequest {
|
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export function UpdateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProjectRequest {
|
|
44
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
45
43
|
return json;
|
|
46
44
|
}
|
|
47
45
|
return {
|
|
48
46
|
|
|
49
|
-
'name':
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function UpdateProjectRequestToJSON(value?: UpdateProjectRequest | null): any {
|
|
54
|
-
if (value
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
59
54
|
}
|
|
60
55
|
return {
|
|
61
56
|
|
|
62
|
-
'name': value
|
|
57
|
+
'name': value['name'],
|
|
63
58
|
};
|
|
64
59
|
}
|
|
65
60
|
|
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.11.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|