@teemill/projects 1.13.0 → 1.15.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 (108) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +16 -2
  4. package/dist/apis/ProjectsApi.js +43 -1
  5. package/dist/esm/apis/ProjectsApi.d.ts +16 -2
  6. package/dist/esm/apis/ProjectsApi.js +44 -2
  7. package/dist/esm/models/ApiError.d.ts +1 -1
  8. package/dist/esm/models/ApiError.js +1 -1
  9. package/dist/esm/models/CreateInviteRequest.d.ts +1 -1
  10. package/dist/esm/models/CreateInviteRequest.js +1 -1
  11. package/dist/esm/models/CreateProjectRequest.d.ts +1 -1
  12. package/dist/esm/models/CreateProjectRequest.js +1 -1
  13. package/dist/esm/models/InstallTemplateRequest.d.ts +1 -1
  14. package/dist/esm/models/InstallTemplateRequest.js +1 -1
  15. package/dist/esm/models/Integration.d.ts +1 -1
  16. package/dist/esm/models/Integration.js +1 -1
  17. package/dist/esm/models/IntegrationsResponse.d.ts +1 -1
  18. package/dist/esm/models/IntegrationsResponse.js +1 -1
  19. package/dist/esm/models/LegacyProjectLogo.d.ts +37 -0
  20. package/dist/esm/models/LegacyProjectLogo.js +44 -0
  21. package/dist/esm/models/Project.d.ts +18 -3
  22. package/dist/esm/models/Project.js +11 -3
  23. package/dist/esm/models/ProjectInvite.d.ts +1 -1
  24. package/dist/esm/models/ProjectInvite.js +1 -1
  25. package/dist/esm/models/ProjectInvites.d.ts +1 -1
  26. package/dist/esm/models/ProjectInvites.js +1 -1
  27. package/dist/esm/models/ProjectLogo.d.ts +6 -4
  28. package/dist/esm/models/ProjectLogo.js +8 -4
  29. package/dist/esm/models/ProjectManager.d.ts +44 -0
  30. package/dist/esm/models/ProjectManager.js +49 -0
  31. package/dist/esm/models/ProjectUser.d.ts +1 -1
  32. package/dist/esm/models/ProjectUser.js +1 -1
  33. package/dist/esm/models/ProjectUserAvatar.d.ts +1 -1
  34. package/dist/esm/models/ProjectUserAvatar.js +1 -1
  35. package/dist/esm/models/ProjectUsers.d.ts +1 -1
  36. package/dist/esm/models/ProjectUsers.js +1 -1
  37. package/dist/esm/models/ProjectsResponse.d.ts +1 -1
  38. package/dist/esm/models/ProjectsResponse.js +1 -1
  39. package/dist/esm/models/SetupIntegrationRequest.d.ts +1 -1
  40. package/dist/esm/models/SetupIntegrationRequest.js +1 -1
  41. package/dist/esm/models/UpdateProjectRequest.d.ts +8 -1
  42. package/dist/esm/models/UpdateProjectRequest.js +4 -1
  43. package/dist/esm/models/index.d.ts +2 -0
  44. package/dist/esm/models/index.js +2 -0
  45. package/dist/esm/runtime.d.ts +1 -1
  46. package/dist/esm/runtime.js +1 -1
  47. package/dist/models/ApiError.d.ts +1 -1
  48. package/dist/models/ApiError.js +1 -1
  49. package/dist/models/CreateInviteRequest.d.ts +1 -1
  50. package/dist/models/CreateInviteRequest.js +1 -1
  51. package/dist/models/CreateProjectRequest.d.ts +1 -1
  52. package/dist/models/CreateProjectRequest.js +1 -1
  53. package/dist/models/InstallTemplateRequest.d.ts +1 -1
  54. package/dist/models/InstallTemplateRequest.js +1 -1
  55. package/dist/models/Integration.d.ts +1 -1
  56. package/dist/models/Integration.js +1 -1
  57. package/dist/models/IntegrationsResponse.d.ts +1 -1
  58. package/dist/models/IntegrationsResponse.js +1 -1
  59. package/dist/models/LegacyProjectLogo.d.ts +37 -0
  60. package/dist/models/LegacyProjectLogo.js +51 -0
  61. package/dist/models/Project.d.ts +18 -3
  62. package/dist/models/Project.js +11 -3
  63. package/dist/models/ProjectInvite.d.ts +1 -1
  64. package/dist/models/ProjectInvite.js +1 -1
  65. package/dist/models/ProjectInvites.d.ts +1 -1
  66. package/dist/models/ProjectInvites.js +1 -1
  67. package/dist/models/ProjectLogo.d.ts +6 -4
  68. package/dist/models/ProjectLogo.js +8 -4
  69. package/dist/models/ProjectManager.d.ts +44 -0
  70. package/dist/models/ProjectManager.js +56 -0
  71. package/dist/models/ProjectUser.d.ts +1 -1
  72. package/dist/models/ProjectUser.js +1 -1
  73. package/dist/models/ProjectUserAvatar.d.ts +1 -1
  74. package/dist/models/ProjectUserAvatar.js +1 -1
  75. package/dist/models/ProjectUsers.d.ts +1 -1
  76. package/dist/models/ProjectUsers.js +1 -1
  77. package/dist/models/ProjectsResponse.d.ts +1 -1
  78. package/dist/models/ProjectsResponse.js +1 -1
  79. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  80. package/dist/models/SetupIntegrationRequest.js +1 -1
  81. package/dist/models/UpdateProjectRequest.d.ts +8 -1
  82. package/dist/models/UpdateProjectRequest.js +4 -1
  83. package/dist/models/index.d.ts +2 -0
  84. package/dist/models/index.js +2 -0
  85. package/dist/runtime.d.ts +1 -1
  86. package/dist/runtime.js +1 -1
  87. package/package.json +1 -1
  88. package/src/apis/ProjectsApi.ts +63 -1
  89. package/src/models/ApiError.ts +1 -1
  90. package/src/models/CreateInviteRequest.ts +1 -1
  91. package/src/models/CreateProjectRequest.ts +1 -1
  92. package/src/models/InstallTemplateRequest.ts +1 -1
  93. package/src/models/Integration.ts +1 -1
  94. package/src/models/IntegrationsResponse.ts +1 -1
  95. package/src/models/LegacyProjectLogo.ts +70 -0
  96. package/src/models/Project.ts +35 -5
  97. package/src/models/ProjectInvite.ts +1 -1
  98. package/src/models/ProjectInvites.ts +1 -1
  99. package/src/models/ProjectLogo.ts +9 -7
  100. package/src/models/ProjectManager.ts +86 -0
  101. package/src/models/ProjectUser.ts +1 -1
  102. package/src/models/ProjectUserAvatar.ts +1 -1
  103. package/src/models/ProjectUsers.ts +1 -1
  104. package/src/models/ProjectsResponse.ts +1 -1
  105. package/src/models/SetupIntegrationRequest.ts +1 -1
  106. package/src/models/UpdateProjectRequest.ts +16 -1
  107. package/src/models/index.ts +2 -0
  108. 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.13.0
7
+ * The version of the OpenAPI document: 1.15.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,12 +13,24 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LegacyProjectLogo } from './LegacyProjectLogo';
17
+ import {
18
+ LegacyProjectLogoFromJSON,
19
+ LegacyProjectLogoFromJSONTyped,
20
+ LegacyProjectLogoToJSON,
21
+ } from './LegacyProjectLogo';
16
22
  import type { ProjectLogo } from './ProjectLogo';
17
23
  import {
18
24
  ProjectLogoFromJSON,
19
25
  ProjectLogoFromJSONTyped,
20
26
  ProjectLogoToJSON,
21
27
  } from './ProjectLogo';
28
+ import type { ProjectManager } from './ProjectManager';
29
+ import {
30
+ ProjectManagerFromJSON,
31
+ ProjectManagerFromJSONTyped,
32
+ ProjectManagerToJSON,
33
+ } from './ProjectManager';
22
34
 
23
35
  /**
24
36
  *
@@ -40,10 +52,23 @@ export interface Project {
40
52
  name: string;
41
53
  /**
42
54
  *
43
- * @type {ProjectLogo}
55
+ * @type {LegacyProjectLogo}
56
+ * @memberof Project
57
+ * @deprecated
58
+ */
59
+ logo: LegacyProjectLogo | null;
60
+ /**
61
+ *
62
+ * @type {Array<ProjectLogo>}
63
+ * @memberof Project
64
+ */
65
+ logos: Array<ProjectLogo>;
66
+ /**
67
+ *
68
+ * @type {ProjectManager}
44
69
  * @memberof Project
45
70
  */
46
- logo: ProjectLogo | null;
71
+ manager?: ProjectManager;
47
72
  /**
48
73
  *
49
74
  * @type {Array<string>}
@@ -59,6 +84,7 @@ export function instanceOfProject(value: object): boolean {
59
84
  if (!('id' in value)) return false;
60
85
  if (!('name' in value)) return false;
61
86
  if (!('logo' in value)) return false;
87
+ if (!('logos' in value)) return false;
62
88
  return true;
63
89
  }
64
90
 
@@ -74,7 +100,9 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
74
100
 
75
101
  'id': json['id'],
76
102
  'name': json['name'],
77
- 'logo': ProjectLogoFromJSON(json['logo']),
103
+ 'logo': LegacyProjectLogoFromJSON(json['logo']),
104
+ 'logos': ((json['logos'] as Array<any>).map(ProjectLogoFromJSON)),
105
+ 'manager': json['manager'] == null ? undefined : ProjectManagerFromJSON(json['manager']),
78
106
  'integrations': json['integrations'] == null ? undefined : json['integrations'],
79
107
  };
80
108
  }
@@ -87,7 +115,9 @@ export function ProjectToJSON(value?: Project | null): any {
87
115
 
88
116
  'id': value['id'],
89
117
  'name': value['name'],
90
- 'logo': ProjectLogoToJSON(value['logo']),
118
+ 'logo': LegacyProjectLogoToJSON(value['logo']),
119
+ 'logos': ((value['logos'] as Array<any>).map(ProjectLogoToJSON)),
120
+ 'manager': ProjectManagerToJSON(value['manager']),
91
121
  'integrations': value['integrations'],
92
122
  };
93
123
  }
@@ -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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,19 +24,21 @@ export interface ProjectLogo {
24
24
  * @type {string}
25
25
  * @memberof ProjectLogo
26
26
  */
27
- url?: string;
27
+ url: string;
28
28
  /**
29
29
  *
30
- * @type {string}
30
+ * @type {{ [key: string]: string; }}
31
31
  * @memberof ProjectLogo
32
32
  */
33
- backgroundColor?: string;
33
+ meta: { [key: string]: string; };
34
34
  }
35
35
 
36
36
  /**
37
37
  * Check if a given object implements the ProjectLogo interface.
38
38
  */
39
39
  export function instanceOfProjectLogo(value: object): boolean {
40
+ if (!('url' in value)) return false;
41
+ if (!('meta' in value)) return false;
40
42
  return true;
41
43
  }
42
44
 
@@ -50,8 +52,8 @@ export function ProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean
50
52
  }
51
53
  return {
52
54
 
53
- 'url': json['url'] == null ? undefined : json['url'],
54
- 'backgroundColor': json['backgroundColor'] == null ? undefined : json['backgroundColor'],
55
+ 'url': json['url'],
56
+ 'meta': json['meta'],
55
57
  };
56
58
  }
57
59
 
@@ -62,7 +64,7 @@ export function ProjectLogoToJSON(value?: ProjectLogo | null): any {
62
64
  return {
63
65
 
64
66
  'url': value['url'],
65
- 'backgroundColor': value['backgroundColor'],
67
+ 'meta': value['meta'],
66
68
  };
67
69
  }
68
70
 
@@ -0,0 +1,86 @@
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.15.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 { mapValues } from '../runtime';
16
+ import type { ProjectLogo } from './ProjectLogo';
17
+ import {
18
+ ProjectLogoFromJSON,
19
+ ProjectLogoFromJSONTyped,
20
+ ProjectLogoToJSON,
21
+ } from './ProjectLogo';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ProjectManager
27
+ */
28
+ export interface ProjectManager {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ProjectManager
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ProjectManager
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {Array<ProjectLogo>}
44
+ * @memberof ProjectManager
45
+ */
46
+ logos: Array<ProjectLogo>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the ProjectManager interface.
51
+ */
52
+ export function instanceOfProjectManager(value: object): boolean {
53
+ if (!('id' in value)) return false;
54
+ if (!('name' in value)) return false;
55
+ if (!('logos' in value)) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ProjectManagerFromJSON(json: any): ProjectManager {
60
+ return ProjectManagerFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProjectManagerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectManager {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'logos': ((json['logos'] as Array<any>).map(ProjectLogoFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function ProjectManagerToJSON(value?: ProjectManager | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'id': value['id'],
82
+ 'name': value['name'],
83
+ 'logos': ((value['logos'] as Array<any>).map(ProjectLogoToJSON)),
84
+ };
85
+ }
86
+
@@ -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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.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.13.0
7
+ * The version of the OpenAPI document: 1.15.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ProjectLogo } from './ProjectLogo';
17
+ import {
18
+ ProjectLogoFromJSON,
19
+ ProjectLogoFromJSONTyped,
20
+ ProjectLogoToJSON,
21
+ } from './ProjectLogo';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -25,6 +32,12 @@ export interface UpdateProjectRequest {
25
32
  * @memberof UpdateProjectRequest
26
33
  */
27
34
  name?: string;
35
+ /**
36
+ *
37
+ * @type {Array<ProjectLogo>}
38
+ * @memberof UpdateProjectRequest
39
+ */
40
+ logos?: Array<ProjectLogo>;
28
41
  }
29
42
 
30
43
  /**
@@ -45,6 +58,7 @@ export function UpdateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator
45
58
  return {
46
59
 
47
60
  'name': json['name'] == null ? undefined : json['name'],
61
+ 'logos': json['logos'] == null ? undefined : ((json['logos'] as Array<any>).map(ProjectLogoFromJSON)),
48
62
  };
49
63
  }
50
64
 
@@ -55,6 +69,7 @@ export function UpdateProjectRequestToJSON(value?: UpdateProjectRequest | null):
55
69
  return {
56
70
 
57
71
  'name': value['name'],
72
+ 'logos': value['logos'] == null ? undefined : ((value['logos'] as Array<any>).map(ProjectLogoToJSON)),
58
73
  };
59
74
  }
60
75
 
@@ -6,10 +6,12 @@ export * from './CreateProjectRequest';
6
6
  export * from './InstallTemplateRequest';
7
7
  export * from './Integration';
8
8
  export * from './IntegrationsResponse';
9
+ export * from './LegacyProjectLogo';
9
10
  export * from './Project';
10
11
  export * from './ProjectInvite';
11
12
  export * from './ProjectInvites';
12
13
  export * from './ProjectLogo';
14
+ export * from './ProjectManager';
13
15
  export * from './ProjectUser';
14
16
  export * from './ProjectUserAvatar';
15
17
  export * from './ProjectUsers';
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.13.0
7
+ * The version of the OpenAPI document: 1.15.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).