@teemill/projects 1.16.0 → 1.18.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 (166) hide show
  1. package/.openapi-generator/FILES +6 -23
  2. package/README.md +3 -3
  3. package/api.ts +2262 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1400 -0
  8. package/dist/api.js +1374 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1400 -0
  16. package/dist/esm/api.js +1367 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/index.ts +18 -0
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/ProjectsApi.d.ts +0 -255
  32. package/dist/apis/ProjectsApi.js +0 -748
  33. package/dist/apis/index.d.ts +0 -1
  34. package/dist/apis/index.js +0 -19
  35. package/dist/esm/apis/ProjectsApi.d.ts +0 -255
  36. package/dist/esm/apis/ProjectsApi.js +0 -744
  37. package/dist/esm/apis/index.d.ts +0 -1
  38. package/dist/esm/apis/index.js +0 -3
  39. package/dist/esm/models/ApiError.d.ts +0 -37
  40. package/dist/esm/models/ApiError.js +0 -42
  41. package/dist/esm/models/CreateInviteRequest.d.ts +0 -31
  42. package/dist/esm/models/CreateInviteRequest.js +0 -40
  43. package/dist/esm/models/CreateProjectRequest.d.ts +0 -43
  44. package/dist/esm/models/CreateProjectRequest.js +0 -44
  45. package/dist/esm/models/CreateUserRequest.d.ts +0 -56
  46. package/dist/esm/models/CreateUserRequest.js +0 -55
  47. package/dist/esm/models/CreateUserRequestAvatar.d.ts +0 -31
  48. package/dist/esm/models/CreateUserRequestAvatar.js +0 -43
  49. package/dist/esm/models/InstallTemplateRequest.d.ts +0 -31
  50. package/dist/esm/models/InstallTemplateRequest.js +0 -38
  51. package/dist/esm/models/Integration.d.ts +0 -49
  52. package/dist/esm/models/Integration.js +0 -47
  53. package/dist/esm/models/IntegrationInfo.d.ts +0 -49
  54. package/dist/esm/models/IntegrationInfo.js +0 -52
  55. package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
  56. package/dist/esm/models/IntegrationsResponse.js +0 -41
  57. package/dist/esm/models/LegacyProjectLogo.d.ts +0 -37
  58. package/dist/esm/models/LegacyProjectLogo.js +0 -44
  59. package/dist/esm/models/Project.d.ts +0 -65
  60. package/dist/esm/models/Project.js +0 -59
  61. package/dist/esm/models/ProjectInvite.d.ts +0 -56
  62. package/dist/esm/models/ProjectInvite.js +0 -57
  63. package/dist/esm/models/ProjectInvites.d.ts +0 -38
  64. package/dist/esm/models/ProjectInvites.js +0 -45
  65. package/dist/esm/models/ProjectLogo.d.ts +0 -39
  66. package/dist/esm/models/ProjectLogo.js +0 -44
  67. package/dist/esm/models/ProjectManager.d.ts +0 -44
  68. package/dist/esm/models/ProjectManager.js +0 -49
  69. package/dist/esm/models/ProjectUser.d.ts +0 -83
  70. package/dist/esm/models/ProjectUser.js +0 -75
  71. package/dist/esm/models/ProjectUserAvatar.d.ts +0 -31
  72. package/dist/esm/models/ProjectUserAvatar.js +0 -38
  73. package/dist/esm/models/ProjectUsers.d.ts +0 -38
  74. package/dist/esm/models/ProjectUsers.js +0 -45
  75. package/dist/esm/models/ProjectsResponse.d.ts +0 -32
  76. package/dist/esm/models/ProjectsResponse.js +0 -41
  77. package/dist/esm/models/SetupIntegrationRequest.d.ts +0 -31
  78. package/dist/esm/models/SetupIntegrationRequest.js +0 -40
  79. package/dist/esm/models/UpdateProjectRequest.d.ts +0 -38
  80. package/dist/esm/models/UpdateProjectRequest.js +0 -41
  81. package/dist/esm/models/UpdateUserRequest.d.ts +0 -56
  82. package/dist/esm/models/UpdateUserRequest.js +0 -52
  83. package/dist/esm/models/UpdateUserRequestAvatar.d.ts +0 -31
  84. package/dist/esm/models/UpdateUserRequestAvatar.js +0 -43
  85. package/dist/esm/models/index.d.ts +0 -18
  86. package/dist/esm/models/index.js +0 -20
  87. package/dist/esm/runtime.d.ts +0 -187
  88. package/dist/esm/runtime.js +0 -333
  89. package/dist/models/ApiError.d.ts +0 -37
  90. package/dist/models/ApiError.js +0 -49
  91. package/dist/models/CreateInviteRequest.d.ts +0 -31
  92. package/dist/models/CreateInviteRequest.js +0 -47
  93. package/dist/models/CreateProjectRequest.d.ts +0 -43
  94. package/dist/models/CreateProjectRequest.js +0 -51
  95. package/dist/models/CreateUserRequest.d.ts +0 -56
  96. package/dist/models/CreateUserRequest.js +0 -62
  97. package/dist/models/CreateUserRequestAvatar.d.ts +0 -31
  98. package/dist/models/CreateUserRequestAvatar.js +0 -50
  99. package/dist/models/InstallTemplateRequest.d.ts +0 -31
  100. package/dist/models/InstallTemplateRequest.js +0 -45
  101. package/dist/models/Integration.d.ts +0 -49
  102. package/dist/models/Integration.js +0 -54
  103. package/dist/models/IntegrationInfo.d.ts +0 -49
  104. package/dist/models/IntegrationInfo.js +0 -59
  105. package/dist/models/IntegrationsResponse.d.ts +0 -32
  106. package/dist/models/IntegrationsResponse.js +0 -48
  107. package/dist/models/LegacyProjectLogo.d.ts +0 -37
  108. package/dist/models/LegacyProjectLogo.js +0 -51
  109. package/dist/models/Project.d.ts +0 -65
  110. package/dist/models/Project.js +0 -66
  111. package/dist/models/ProjectInvite.d.ts +0 -56
  112. package/dist/models/ProjectInvite.js +0 -64
  113. package/dist/models/ProjectInvites.d.ts +0 -38
  114. package/dist/models/ProjectInvites.js +0 -52
  115. package/dist/models/ProjectLogo.d.ts +0 -39
  116. package/dist/models/ProjectLogo.js +0 -51
  117. package/dist/models/ProjectManager.d.ts +0 -44
  118. package/dist/models/ProjectManager.js +0 -56
  119. package/dist/models/ProjectUser.d.ts +0 -83
  120. package/dist/models/ProjectUser.js +0 -82
  121. package/dist/models/ProjectUserAvatar.d.ts +0 -31
  122. package/dist/models/ProjectUserAvatar.js +0 -45
  123. package/dist/models/ProjectUsers.d.ts +0 -38
  124. package/dist/models/ProjectUsers.js +0 -52
  125. package/dist/models/ProjectsResponse.d.ts +0 -32
  126. package/dist/models/ProjectsResponse.js +0 -48
  127. package/dist/models/SetupIntegrationRequest.d.ts +0 -31
  128. package/dist/models/SetupIntegrationRequest.js +0 -47
  129. package/dist/models/UpdateProjectRequest.d.ts +0 -38
  130. package/dist/models/UpdateProjectRequest.js +0 -48
  131. package/dist/models/UpdateUserRequest.d.ts +0 -56
  132. package/dist/models/UpdateUserRequest.js +0 -59
  133. package/dist/models/UpdateUserRequestAvatar.d.ts +0 -31
  134. package/dist/models/UpdateUserRequestAvatar.js +0 -50
  135. package/dist/models/index.d.ts +0 -18
  136. package/dist/models/index.js +0 -36
  137. package/dist/runtime.d.ts +0 -187
  138. package/dist/runtime.js +0 -349
  139. package/src/apis/ProjectsApi.ts +0 -1085
  140. package/src/apis/index.ts +0 -3
  141. package/src/index.ts +0 -5
  142. package/src/models/ApiError.ts +0 -69
  143. package/src/models/CreateInviteRequest.ts +0 -61
  144. package/src/models/CreateProjectRequest.ts +0 -77
  145. package/src/models/CreateUserRequest.ts +0 -107
  146. package/src/models/CreateUserRequestAvatar.ts +0 -65
  147. package/src/models/InstallTemplateRequest.ts +0 -60
  148. package/src/models/Integration.ts +0 -85
  149. package/src/models/IntegrationInfo.ts +0 -93
  150. package/src/models/IntegrationsResponse.ts +0 -68
  151. package/src/models/LegacyProjectLogo.ts +0 -70
  152. package/src/models/Project.ts +0 -124
  153. package/src/models/ProjectInvite.ts +0 -104
  154. package/src/models/ProjectInvites.ts +0 -77
  155. package/src/models/ProjectLogo.ts +0 -70
  156. package/src/models/ProjectManager.ts +0 -86
  157. package/src/models/ProjectUser.ts +0 -142
  158. package/src/models/ProjectUserAvatar.ts +0 -60
  159. package/src/models/ProjectUsers.ts +0 -77
  160. package/src/models/ProjectsResponse.ts +0 -68
  161. package/src/models/SetupIntegrationRequest.ts +0 -61
  162. package/src/models/UpdateProjectRequest.ts +0 -75
  163. package/src/models/UpdateUserRequest.ts +0 -104
  164. package/src/models/UpdateUserRequestAvatar.ts +0 -65
  165. package/src/models/index.ts +0 -20
  166. package/src/runtime.ts +0 -441
package/src/apis/index.ts DELETED
@@ -1,3 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './ProjectsApi';
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './runtime';
4
- export * from './apis/index';
5
- export * from './models/index';
@@ -1,69 +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.16.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 ApiError
20
- */
21
- export interface ApiError {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ApiError
26
- */
27
- code?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ApiError
32
- */
33
- message: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ApiError interface.
38
- */
39
- export function instanceOfApiError(value: object): value is ApiError {
40
- if (!('message' in value) || value['message'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function ApiErrorFromJSON(json: any): ApiError {
45
- return ApiErrorFromJSONTyped(json, false);
46
- }
47
-
48
- export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'code': json['code'] == null ? undefined : json['code'],
55
- 'message': json['message'],
56
- };
57
- }
58
-
59
- export function ApiErrorToJSON(value?: ApiError | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'code': value['code'],
66
- 'message': value['message'],
67
- };
68
- }
69
-
@@ -1,61 +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.16.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 CreateInviteRequest
20
- */
21
- export interface CreateInviteRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateInviteRequest
26
- */
27
- email: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateInviteRequest interface.
32
- */
33
- export function instanceOfCreateInviteRequest(value: object): value is CreateInviteRequest {
34
- if (!('email' in value) || value['email'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
39
- return CreateInviteRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInviteRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'email': json['email'],
49
- };
50
- }
51
-
52
- export function CreateInviteRequestToJSON(value?: CreateInviteRequest | null): any {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
-
58
- 'email': value['email'],
59
- };
60
- }
61
-
@@ -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.16.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 CreateProjectRequest
20
- */
21
- export interface CreateProjectRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateProjectRequest
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CreateProjectRequest
32
- */
33
- template?: string;
34
- /**
35
- *
36
- * @type {object}
37
- * @memberof CreateProjectRequest
38
- */
39
- config?: object;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the CreateProjectRequest interface.
44
- */
45
- export function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest {
46
- if (!('name' in value) || value['name'] === undefined) return false;
47
- return true;
48
- }
49
-
50
- export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
51
- return CreateProjectRequestFromJSONTyped(json, false);
52
- }
53
-
54
- export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
-
60
- 'name': json['name'],
61
- 'template': json['template'] == null ? undefined : json['template'],
62
- 'config': json['config'] == null ? undefined : json['config'],
63
- };
64
- }
65
-
66
- export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any {
67
- if (value == null) {
68
- return value;
69
- }
70
- return {
71
-
72
- 'name': value['name'],
73
- 'template': value['template'],
74
- 'config': value['config'],
75
- };
76
- }
77
-
@@ -1,107 +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.6.1
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 { exists, mapValues } from '../runtime';
16
- import type { CreateUserRequestAvatar } from './CreateUserRequestAvatar';
17
- import {
18
- CreateUserRequestAvatarFromJSON,
19
- CreateUserRequestAvatarFromJSONTyped,
20
- CreateUserRequestAvatarToJSON,
21
- } from './CreateUserRequestAvatar';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface CreateUserRequest
27
- */
28
- export interface CreateUserRequest {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateUserRequest
33
- */
34
- firstName: string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof CreateUserRequest
39
- */
40
- lastName: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CreateUserRequest
45
- */
46
- username?: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CreateUserRequest
51
- */
52
- email: string;
53
- /**
54
- *
55
- * @type {CreateUserRequestAvatar}
56
- * @memberof CreateUserRequest
57
- */
58
- avatar?: CreateUserRequestAvatar;
59
- }
60
-
61
- /**
62
- * Check if a given object implements the CreateUserRequest interface.
63
- */
64
- export function instanceOfCreateUserRequest(value: object): boolean {
65
- let isInstance = true;
66
- isInstance = isInstance && "firstName" in value;
67
- isInstance = isInstance && "lastName" in value;
68
- isInstance = isInstance && "email" in value;
69
-
70
- return isInstance;
71
- }
72
-
73
- export function CreateUserRequestFromJSON(json: any): CreateUserRequest {
74
- return CreateUserRequestFromJSONTyped(json, false);
75
- }
76
-
77
- export function CreateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequest {
78
- if ((json === undefined) || (json === null)) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'firstName': json['firstName'],
84
- 'lastName': json['lastName'],
85
- 'username': !exists(json, 'username') ? undefined : json['username'],
86
- 'email': json['email'],
87
- 'avatar': !exists(json, 'avatar') ? undefined : CreateUserRequestAvatarFromJSON(json['avatar']),
88
- };
89
- }
90
-
91
- export function CreateUserRequestToJSON(value?: CreateUserRequest | null): any {
92
- if (value === undefined) {
93
- return undefined;
94
- }
95
- if (value === null) {
96
- return null;
97
- }
98
- return {
99
-
100
- 'firstName': value.firstName,
101
- 'lastName': value.lastName,
102
- 'username': value.username,
103
- 'email': value.email,
104
- 'avatar': CreateUserRequestAvatarToJSON(value.avatar),
105
- };
106
- }
107
-
@@ -1,65 +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.6.1
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 { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateUserRequestAvatar
20
- */
21
- export interface CreateUserRequestAvatar {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateUserRequestAvatar
26
- */
27
- original?: string | null;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateUserRequestAvatar interface.
32
- */
33
- export function instanceOfCreateUserRequestAvatar(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
37
- }
38
-
39
- export function CreateUserRequestAvatarFromJSON(json: any): CreateUserRequestAvatar {
40
- return CreateUserRequestAvatarFromJSONTyped(json, false);
41
- }
42
-
43
- export function CreateUserRequestAvatarFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequestAvatar {
44
- if ((json === undefined) || (json === null)) {
45
- return json;
46
- }
47
- return {
48
-
49
- 'original': !exists(json, 'original') ? undefined : json['original'],
50
- };
51
- }
52
-
53
- export function CreateUserRequestAvatarToJSON(value?: CreateUserRequestAvatar | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
59
- }
60
- return {
61
-
62
- 'original': value.original,
63
- };
64
- }
65
-
@@ -1,60 +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.16.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 InstallTemplateRequest
20
- */
21
- export interface InstallTemplateRequest {
22
- /**
23
- *
24
- * @type {object}
25
- * @memberof InstallTemplateRequest
26
- */
27
- config?: object;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the InstallTemplateRequest interface.
32
- */
33
- export function instanceOfInstallTemplateRequest(value: object): value is InstallTemplateRequest {
34
- return true;
35
- }
36
-
37
- export function InstallTemplateRequestFromJSON(json: any): InstallTemplateRequest {
38
- return InstallTemplateRequestFromJSONTyped(json, false);
39
- }
40
-
41
- export function InstallTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallTemplateRequest {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'config': json['config'] == null ? undefined : json['config'],
48
- };
49
- }
50
-
51
- export function InstallTemplateRequestToJSON(value?: InstallTemplateRequest | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'config': value['config'],
58
- };
59
- }
60
-
@@ -1,85 +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.16.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 Integration
20
- */
21
- export interface Integration {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof Integration
26
- */
27
- readonly id?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof Integration
32
- */
33
- code: string;
34
- /**
35
- *
36
- * @type {object}
37
- * @memberof Integration
38
- */
39
- config: object;
40
- /**
41
- *
42
- * @type {Date}
43
- * @memberof Integration
44
- */
45
- setupAt?: Date;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the Integration interface.
50
- */
51
- export function instanceOfIntegration(value: object): value is Integration {
52
- if (!('code' in value) || value['code'] === undefined) return false;
53
- if (!('config' in value) || value['config'] === undefined) return false;
54
- return true;
55
- }
56
-
57
- export function IntegrationFromJSON(json: any): Integration {
58
- return IntegrationFromJSONTyped(json, false);
59
- }
60
-
61
- export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
62
- if (json == null) {
63
- return json;
64
- }
65
- return {
66
-
67
- 'id': json['id'] == null ? undefined : json['id'],
68
- 'code': json['code'],
69
- 'config': json['config'],
70
- 'setupAt': json['setupAt'] == null ? undefined : (new Date(json['setupAt'])),
71
- };
72
- }
73
-
74
- export function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any {
75
- if (value == null) {
76
- return value;
77
- }
78
- return {
79
-
80
- 'code': value['code'],
81
- 'config': value['config'],
82
- 'setupAt': value['setupAt'] == null ? undefined : ((value['setupAt']).toISOString()),
83
- };
84
- }
85
-
@@ -1,93 +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.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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface IntegrationInfo
20
- */
21
- export interface IntegrationInfo {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IntegrationInfo
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IntegrationInfo
32
- */
33
- description: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IntegrationInfo
38
- */
39
- author: string;
40
- /**
41
- *
42
- * @type {object}
43
- * @memberof IntegrationInfo
44
- */
45
- icon: object;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the IntegrationInfo interface.
50
- */
51
- export function instanceOfIntegrationInfo(value: object): boolean {
52
- let isInstance = true;
53
- isInstance = isInstance && "name" in value;
54
- isInstance = isInstance && "description" in value;
55
- isInstance = isInstance && "author" in value;
56
- isInstance = isInstance && "icon" in value;
57
-
58
- return isInstance;
59
- }
60
-
61
- export function IntegrationInfoFromJSON(json: any): IntegrationInfo {
62
- return IntegrationInfoFromJSONTyped(json, false);
63
- }
64
-
65
- export function IntegrationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationInfo {
66
- if ((json === undefined) || (json === null)) {
67
- return json;
68
- }
69
- return {
70
-
71
- 'name': json['name'],
72
- 'description': json['description'],
73
- 'author': json['author'],
74
- 'icon': json['icon'],
75
- };
76
- }
77
-
78
- export function IntegrationInfoToJSON(value?: IntegrationInfo | null): any {
79
- if (value === undefined) {
80
- return undefined;
81
- }
82
- if (value === null) {
83
- return null;
84
- }
85
- return {
86
-
87
- 'name': value.name,
88
- 'description': value.description,
89
- 'author': value.author,
90
- 'icon': value.icon,
91
- };
92
- }
93
-
@@ -1,68 +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.16.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 { Integration } from './Integration';
17
- import {
18
- IntegrationFromJSON,
19
- IntegrationFromJSONTyped,
20
- IntegrationToJSON,
21
- } from './Integration';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface IntegrationsResponse
27
- */
28
- export interface IntegrationsResponse {
29
- /**
30
- *
31
- * @type {Array<Integration>}
32
- * @memberof IntegrationsResponse
33
- */
34
- integrations: Array<Integration>;
35
- }
36
-
37
- /**
38
- * Check if a given object implements the IntegrationsResponse interface.
39
- */
40
- export function instanceOfIntegrationsResponse(value: object): value is IntegrationsResponse {
41
- if (!('integrations' in value) || value['integrations'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
46
- return IntegrationsResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'integrations': ((json['integrations'] as Array<any>).map(IntegrationFromJSON)),
56
- };
57
- }
58
-
59
- export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'integrations': ((value['integrations'] as Array<any>).map(IntegrationToJSON)),
66
- };
67
- }
68
-