@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
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.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
|
|
@@ -37,10 +37,8 @@ export interface ApiError {
|
|
|
37
37
|
* Check if a given object implements the ApiError interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfApiError(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
40
|
+
if (!('message' in value)) return false;
|
|
41
|
+
return true;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export function ApiErrorFromJSON(json: any): ApiError {
|
|
@@ -48,27 +46,24 @@ export function ApiErrorFromJSON(json: any): ApiError {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
|
51
|
-
if (
|
|
49
|
+
if (json == null) {
|
|
52
50
|
return json;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
53
|
|
|
56
|
-
'code':
|
|
54
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
57
55
|
'message': json['message'],
|
|
58
56
|
};
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function ApiErrorToJSON(value?: ApiError | 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
|
-
'code': value
|
|
71
|
-
'message': value
|
|
65
|
+
'code': value['code'],
|
|
66
|
+
'message': value['message'],
|
|
72
67
|
};
|
|
73
68
|
}
|
|
74
69
|
|
|
@@ -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 CreateInviteRequest {
|
|
|
31
31
|
* Check if a given object implements the CreateInviteRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfCreateInviteRequest(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
34
|
+
if (!('email' in value)) return false;
|
|
35
|
+
return true;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
|
|
@@ -42,7 +40,7 @@ export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInviteRequest {
|
|
45
|
-
if (
|
|
43
|
+
if (json == null) {
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
@@ -52,15 +50,12 @@ export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function CreateInviteRequestToJSON(value?: CreateInviteRequest | 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
|
-
'email': value
|
|
58
|
+
'email': value['email'],
|
|
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
|
|
@@ -43,10 +43,8 @@ export interface CreateProjectRequest {
|
|
|
43
43
|
* Check if a given object implements the CreateProjectRequest interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfCreateProjectRequest(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return isInstance;
|
|
46
|
+
if (!('name' in value)) return false;
|
|
47
|
+
return true;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
|
|
@@ -54,29 +52,26 @@ export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
|
|
57
|
-
if (
|
|
55
|
+
if (json == null) {
|
|
58
56
|
return json;
|
|
59
57
|
}
|
|
60
58
|
return {
|
|
61
59
|
|
|
62
60
|
'name': json['name'],
|
|
63
|
-
'template':
|
|
64
|
-
'config':
|
|
61
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
62
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
65
63
|
};
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any {
|
|
69
|
-
if (value
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
if (value === null) {
|
|
73
|
-
return null;
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
74
69
|
}
|
|
75
70
|
return {
|
|
76
71
|
|
|
77
|
-
'name': value
|
|
78
|
-
'template': value
|
|
79
|
-
'config': value
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'template': value['template'],
|
|
74
|
+
'config': value['config'],
|
|
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
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -31,9 +31,7 @@ export interface InstallTemplateRequest {
|
|
|
31
31
|
* Check if a given object implements the InstallTemplateRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfInstallTemplateRequest(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
34
|
+
return true;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export function InstallTemplateRequestFromJSON(json: any): InstallTemplateRequest {
|
|
@@ -41,25 +39,22 @@ export function InstallTemplateRequestFromJSON(json: any): InstallTemplateReques
|
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export function InstallTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallTemplateRequest {
|
|
44
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
45
43
|
return json;
|
|
46
44
|
}
|
|
47
45
|
return {
|
|
48
46
|
|
|
49
|
-
'config':
|
|
47
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function InstallTemplateRequestToJSON(value?: InstallTemplateRequest | 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
|
-
'config': value
|
|
57
|
+
'config': value['config'],
|
|
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
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -49,11 +49,9 @@ export interface Integration {
|
|
|
49
49
|
* Check if a given object implements the Integration interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfIntegration(value: object): boolean {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return isInstance;
|
|
52
|
+
if (!('code' in value)) return false;
|
|
53
|
+
if (!('config' in value)) return false;
|
|
54
|
+
return true;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export function IntegrationFromJSON(json: any): Integration {
|
|
@@ -61,30 +59,27 @@ export function IntegrationFromJSON(json: any): Integration {
|
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
|
|
64
|
-
if (
|
|
62
|
+
if (json == null) {
|
|
65
63
|
return json;
|
|
66
64
|
}
|
|
67
65
|
return {
|
|
68
66
|
|
|
69
|
-
'id':
|
|
67
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
70
68
|
'code': json['code'],
|
|
71
69
|
'config': json['config'],
|
|
72
|
-
'setupAt':
|
|
70
|
+
'setupAt': json['setupAt'] == null ? undefined : (new Date(json['setupAt'])),
|
|
73
71
|
};
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
export function IntegrationToJSON(value?: Integration | null): any {
|
|
77
|
-
if (value
|
|
78
|
-
return
|
|
79
|
-
}
|
|
80
|
-
if (value === null) {
|
|
81
|
-
return null;
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
82
77
|
}
|
|
83
78
|
return {
|
|
84
79
|
|
|
85
|
-
'code': value
|
|
86
|
-
'config': value
|
|
87
|
-
'setupAt': value
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'config': value['config'],
|
|
82
|
+
'setupAt': value['setupAt'] == null ? undefined : ((value['setupAt']).toISOString()),
|
|
88
83
|
};
|
|
89
84
|
}
|
|
90
85
|
|
|
@@ -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 { Integration } from './Integration';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntegrationsResponse {
|
|
|
38
38
|
* Check if a given object implements the IntegrationsResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationsResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('integrations' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
@@ -49,7 +47,7 @@ export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntegrationsResponseToJSON(value?: IntegrationsResponse | 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
|
-
'integrations': ((value
|
|
65
|
+
'integrations': ((value['integrations'] as Array<any>).map(IntegrationToJSON)),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
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.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 { ProjectLogo } from './ProjectLogo';
|
|
17
17
|
import {
|
|
18
18
|
ProjectLogoFromJSON,
|
|
@@ -56,12 +56,10 @@ export interface Project {
|
|
|
56
56
|
* Check if a given object implements the Project interface.
|
|
57
57
|
*/
|
|
58
58
|
export function instanceOfProject(value: object): boolean {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return isInstance;
|
|
59
|
+
if (!('id' in value)) return false;
|
|
60
|
+
if (!('name' in value)) return false;
|
|
61
|
+
if (!('logo' in value)) return false;
|
|
62
|
+
return true;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
export function ProjectFromJSON(json: any): Project {
|
|
@@ -69,7 +67,7 @@ export function ProjectFromJSON(json: any): Project {
|
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
|
|
72
|
-
if (
|
|
70
|
+
if (json == null) {
|
|
73
71
|
return json;
|
|
74
72
|
}
|
|
75
73
|
return {
|
|
@@ -77,23 +75,20 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
77
75
|
'id': json['id'],
|
|
78
76
|
'name': json['name'],
|
|
79
77
|
'logo': ProjectLogoFromJSON(json['logo']),
|
|
80
|
-
'integrations':
|
|
78
|
+
'integrations': json['integrations'] == null ? undefined : json['integrations'],
|
|
81
79
|
};
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
export function ProjectToJSON(value?: Project | null): any {
|
|
85
|
-
if (value
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
if (value === null) {
|
|
89
|
-
return null;
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
90
85
|
}
|
|
91
86
|
return {
|
|
92
87
|
|
|
93
|
-
'id': value
|
|
94
|
-
'name': value
|
|
95
|
-
'logo': ProjectLogoToJSON(value
|
|
96
|
-
'integrations': value
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'logo': ProjectLogoToJSON(value['logo']),
|
|
91
|
+
'integrations': value['integrations'],
|
|
97
92
|
};
|
|
98
93
|
}
|
|
99
94
|
|
|
@@ -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,
|
|
@@ -62,14 +62,12 @@ export interface ProjectInvite {
|
|
|
62
62
|
* Check if a given object implements the ProjectInvite interface.
|
|
63
63
|
*/
|
|
64
64
|
export function instanceOfProjectInvite(value: object): boolean {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return isInstance;
|
|
65
|
+
if (!('id' in value)) return false;
|
|
66
|
+
if (!('inviteeEmail' in value)) return false;
|
|
67
|
+
if (!('createdAt' in value)) return false;
|
|
68
|
+
if (!('expiresAt' in value)) return false;
|
|
69
|
+
if (!('inviter' in value)) return false;
|
|
70
|
+
return true;
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
export function ProjectInviteFromJSON(json: any): ProjectInvite {
|
|
@@ -77,7 +75,7 @@ export function ProjectInviteFromJSON(json: any): ProjectInvite {
|
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvite {
|
|
80
|
-
if (
|
|
78
|
+
if (json == null) {
|
|
81
79
|
return json;
|
|
82
80
|
}
|
|
83
81
|
return {
|
|
@@ -91,19 +89,16 @@ export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
|
|
94
|
-
if (value
|
|
95
|
-
return
|
|
96
|
-
}
|
|
97
|
-
if (value === null) {
|
|
98
|
-
return null;
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
99
94
|
}
|
|
100
95
|
return {
|
|
101
96
|
|
|
102
|
-
'id': value
|
|
103
|
-
'inviteeEmail': value
|
|
104
|
-
'createdAt': value
|
|
105
|
-
'expiresAt': value
|
|
106
|
-
'inviter': ProjectUserToJSON(value
|
|
97
|
+
'id': value['id'],
|
|
98
|
+
'inviteeEmail': value['inviteeEmail'],
|
|
99
|
+
'createdAt': value['createdAt'],
|
|
100
|
+
'expiresAt': value['expiresAt'],
|
|
101
|
+
'inviter': ProjectUserToJSON(value['inviter']),
|
|
107
102
|
};
|
|
108
103
|
}
|
|
109
104
|
|
|
@@ -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 { ProjectInvite } from './ProjectInvite';
|
|
17
17
|
import {
|
|
18
18
|
ProjectInviteFromJSON,
|
|
@@ -44,11 +44,9 @@ export interface ProjectInvites {
|
|
|
44
44
|
* Check if a given object implements the ProjectInvites interface.
|
|
45
45
|
*/
|
|
46
46
|
export function instanceOfProjectInvites(value: object): boolean {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return isInstance;
|
|
47
|
+
if (!('invites' in value)) return false;
|
|
48
|
+
if (!('nextPageToken' in value)) return false;
|
|
49
|
+
return true;
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function ProjectInvitesFromJSON(json: any): ProjectInvites {
|
|
@@ -56,7 +54,7 @@ export function ProjectInvitesFromJSON(json: any): ProjectInvites {
|
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvites {
|
|
59
|
-
if (
|
|
57
|
+
if (json == null) {
|
|
60
58
|
return json;
|
|
61
59
|
}
|
|
62
60
|
return {
|
|
@@ -67,16 +65,13 @@ export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function ProjectInvitesToJSON(value?: ProjectInvites | 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
|
-
'invites': ((value
|
|
79
|
-
'nextPageToken': value
|
|
73
|
+
'invites': ((value['invites'] as Array<any>).map(ProjectInviteToJSON)),
|
|
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
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -37,9 +37,7 @@ export interface ProjectLogo {
|
|
|
37
37
|
* Check if a given object implements the ProjectLogo interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfProjectLogo(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
40
|
+
return true;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
export function ProjectLogoFromJSON(json: any): ProjectLogo {
|
|
@@ -47,27 +45,24 @@ export function ProjectLogoFromJSON(json: any): ProjectLogo {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
export function ProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectLogo {
|
|
50
|
-
if (
|
|
48
|
+
if (json == null) {
|
|
51
49
|
return json;
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'url':
|
|
56
|
-
'backgroundColor':
|
|
53
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
54
|
+
'backgroundColor': json['backgroundColor'] == null ? undefined : json['backgroundColor'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function ProjectLogoToJSON(value?: ProjectLogo | null): any {
|
|
61
|
-
if (value
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
66
61
|
}
|
|
67
62
|
return {
|
|
68
63
|
|
|
69
|
-
'url': value
|
|
70
|
-
'backgroundColor': value
|
|
64
|
+
'url': value['url'],
|
|
65
|
+
'backgroundColor': value['backgroundColor'],
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|