@teemill/projects 1.12.0 → 1.12.3

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 (117) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProjectsApi.d.ts +4 -4
  5. package/dist/apis/ProjectsApi.js +517 -927
  6. package/dist/esm/apis/ProjectsApi.d.ts +241 -0
  7. package/dist/esm/apis/ProjectsApi.js +701 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +3 -0
  10. package/dist/esm/index.d.ts +3 -0
  11. package/dist/esm/index.js +5 -0
  12. package/dist/esm/models/ApiError.d.ts +37 -0
  13. package/dist/esm/models/ApiError.js +42 -0
  14. package/dist/esm/models/CreateInviteRequest.d.ts +31 -0
  15. package/dist/esm/models/CreateInviteRequest.js +40 -0
  16. package/dist/esm/models/CreateProjectRequest.d.ts +43 -0
  17. package/dist/esm/models/CreateProjectRequest.js +44 -0
  18. package/dist/esm/models/CreateUserRequest.d.ts +56 -0
  19. package/dist/esm/models/CreateUserRequest.js +55 -0
  20. package/dist/esm/models/CreateUserRequestAvatar.d.ts +31 -0
  21. package/dist/esm/models/CreateUserRequestAvatar.js +43 -0
  22. package/dist/esm/models/InstallTemplateRequest.d.ts +31 -0
  23. package/dist/esm/models/InstallTemplateRequest.js +38 -0
  24. package/dist/esm/models/Integration.d.ts +49 -0
  25. package/dist/esm/models/Integration.js +47 -0
  26. package/dist/esm/models/IntegrationInfo.d.ts +49 -0
  27. package/dist/esm/models/IntegrationInfo.js +52 -0
  28. package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
  29. package/dist/esm/models/IntegrationsResponse.js +41 -0
  30. package/dist/esm/models/Project.d.ts +50 -0
  31. package/dist/esm/models/Project.js +49 -0
  32. package/dist/esm/models/ProjectInvite.d.ts +56 -0
  33. package/dist/esm/models/ProjectInvite.js +57 -0
  34. package/dist/esm/models/ProjectInvites.d.ts +38 -0
  35. package/dist/esm/models/ProjectInvites.js +45 -0
  36. package/dist/esm/models/ProjectLogo.d.ts +37 -0
  37. package/dist/esm/models/ProjectLogo.js +40 -0
  38. package/dist/esm/models/ProjectUser.d.ts +83 -0
  39. package/dist/esm/models/ProjectUser.js +75 -0
  40. package/dist/esm/models/ProjectUserAvatar.d.ts +31 -0
  41. package/dist/esm/models/ProjectUserAvatar.js +38 -0
  42. package/dist/esm/models/ProjectUsers.d.ts +38 -0
  43. package/dist/esm/models/ProjectUsers.js +45 -0
  44. package/dist/esm/models/ProjectsResponse.d.ts +32 -0
  45. package/dist/esm/models/ProjectsResponse.js +41 -0
  46. package/dist/esm/models/SetupIntegrationRequest.d.ts +31 -0
  47. package/dist/esm/models/SetupIntegrationRequest.js +40 -0
  48. package/dist/esm/models/UpdateProjectRequest.d.ts +31 -0
  49. package/dist/esm/models/UpdateProjectRequest.js +38 -0
  50. package/dist/esm/models/UpdateUserRequest.d.ts +56 -0
  51. package/dist/esm/models/UpdateUserRequest.js +52 -0
  52. package/dist/esm/models/UpdateUserRequestAvatar.d.ts +31 -0
  53. package/dist/esm/models/UpdateUserRequestAvatar.js +43 -0
  54. package/dist/esm/models/index.d.ts +16 -0
  55. package/dist/esm/models/index.js +18 -0
  56. package/dist/esm/runtime.d.ts +187 -0
  57. package/dist/esm/runtime.js +333 -0
  58. package/dist/models/ApiError.d.ts +1 -1
  59. package/dist/models/ApiError.js +1 -1
  60. package/dist/models/CreateInviteRequest.d.ts +1 -1
  61. package/dist/models/CreateInviteRequest.js +1 -1
  62. package/dist/models/CreateProjectRequest.d.ts +1 -1
  63. package/dist/models/CreateProjectRequest.js +1 -1
  64. package/dist/models/CreateUserRequest.js +3 -3
  65. package/dist/models/CreateUserRequestAvatar.js +2 -2
  66. package/dist/models/InstallTemplateRequest.d.ts +1 -1
  67. package/dist/models/InstallTemplateRequest.js +1 -1
  68. package/dist/models/Integration.d.ts +2 -2
  69. package/dist/models/Integration.js +1 -1
  70. package/dist/models/IntegrationInfo.js +1 -1
  71. package/dist/models/IntegrationsResponse.d.ts +1 -1
  72. package/dist/models/IntegrationsResponse.js +2 -2
  73. package/dist/models/Project.d.ts +2 -2
  74. package/dist/models/Project.js +3 -5
  75. package/dist/models/ProjectInvite.d.ts +1 -1
  76. package/dist/models/ProjectInvite.js +2 -2
  77. package/dist/models/ProjectInvites.d.ts +1 -1
  78. package/dist/models/ProjectInvites.js +2 -2
  79. package/dist/models/ProjectLogo.d.ts +1 -1
  80. package/dist/models/ProjectLogo.js +1 -1
  81. package/dist/models/ProjectUser.d.ts +7 -1
  82. package/dist/models/ProjectUser.js +6 -2
  83. package/dist/models/ProjectUserAvatar.d.ts +1 -1
  84. package/dist/models/ProjectUserAvatar.js +1 -1
  85. package/dist/models/ProjectUsers.d.ts +1 -1
  86. package/dist/models/ProjectUsers.js +2 -2
  87. package/dist/models/ProjectsResponse.d.ts +1 -1
  88. package/dist/models/ProjectsResponse.js +2 -2
  89. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  90. package/dist/models/SetupIntegrationRequest.js +1 -1
  91. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  92. package/dist/models/UpdateProjectRequest.js +1 -1
  93. package/dist/models/UpdateUserRequest.js +3 -3
  94. package/dist/models/UpdateUserRequestAvatar.js +2 -2
  95. package/dist/runtime.d.ts +1 -1
  96. package/dist/runtime.js +223 -439
  97. package/package.json +4 -2
  98. package/src/apis/ProjectsApi.ts +6 -8
  99. package/src/models/ApiError.ts +1 -1
  100. package/src/models/CreateInviteRequest.ts +1 -1
  101. package/src/models/CreateProjectRequest.ts +1 -1
  102. package/src/models/InstallTemplateRequest.ts +1 -1
  103. package/src/models/Integration.ts +2 -2
  104. package/src/models/IntegrationsResponse.ts +1 -1
  105. package/src/models/Project.ts +3 -4
  106. package/src/models/ProjectInvite.ts +1 -1
  107. package/src/models/ProjectInvites.ts +1 -1
  108. package/src/models/ProjectLogo.ts +1 -1
  109. package/src/models/ProjectUser.ts +10 -1
  110. package/src/models/ProjectUserAvatar.ts +1 -1
  111. package/src/models/ProjectUsers.ts +1 -1
  112. package/src/models/ProjectsResponse.ts +1 -1
  113. package/src/models/SetupIntegrationRequest.ts +1 -1
  114. package/src/models/UpdateProjectRequest.ts +1 -1
  115. package/src/runtime.ts +1 -1
  116. package/tsconfig.esm.json +7 -0
  117. package/tsconfig.json +2 -2
@@ -0,0 +1,52 @@
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.5.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
+ * Check if a given object implements the IntegrationInfo interface.
16
+ */
17
+ export function instanceOfIntegrationInfo(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "description" in value;
21
+ isInstance = isInstance && "author" in value;
22
+ isInstance = isInstance && "icon" in value;
23
+ return isInstance;
24
+ }
25
+ export function IntegrationInfoFromJSON(json) {
26
+ return IntegrationInfoFromJSONTyped(json, false);
27
+ }
28
+ export function IntegrationInfoFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'description': json['description'],
35
+ 'author': json['author'],
36
+ 'icon': json['icon'],
37
+ };
38
+ }
39
+ export function IntegrationInfoToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ 'description': value.description,
49
+ 'author': value.author,
50
+ 'icon': value.icon,
51
+ };
52
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Integration } from './Integration';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntegrationsResponse
17
+ */
18
+ export interface IntegrationsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Integration>}
22
+ * @memberof IntegrationsResponse
23
+ */
24
+ integrations: Array<Integration>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntegrationsResponse interface.
28
+ */
29
+ export declare function instanceOfIntegrationsResponse(value: object): boolean;
30
+ export declare function IntegrationsResponseFromJSON(json: any): IntegrationsResponse;
31
+ export declare function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse;
32
+ export declare function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any;
@@ -0,0 +1,41 @@
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.12.3
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
+ import { IntegrationFromJSON, IntegrationToJSON, } from './Integration';
15
+ /**
16
+ * Check if a given object implements the IntegrationsResponse interface.
17
+ */
18
+ export function instanceOfIntegrationsResponse(value) {
19
+ if (!('integrations' in value))
20
+ return false;
21
+ return true;
22
+ }
23
+ export function IntegrationsResponseFromJSON(json) {
24
+ return IntegrationsResponseFromJSONTyped(json, false);
25
+ }
26
+ export function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'integrations': (json['integrations'].map(IntegrationFromJSON)),
32
+ };
33
+ }
34
+ export function IntegrationsResponseToJSON(value) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'integrations': (value['integrations'].map(IntegrationToJSON)),
40
+ };
41
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProjectLogo } from './ProjectLogo';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Project
17
+ */
18
+ export interface Project {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Project
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Project
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {ProjectLogo}
34
+ * @memberof Project
35
+ */
36
+ logo?: ProjectLogo;
37
+ /**
38
+ *
39
+ * @type {Array<string>}
40
+ * @memberof Project
41
+ */
42
+ integrations?: Array<string>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Project interface.
46
+ */
47
+ export declare function instanceOfProject(value: object): boolean;
48
+ export declare function ProjectFromJSON(json: any): Project;
49
+ export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
50
+ export declare function ProjectToJSON(value?: Project | null): any;
@@ -0,0 +1,49 @@
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.12.3
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
+ import { ProjectLogoFromJSON, ProjectLogoToJSON, } from './ProjectLogo';
15
+ /**
16
+ * Check if a given object implements the Project interface.
17
+ */
18
+ export function instanceOfProject(value) {
19
+ if (!('id' in value))
20
+ return false;
21
+ if (!('name' in value))
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ProjectFromJSON(json) {
26
+ return ProjectFromJSONTyped(json, false);
27
+ }
28
+ export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'id': json['id'],
34
+ 'name': json['name'],
35
+ 'logo': json['logo'] == null ? undefined : ProjectLogoFromJSON(json['logo']),
36
+ 'integrations': json['integrations'] == null ? undefined : json['integrations'],
37
+ };
38
+ }
39
+ export function ProjectToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ 'logo': ProjectLogoToJSON(value['logo']),
47
+ 'integrations': value['integrations'],
48
+ };
49
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProjectUser } from './ProjectUser';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProjectInvite
17
+ */
18
+ export interface ProjectInvite {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ProjectInvite
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProjectInvite
29
+ */
30
+ inviteeEmail: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProjectInvite
35
+ */
36
+ createdAt: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ProjectInvite
41
+ */
42
+ expiresAt: string;
43
+ /**
44
+ *
45
+ * @type {ProjectUser}
46
+ * @memberof ProjectInvite
47
+ */
48
+ inviter: ProjectUser;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ProjectInvite interface.
52
+ */
53
+ export declare function instanceOfProjectInvite(value: object): boolean;
54
+ export declare function ProjectInviteFromJSON(json: any): ProjectInvite;
55
+ export declare function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvite;
56
+ export declare function ProjectInviteToJSON(value?: ProjectInvite | null): any;
@@ -0,0 +1,57 @@
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.12.3
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
+ import { ProjectUserFromJSON, ProjectUserToJSON, } from './ProjectUser';
15
+ /**
16
+ * Check if a given object implements the ProjectInvite interface.
17
+ */
18
+ export function instanceOfProjectInvite(value) {
19
+ if (!('id' in value))
20
+ return false;
21
+ if (!('inviteeEmail' in value))
22
+ return false;
23
+ if (!('createdAt' in value))
24
+ return false;
25
+ if (!('expiresAt' in value))
26
+ return false;
27
+ if (!('inviter' in value))
28
+ return false;
29
+ return true;
30
+ }
31
+ export function ProjectInviteFromJSON(json) {
32
+ return ProjectInviteFromJSONTyped(json, false);
33
+ }
34
+ export function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'inviteeEmail': json['inviteeEmail'],
41
+ 'createdAt': json['createdAt'],
42
+ 'expiresAt': json['expiresAt'],
43
+ 'inviter': ProjectUserFromJSON(json['inviter']),
44
+ };
45
+ }
46
+ export function ProjectInviteToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'inviteeEmail': value['inviteeEmail'],
53
+ 'createdAt': value['createdAt'],
54
+ 'expiresAt': value['expiresAt'],
55
+ 'inviter': ProjectUserToJSON(value['inviter']),
56
+ };
57
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProjectInvite } from './ProjectInvite';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProjectInvites
17
+ */
18
+ export interface ProjectInvites {
19
+ /**
20
+ *
21
+ * @type {Array<ProjectInvite>}
22
+ * @memberof ProjectInvites
23
+ */
24
+ invites: Array<ProjectInvite>;
25
+ /**
26
+ * The token referencing the next page number
27
+ * @type {number}
28
+ * @memberof ProjectInvites
29
+ */
30
+ nextPageToken: number | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ProjectInvites interface.
34
+ */
35
+ export declare function instanceOfProjectInvites(value: object): boolean;
36
+ export declare function ProjectInvitesFromJSON(json: any): ProjectInvites;
37
+ export declare function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvites;
38
+ export declare function ProjectInvitesToJSON(value?: ProjectInvites | null): any;
@@ -0,0 +1,45 @@
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.12.3
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
+ import { ProjectInviteFromJSON, ProjectInviteToJSON, } from './ProjectInvite';
15
+ /**
16
+ * Check if a given object implements the ProjectInvites interface.
17
+ */
18
+ export function instanceOfProjectInvites(value) {
19
+ if (!('invites' in value))
20
+ return false;
21
+ if (!('nextPageToken' in value))
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ProjectInvitesFromJSON(json) {
26
+ return ProjectInvitesFromJSONTyped(json, false);
27
+ }
28
+ export function ProjectInvitesFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'invites': (json['invites'].map(ProjectInviteFromJSON)),
34
+ 'nextPageToken': json['nextPageToken'],
35
+ };
36
+ }
37
+ export function ProjectInvitesToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'invites': (value['invites'].map(ProjectInviteToJSON)),
43
+ 'nextPageToken': value['nextPageToken'],
44
+ };
45
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProjectLogo
16
+ */
17
+ export interface ProjectLogo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ProjectLogo
22
+ */
23
+ url?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProjectLogo
28
+ */
29
+ backgroundColor?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ProjectLogo interface.
33
+ */
34
+ export declare function instanceOfProjectLogo(value: object): boolean;
35
+ export declare function ProjectLogoFromJSON(json: any): ProjectLogo;
36
+ export declare function ProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectLogo;
37
+ export declare function ProjectLogoToJSON(value?: ProjectLogo | null): any;
@@ -0,0 +1,40 @@
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.12.3
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
+ * Check if a given object implements the ProjectLogo interface.
16
+ */
17
+ export function instanceOfProjectLogo(value) {
18
+ return true;
19
+ }
20
+ export function ProjectLogoFromJSON(json) {
21
+ return ProjectLogoFromJSONTyped(json, false);
22
+ }
23
+ export function ProjectLogoFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'url': json['url'] == null ? undefined : json['url'],
29
+ 'backgroundColor': json['backgroundColor'] == null ? undefined : json['backgroundColor'],
30
+ };
31
+ }
32
+ export function ProjectLogoToJSON(value) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {
37
+ 'url': value['url'],
38
+ 'backgroundColor': value['backgroundColor'],
39
+ };
40
+ }
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.12.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProjectUserAvatar } from './ProjectUserAvatar';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProjectUser
17
+ */
18
+ export interface ProjectUser {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ProjectUser
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProjectUser
29
+ */
30
+ userRef: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProjectUser
35
+ */
36
+ type?: ProjectUserTypeEnum;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ProjectUser
41
+ */
42
+ firstName: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ProjectUser
47
+ */
48
+ lastName: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ProjectUser
53
+ */
54
+ username: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ProjectUser
59
+ */
60
+ email: string;
61
+ /**
62
+ *
63
+ * @type {ProjectUserAvatar}
64
+ * @memberof ProjectUser
65
+ */
66
+ avatar: ProjectUserAvatar;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const ProjectUserTypeEnum: {
72
+ readonly User: "user";
73
+ readonly Service: "service";
74
+ readonly Ghost: "ghost";
75
+ };
76
+ export type ProjectUserTypeEnum = typeof ProjectUserTypeEnum[keyof typeof ProjectUserTypeEnum];
77
+ /**
78
+ * Check if a given object implements the ProjectUser interface.
79
+ */
80
+ export declare function instanceOfProjectUser(value: object): boolean;
81
+ export declare function ProjectUserFromJSON(json: any): ProjectUser;
82
+ export declare function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUser;
83
+ export declare function ProjectUserToJSON(value?: ProjectUser | null): any;
@@ -0,0 +1,75 @@
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.12.3
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
+ import { ProjectUserAvatarFromJSON, ProjectUserAvatarToJSON, } from './ProjectUserAvatar';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ProjectUserTypeEnum = {
19
+ User: 'user',
20
+ Service: 'service',
21
+ Ghost: 'ghost'
22
+ };
23
+ /**
24
+ * Check if a given object implements the ProjectUser interface.
25
+ */
26
+ export function instanceOfProjectUser(value) {
27
+ if (!('id' in value))
28
+ return false;
29
+ if (!('userRef' in value))
30
+ return false;
31
+ if (!('firstName' in value))
32
+ return false;
33
+ if (!('lastName' in value))
34
+ return false;
35
+ if (!('username' in value))
36
+ return false;
37
+ if (!('email' in value))
38
+ return false;
39
+ if (!('avatar' in value))
40
+ return false;
41
+ return true;
42
+ }
43
+ export function ProjectUserFromJSON(json) {
44
+ return ProjectUserFromJSONTyped(json, false);
45
+ }
46
+ export function ProjectUserFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'userRef': json['userRef'],
53
+ 'type': json['type'] == null ? undefined : json['type'],
54
+ 'firstName': json['firstName'],
55
+ 'lastName': json['lastName'],
56
+ 'username': json['username'],
57
+ 'email': json['email'],
58
+ 'avatar': ProjectUserAvatarFromJSON(json['avatar']),
59
+ };
60
+ }
61
+ export function ProjectUserToJSON(value) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'userRef': value['userRef'],
68
+ 'type': value['type'],
69
+ 'firstName': value['firstName'],
70
+ 'lastName': value['lastName'],
71
+ 'username': value['username'],
72
+ 'email': value['email'],
73
+ 'avatar': ProjectUserAvatarToJSON(value['avatar']),
74
+ };
75
+ }