@teemill/projects 1.11.1 → 1.12.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.
Files changed (57) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +1 -1
  4. package/dist/apis/ProjectsApi.js +1 -1
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +10 -14
  7. package/dist/models/CreateInviteRequest.d.ts +1 -1
  8. package/dist/models/CreateInviteRequest.js +8 -11
  9. package/dist/models/CreateProjectRequest.d.ts +3 -5
  10. package/dist/models/CreateProjectRequest.js +12 -16
  11. package/dist/models/InstallTemplateRequest.d.ts +3 -5
  12. package/dist/models/InstallTemplateRequest.js +7 -12
  13. package/dist/models/Integration.d.ts +1 -1
  14. package/dist/models/Integration.js +14 -17
  15. package/dist/models/IntegrationsResponse.d.ts +1 -1
  16. package/dist/models/IntegrationsResponse.js +8 -11
  17. package/dist/models/Project.d.ts +1 -1
  18. package/dist/models/Project.js +16 -18
  19. package/dist/models/ProjectInvite.d.ts +1 -1
  20. package/dist/models/ProjectInvite.js +20 -19
  21. package/dist/models/ProjectInvites.d.ts +1 -1
  22. package/dist/models/ProjectInvites.js +11 -13
  23. package/dist/models/ProjectLogo.d.ts +1 -1
  24. package/dist/models/ProjectLogo.js +9 -14
  25. package/dist/models/ProjectUser.d.ts +16 -1
  26. package/dist/models/ProjectUser.js +34 -22
  27. package/dist/models/ProjectUserAvatar.d.ts +2 -2
  28. package/dist/models/ProjectUserAvatar.js +7 -12
  29. package/dist/models/ProjectUsers.d.ts +1 -1
  30. package/dist/models/ProjectUsers.js +11 -13
  31. package/dist/models/ProjectsResponse.d.ts +1 -1
  32. package/dist/models/ProjectsResponse.js +8 -11
  33. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  34. package/dist/models/SetupIntegrationRequest.js +8 -11
  35. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  36. package/dist/models/UpdateProjectRequest.js +7 -12
  37. package/dist/runtime.d.ts +1 -1
  38. package/dist/runtime.js +1 -1
  39. package/package.json +1 -1
  40. package/src/apis/ProjectsApi.ts +1 -1
  41. package/src/models/ApiError.ts +10 -15
  42. package/src/models/CreateInviteRequest.ts +8 -13
  43. package/src/models/CreateProjectRequest.ts +14 -19
  44. package/src/models/InstallTemplateRequest.ts +10 -15
  45. package/src/models/Integration.ts +13 -18
  46. package/src/models/IntegrationsResponse.ts +8 -13
  47. package/src/models/Project.ts +14 -19
  48. package/src/models/ProjectInvite.ts +16 -21
  49. package/src/models/ProjectInvites.ts +10 -15
  50. package/src/models/ProjectLogo.ts +10 -15
  51. package/src/models/ProjectUser.ts +38 -23
  52. package/src/models/ProjectUserAvatar.ts +9 -14
  53. package/src/models/ProjectUsers.ts +10 -15
  54. package/src/models/ProjectsResponse.ts +8 -13
  55. package/src/models/SetupIntegrationRequest.ts +8 -13
  56. package/src/models/UpdateProjectRequest.ts +8 -13
  57. 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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
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 ((json === undefined) || (json === null)) {
48
+ if (json == null) {
51
49
  return json;
52
50
  }
53
51
  return {
54
52
 
55
- 'url': !exists(json, 'url') ? undefined : json['url'],
56
- 'backgroundColor': !exists(json, 'backgroundColor') ? undefined : json['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 === undefined) {
62
- return undefined;
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.url,
70
- 'backgroundColor': value.backgroundColor,
64
+ 'url': value['url'],
65
+ 'backgroundColor': value['backgroundColor'],
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
72
- isInstance = isInstance && "id" in value;
73
- isInstance = isInstance && "firstName" in value;
74
- isInstance = isInstance && "lastName" in value;
75
- isInstance = isInstance && "username" in value;
76
- isInstance = isInstance && "email" in value;
77
- isInstance = isInstance && "avatar" in value;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
103
- return undefined;
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.id,
111
- 'firstName': value.firstName,
112
- 'lastName': value.lastName,
113
- 'username': value.username,
114
- 'email': value.email,
115
- 'avatar': ProjectUserAvatarToJSON(value.avatar),
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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 | null;
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
- let isInstance = true;
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 ((json === undefined) || (json === null)) {
42
+ if (json == null) {
45
43
  return json;
46
44
  }
47
45
  return {
48
46
 
49
- 'original': !exists(json, 'original') ? undefined : json['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 === undefined) {
55
- return undefined;
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.original,
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
48
- isInstance = isInstance && "users" in value;
49
- isInstance = isInstance && "nextPageToken" in value;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
71
- return undefined;
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.users as Array<any>).map(ProjectUserToJSON)),
79
- 'nextPageToken': value.nextPageToken,
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
42
- isInstance = isInstance && "projects" in value;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
63
- return undefined;
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.projects as Array<any>).map(ProjectToJSON)),
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
35
- isInstance = isInstance && "config" in value;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
56
- return undefined;
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.config,
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.1
7
+ * The version of the OpenAPI document: 1.12.0
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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
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 ((json === undefined) || (json === null)) {
42
+ if (json == null) {
45
43
  return json;
46
44
  }
47
45
  return {
48
46
 
49
- 'name': !exists(json, 'name') ? undefined : json['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 === undefined) {
55
- return undefined;
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.name,
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.1
7
+ * The version of the OpenAPI document: 1.12.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).