@teemill/projects 1.15.0 → 1.17.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 (167) hide show
  1. package/.openapi-generator/FILES +6 -23
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +2262 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1400 -0
  9. package/dist/api.js +1374 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1400 -0
  17. package/dist/esm/api.js +1367 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -3
  25. package/dist/esm/index.js +13 -3
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/ProjectsApi.d.ts +0 -255
  33. package/dist/apis/ProjectsApi.js +0 -748
  34. package/dist/apis/index.d.ts +0 -1
  35. package/dist/apis/index.js +0 -19
  36. package/dist/esm/apis/ProjectsApi.d.ts +0 -255
  37. package/dist/esm/apis/ProjectsApi.js +0 -744
  38. package/dist/esm/apis/index.d.ts +0 -1
  39. package/dist/esm/apis/index.js +0 -3
  40. package/dist/esm/models/ApiError.d.ts +0 -37
  41. package/dist/esm/models/ApiError.js +0 -42
  42. package/dist/esm/models/CreateInviteRequest.d.ts +0 -31
  43. package/dist/esm/models/CreateInviteRequest.js +0 -40
  44. package/dist/esm/models/CreateProjectRequest.d.ts +0 -43
  45. package/dist/esm/models/CreateProjectRequest.js +0 -44
  46. package/dist/esm/models/CreateUserRequest.d.ts +0 -56
  47. package/dist/esm/models/CreateUserRequest.js +0 -55
  48. package/dist/esm/models/CreateUserRequestAvatar.d.ts +0 -31
  49. package/dist/esm/models/CreateUserRequestAvatar.js +0 -43
  50. package/dist/esm/models/InstallTemplateRequest.d.ts +0 -31
  51. package/dist/esm/models/InstallTemplateRequest.js +0 -38
  52. package/dist/esm/models/Integration.d.ts +0 -49
  53. package/dist/esm/models/Integration.js +0 -47
  54. package/dist/esm/models/IntegrationInfo.d.ts +0 -49
  55. package/dist/esm/models/IntegrationInfo.js +0 -52
  56. package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
  57. package/dist/esm/models/IntegrationsResponse.js +0 -41
  58. package/dist/esm/models/LegacyProjectLogo.d.ts +0 -37
  59. package/dist/esm/models/LegacyProjectLogo.js +0 -44
  60. package/dist/esm/models/Project.d.ts +0 -65
  61. package/dist/esm/models/Project.js +0 -59
  62. package/dist/esm/models/ProjectInvite.d.ts +0 -56
  63. package/dist/esm/models/ProjectInvite.js +0 -57
  64. package/dist/esm/models/ProjectInvites.d.ts +0 -38
  65. package/dist/esm/models/ProjectInvites.js +0 -45
  66. package/dist/esm/models/ProjectLogo.d.ts +0 -39
  67. package/dist/esm/models/ProjectLogo.js +0 -44
  68. package/dist/esm/models/ProjectManager.d.ts +0 -44
  69. package/dist/esm/models/ProjectManager.js +0 -49
  70. package/dist/esm/models/ProjectUser.d.ts +0 -83
  71. package/dist/esm/models/ProjectUser.js +0 -75
  72. package/dist/esm/models/ProjectUserAvatar.d.ts +0 -31
  73. package/dist/esm/models/ProjectUserAvatar.js +0 -38
  74. package/dist/esm/models/ProjectUsers.d.ts +0 -38
  75. package/dist/esm/models/ProjectUsers.js +0 -45
  76. package/dist/esm/models/ProjectsResponse.d.ts +0 -32
  77. package/dist/esm/models/ProjectsResponse.js +0 -41
  78. package/dist/esm/models/SetupIntegrationRequest.d.ts +0 -31
  79. package/dist/esm/models/SetupIntegrationRequest.js +0 -40
  80. package/dist/esm/models/UpdateProjectRequest.d.ts +0 -38
  81. package/dist/esm/models/UpdateProjectRequest.js +0 -41
  82. package/dist/esm/models/UpdateUserRequest.d.ts +0 -56
  83. package/dist/esm/models/UpdateUserRequest.js +0 -52
  84. package/dist/esm/models/UpdateUserRequestAvatar.d.ts +0 -31
  85. package/dist/esm/models/UpdateUserRequestAvatar.js +0 -43
  86. package/dist/esm/models/index.d.ts +0 -18
  87. package/dist/esm/models/index.js +0 -20
  88. package/dist/esm/runtime.d.ts +0 -187
  89. package/dist/esm/runtime.js +0 -333
  90. package/dist/models/ApiError.d.ts +0 -37
  91. package/dist/models/ApiError.js +0 -49
  92. package/dist/models/CreateInviteRequest.d.ts +0 -31
  93. package/dist/models/CreateInviteRequest.js +0 -47
  94. package/dist/models/CreateProjectRequest.d.ts +0 -43
  95. package/dist/models/CreateProjectRequest.js +0 -51
  96. package/dist/models/CreateUserRequest.d.ts +0 -56
  97. package/dist/models/CreateUserRequest.js +0 -62
  98. package/dist/models/CreateUserRequestAvatar.d.ts +0 -31
  99. package/dist/models/CreateUserRequestAvatar.js +0 -50
  100. package/dist/models/InstallTemplateRequest.d.ts +0 -31
  101. package/dist/models/InstallTemplateRequest.js +0 -45
  102. package/dist/models/Integration.d.ts +0 -49
  103. package/dist/models/Integration.js +0 -54
  104. package/dist/models/IntegrationInfo.d.ts +0 -49
  105. package/dist/models/IntegrationInfo.js +0 -59
  106. package/dist/models/IntegrationsResponse.d.ts +0 -32
  107. package/dist/models/IntegrationsResponse.js +0 -48
  108. package/dist/models/LegacyProjectLogo.d.ts +0 -37
  109. package/dist/models/LegacyProjectLogo.js +0 -51
  110. package/dist/models/Project.d.ts +0 -65
  111. package/dist/models/Project.js +0 -66
  112. package/dist/models/ProjectInvite.d.ts +0 -56
  113. package/dist/models/ProjectInvite.js +0 -64
  114. package/dist/models/ProjectInvites.d.ts +0 -38
  115. package/dist/models/ProjectInvites.js +0 -52
  116. package/dist/models/ProjectLogo.d.ts +0 -39
  117. package/dist/models/ProjectLogo.js +0 -51
  118. package/dist/models/ProjectManager.d.ts +0 -44
  119. package/dist/models/ProjectManager.js +0 -56
  120. package/dist/models/ProjectUser.d.ts +0 -83
  121. package/dist/models/ProjectUser.js +0 -82
  122. package/dist/models/ProjectUserAvatar.d.ts +0 -31
  123. package/dist/models/ProjectUserAvatar.js +0 -45
  124. package/dist/models/ProjectUsers.d.ts +0 -38
  125. package/dist/models/ProjectUsers.js +0 -52
  126. package/dist/models/ProjectsResponse.d.ts +0 -32
  127. package/dist/models/ProjectsResponse.js +0 -48
  128. package/dist/models/SetupIntegrationRequest.d.ts +0 -31
  129. package/dist/models/SetupIntegrationRequest.js +0 -47
  130. package/dist/models/UpdateProjectRequest.d.ts +0 -38
  131. package/dist/models/UpdateProjectRequest.js +0 -48
  132. package/dist/models/UpdateUserRequest.d.ts +0 -56
  133. package/dist/models/UpdateUserRequest.js +0 -59
  134. package/dist/models/UpdateUserRequestAvatar.d.ts +0 -31
  135. package/dist/models/UpdateUserRequestAvatar.js +0 -50
  136. package/dist/models/index.d.ts +0 -18
  137. package/dist/models/index.js +0 -36
  138. package/dist/runtime.d.ts +0 -187
  139. package/dist/runtime.js +0 -349
  140. package/src/apis/ProjectsApi.ts +0 -1085
  141. package/src/apis/index.ts +0 -3
  142. package/src/index.ts +0 -5
  143. package/src/models/ApiError.ts +0 -69
  144. package/src/models/CreateInviteRequest.ts +0 -61
  145. package/src/models/CreateProjectRequest.ts +0 -77
  146. package/src/models/CreateUserRequest.ts +0 -107
  147. package/src/models/CreateUserRequestAvatar.ts +0 -65
  148. package/src/models/InstallTemplateRequest.ts +0 -60
  149. package/src/models/Integration.ts +0 -85
  150. package/src/models/IntegrationInfo.ts +0 -93
  151. package/src/models/IntegrationsResponse.ts +0 -68
  152. package/src/models/LegacyProjectLogo.ts +0 -70
  153. package/src/models/Project.ts +0 -124
  154. package/src/models/ProjectInvite.ts +0 -104
  155. package/src/models/ProjectInvites.ts +0 -77
  156. package/src/models/ProjectLogo.ts +0 -70
  157. package/src/models/ProjectManager.ts +0 -86
  158. package/src/models/ProjectUser.ts +0 -142
  159. package/src/models/ProjectUserAvatar.ts +0 -60
  160. package/src/models/ProjectUsers.ts +0 -77
  161. package/src/models/ProjectsResponse.ts +0 -68
  162. package/src/models/SetupIntegrationRequest.ts +0 -61
  163. package/src/models/UpdateProjectRequest.ts +0 -75
  164. package/src/models/UpdateUserRequest.ts +0 -104
  165. package/src/models/UpdateUserRequestAvatar.ts +0 -65
  166. package/src/models/index.ts +0 -20
  167. package/src/runtime.ts +0 -441
@@ -1,70 +0,0 @@
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
- /**
17
- *
18
- * @export
19
- * @interface LegacyProjectLogo
20
- */
21
- export interface LegacyProjectLogo {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof LegacyProjectLogo
26
- */
27
- url: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof LegacyProjectLogo
32
- */
33
- backgroundColor: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the LegacyProjectLogo interface.
38
- */
39
- export function instanceOfLegacyProjectLogo(value: object): boolean {
40
- if (!('url' in value)) return false;
41
- if (!('backgroundColor' in value)) return false;
42
- return true;
43
- }
44
-
45
- export function LegacyProjectLogoFromJSON(json: any): LegacyProjectLogo {
46
- return LegacyProjectLogoFromJSONTyped(json, false);
47
- }
48
-
49
- export function LegacyProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegacyProjectLogo {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'url': json['url'],
56
- 'backgroundColor': json['backgroundColor'],
57
- };
58
- }
59
-
60
- export function LegacyProjectLogoToJSON(value?: LegacyProjectLogo | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'url': value['url'],
67
- 'backgroundColor': value['backgroundColor'],
68
- };
69
- }
70
-
@@ -1,124 +0,0 @@
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 { LegacyProjectLogo } from './LegacyProjectLogo';
17
- import {
18
- LegacyProjectLogoFromJSON,
19
- LegacyProjectLogoFromJSONTyped,
20
- LegacyProjectLogoToJSON,
21
- } from './LegacyProjectLogo';
22
- import type { ProjectLogo } from './ProjectLogo';
23
- import {
24
- ProjectLogoFromJSON,
25
- ProjectLogoFromJSONTyped,
26
- ProjectLogoToJSON,
27
- } from './ProjectLogo';
28
- import type { ProjectManager } from './ProjectManager';
29
- import {
30
- ProjectManagerFromJSON,
31
- ProjectManagerFromJSONTyped,
32
- ProjectManagerToJSON,
33
- } from './ProjectManager';
34
-
35
- /**
36
- *
37
- * @export
38
- * @interface Project
39
- */
40
- export interface Project {
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof Project
45
- */
46
- id: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof Project
51
- */
52
- name: string;
53
- /**
54
- *
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}
69
- * @memberof Project
70
- */
71
- manager?: ProjectManager;
72
- /**
73
- *
74
- * @type {Array<string>}
75
- * @memberof Project
76
- */
77
- integrations?: Array<string>;
78
- }
79
-
80
- /**
81
- * Check if a given object implements the Project interface.
82
- */
83
- export function instanceOfProject(value: object): boolean {
84
- if (!('id' in value)) return false;
85
- if (!('name' in value)) return false;
86
- if (!('logo' in value)) return false;
87
- if (!('logos' in value)) return false;
88
- return true;
89
- }
90
-
91
- export function ProjectFromJSON(json: any): Project {
92
- return ProjectFromJSONTyped(json, false);
93
- }
94
-
95
- export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
96
- if (json == null) {
97
- return json;
98
- }
99
- return {
100
-
101
- 'id': json['id'],
102
- 'name': json['name'],
103
- 'logo': LegacyProjectLogoFromJSON(json['logo']),
104
- 'logos': ((json['logos'] as Array<any>).map(ProjectLogoFromJSON)),
105
- 'manager': json['manager'] == null ? undefined : ProjectManagerFromJSON(json['manager']),
106
- 'integrations': json['integrations'] == null ? undefined : json['integrations'],
107
- };
108
- }
109
-
110
- export function ProjectToJSON(value?: Project | null): any {
111
- if (value == null) {
112
- return value;
113
- }
114
- return {
115
-
116
- 'id': value['id'],
117
- 'name': value['name'],
118
- 'logo': LegacyProjectLogoToJSON(value['logo']),
119
- 'logos': ((value['logos'] as Array<any>).map(ProjectLogoToJSON)),
120
- 'manager': ProjectManagerToJSON(value['manager']),
121
- 'integrations': value['integrations'],
122
- };
123
- }
124
-
@@ -1,104 +0,0 @@
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 { ProjectUser } from './ProjectUser';
17
- import {
18
- ProjectUserFromJSON,
19
- ProjectUserFromJSONTyped,
20
- ProjectUserToJSON,
21
- } from './ProjectUser';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface ProjectInvite
27
- */
28
- export interface ProjectInvite {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof ProjectInvite
33
- */
34
- id: string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof ProjectInvite
39
- */
40
- inviteeEmail: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ProjectInvite
45
- */
46
- createdAt: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof ProjectInvite
51
- */
52
- expiresAt: string;
53
- /**
54
- *
55
- * @type {ProjectUser}
56
- * @memberof ProjectInvite
57
- */
58
- inviter: ProjectUser;
59
- }
60
-
61
- /**
62
- * Check if a given object implements the ProjectInvite interface.
63
- */
64
- export function instanceOfProjectInvite(value: object): boolean {
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;
71
- }
72
-
73
- export function ProjectInviteFromJSON(json: any): ProjectInvite {
74
- return ProjectInviteFromJSONTyped(json, false);
75
- }
76
-
77
- export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvite {
78
- if (json == null) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'id': json['id'],
84
- 'inviteeEmail': json['inviteeEmail'],
85
- 'createdAt': json['createdAt'],
86
- 'expiresAt': json['expiresAt'],
87
- 'inviter': ProjectUserFromJSON(json['inviter']),
88
- };
89
- }
90
-
91
- export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
92
- if (value == null) {
93
- return value;
94
- }
95
- return {
96
-
97
- 'id': value['id'],
98
- 'inviteeEmail': value['inviteeEmail'],
99
- 'createdAt': value['createdAt'],
100
- 'expiresAt': value['expiresAt'],
101
- 'inviter': ProjectUserToJSON(value['inviter']),
102
- };
103
- }
104
-
@@ -1,77 +0,0 @@
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 { 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
- * The token referencing the next page number
37
- * @type {number}
38
- * @memberof ProjectInvites
39
- */
40
- nextPageToken: number | null;
41
- }
42
-
43
- /**
44
- * Check if a given object implements the ProjectInvites interface.
45
- */
46
- export function instanceOfProjectInvites(value: object): boolean {
47
- if (!('invites' in value)) return false;
48
- if (!('nextPageToken' in value)) return false;
49
- return true;
50
- }
51
-
52
- export function ProjectInvitesFromJSON(json: any): ProjectInvites {
53
- return ProjectInvitesFromJSONTyped(json, false);
54
- }
55
-
56
- export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvites {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'invites': ((json['invites'] as Array<any>).map(ProjectInviteFromJSON)),
63
- 'nextPageToken': json['nextPageToken'],
64
- };
65
- }
66
-
67
- export function ProjectInvitesToJSON(value?: ProjectInvites | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'invites': ((value['invites'] as Array<any>).map(ProjectInviteToJSON)),
74
- 'nextPageToken': value['nextPageToken'],
75
- };
76
- }
77
-
@@ -1,70 +0,0 @@
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
- /**
17
- *
18
- * @export
19
- * @interface ProjectLogo
20
- */
21
- export interface ProjectLogo {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ProjectLogo
26
- */
27
- url: string;
28
- /**
29
- *
30
- * @type {{ [key: string]: string; }}
31
- * @memberof ProjectLogo
32
- */
33
- meta: { [key: string]: string; };
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ProjectLogo interface.
38
- */
39
- export function instanceOfProjectLogo(value: object): boolean {
40
- if (!('url' in value)) return false;
41
- if (!('meta' in value)) return false;
42
- return true;
43
- }
44
-
45
- export function ProjectLogoFromJSON(json: any): ProjectLogo {
46
- return ProjectLogoFromJSONTyped(json, false);
47
- }
48
-
49
- export function ProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectLogo {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'url': json['url'],
56
- 'meta': json['meta'],
57
- };
58
- }
59
-
60
- export function ProjectLogoToJSON(value?: ProjectLogo | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'url': value['url'],
67
- 'meta': value['meta'],
68
- };
69
- }
70
-
@@ -1,86 +0,0 @@
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
-
@@ -1,142 +0,0 @@
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 { ProjectUserAvatar } from './ProjectUserAvatar';
17
- import {
18
- ProjectUserAvatarFromJSON,
19
- ProjectUserAvatarFromJSONTyped,
20
- ProjectUserAvatarToJSON,
21
- } from './ProjectUserAvatar';
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
- userRef: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ProjectUser
45
- */
46
- type?: ProjectUserTypeEnum;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof ProjectUser
51
- */
52
- firstName: string | null;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof ProjectUser
57
- */
58
- lastName: string | null;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof ProjectUser
63
- */
64
- username: string | null;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof ProjectUser
69
- */
70
- email: string;
71
- /**
72
- *
73
- * @type {ProjectUserAvatar}
74
- * @memberof ProjectUser
75
- */
76
- avatar: ProjectUserAvatar;
77
- }
78
-
79
-
80
- /**
81
- * @export
82
- */
83
- export const ProjectUserTypeEnum = {
84
- User: 'user',
85
- Service: 'service',
86
- Ghost: 'ghost'
87
- } as const;
88
- export type ProjectUserTypeEnum = typeof ProjectUserTypeEnum[keyof typeof ProjectUserTypeEnum];
89
-
90
-
91
- /**
92
- * Check if a given object implements the ProjectUser interface.
93
- */
94
- export function instanceOfProjectUser(value: object): boolean {
95
- if (!('id' in value)) return false;
96
- if (!('userRef' in value)) return false;
97
- if (!('firstName' in value)) return false;
98
- if (!('lastName' in value)) return false;
99
- if (!('username' in value)) return false;
100
- if (!('email' in value)) return false;
101
- if (!('avatar' in value)) return false;
102
- return true;
103
- }
104
-
105
- export function ProjectUserFromJSON(json: any): ProjectUser {
106
- return ProjectUserFromJSONTyped(json, false);
107
- }
108
-
109
- export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUser {
110
- if (json == null) {
111
- return json;
112
- }
113
- return {
114
-
115
- 'id': json['id'],
116
- 'userRef': json['userRef'],
117
- 'type': json['type'] == null ? undefined : json['type'],
118
- 'firstName': json['firstName'],
119
- 'lastName': json['lastName'],
120
- 'username': json['username'],
121
- 'email': json['email'],
122
- 'avatar': ProjectUserAvatarFromJSON(json['avatar']),
123
- };
124
- }
125
-
126
- export function ProjectUserToJSON(value?: ProjectUser | null): any {
127
- if (value == null) {
128
- return value;
129
- }
130
- return {
131
-
132
- 'id': value['id'],
133
- 'userRef': value['userRef'],
134
- 'type': value['type'],
135
- 'firstName': value['firstName'],
136
- 'lastName': value['lastName'],
137
- 'username': value['username'],
138
- 'email': value['email'],
139
- 'avatar': ProjectUserAvatarToJSON(value['avatar']),
140
- };
141
- }
142
-