@teemill/projects 1.0.4 → 1.1.1
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.
- package/.openapi-generator/FILES +0 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +24 -10
- package/dist/apis/IntegrationsApi.js +77 -17
- package/dist/apis/ProjectsApi.d.ts +56 -2
- package/dist/apis/ProjectsApi.js +246 -6
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.d.ts +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/src/apis/IntegrationsApi.ts +69 -20
- package/src/apis/ProjectsApi.ts +201 -6
- package/src/apis/index.ts +0 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/runtime.ts +2 -2
|
@@ -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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,19 +28,24 @@ import {
|
|
|
28
28
|
IntegrationsResponseToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface GetIntegrationRequest {
|
|
32
32
|
projectId: string;
|
|
33
33
|
integrationId: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface
|
|
36
|
+
export interface GetIntegrationsRequest {
|
|
37
37
|
projectId: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export interface
|
|
40
|
+
export interface InstallIntegrationRequest {
|
|
41
41
|
projectId: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
export interface UninstallIntegrationRequest {
|
|
45
|
+
projectId: string;
|
|
46
|
+
integrationId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
*
|
|
46
51
|
*/
|
|
@@ -50,13 +55,13 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
50
55
|
* Get an integration
|
|
51
56
|
* Get integration
|
|
52
57
|
*/
|
|
53
|
-
async
|
|
58
|
+
async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
54
59
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
55
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
60
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
59
|
-
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling
|
|
64
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
const queryParameters: any = {};
|
|
@@ -73,7 +78,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
const response = await this.request({
|
|
76
|
-
path: `/
|
|
81
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
77
82
|
method: 'GET',
|
|
78
83
|
headers: headerParameters,
|
|
79
84
|
query: queryParameters,
|
|
@@ -86,8 +91,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
86
91
|
* Get an integration
|
|
87
92
|
* Get integration
|
|
88
93
|
*/
|
|
89
|
-
async
|
|
90
|
-
const response = await this.
|
|
94
|
+
async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
95
|
+
const response = await this.getIntegrationRaw(requestParameters, initOverrides);
|
|
91
96
|
return await response.value();
|
|
92
97
|
}
|
|
93
98
|
|
|
@@ -95,9 +100,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
95
100
|
* List all integrations installed on a project
|
|
96
101
|
* List integrations
|
|
97
102
|
*/
|
|
98
|
-
async
|
|
103
|
+
async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
99
104
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
100
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
105
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
const queryParameters: any = {};
|
|
@@ -114,7 +119,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
const response = await this.request({
|
|
117
|
-
path: `/
|
|
122
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
118
123
|
method: 'GET',
|
|
119
124
|
headers: headerParameters,
|
|
120
125
|
query: queryParameters,
|
|
@@ -127,8 +132,8 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
127
132
|
* List all integrations installed on a project
|
|
128
133
|
* List integrations
|
|
129
134
|
*/
|
|
130
|
-
async
|
|
131
|
-
const response = await this.
|
|
135
|
+
async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
136
|
+
const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
|
|
132
137
|
return await response.value();
|
|
133
138
|
}
|
|
134
139
|
|
|
@@ -136,9 +141,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
136
141
|
* Install an integration on the project
|
|
137
142
|
* Install integration
|
|
138
143
|
*/
|
|
139
|
-
async
|
|
144
|
+
async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
140
145
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
141
|
-
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling
|
|
146
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
const queryParameters: any = {};
|
|
@@ -155,7 +160,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
const response = await this.request({
|
|
158
|
-
path: `/
|
|
163
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
159
164
|
method: 'POST',
|
|
160
165
|
headers: headerParameters,
|
|
161
166
|
query: queryParameters,
|
|
@@ -168,9 +173,53 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
168
173
|
* Install an integration on the project
|
|
169
174
|
* Install integration
|
|
170
175
|
*/
|
|
171
|
-
async
|
|
172
|
-
const response = await this.
|
|
176
|
+
async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
177
|
+
const response = await this.installIntegrationRaw(requestParameters, initOverrides);
|
|
173
178
|
return await response.value();
|
|
174
179
|
}
|
|
175
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Uninstall a projects integration
|
|
183
|
+
* Uninstall integration
|
|
184
|
+
*/
|
|
185
|
+
async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
186
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
187
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
191
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const queryParameters: any = {};
|
|
195
|
+
|
|
196
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
+
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
// oauth required
|
|
200
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
204
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const response = await this.request({
|
|
208
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
209
|
+
method: 'DELETE',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
|
|
214
|
+
return new runtime.VoidApiResponse(response);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Uninstall a projects integration
|
|
219
|
+
* Uninstall integration
|
|
220
|
+
*/
|
|
221
|
+
async uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
222
|
+
await this.uninstallIntegrationRaw(requestParameters, initOverrides);
|
|
223
|
+
}
|
|
224
|
+
|
|
176
225
|
}
|
package/src/apis/ProjectsApi.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,12 +16,18 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiError,
|
|
19
|
+
Integration,
|
|
20
|
+
IntegrationsResponse,
|
|
19
21
|
Project,
|
|
20
22
|
ProjectsResponse,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
23
25
|
ApiErrorFromJSON,
|
|
24
26
|
ApiErrorToJSON,
|
|
27
|
+
IntegrationFromJSON,
|
|
28
|
+
IntegrationToJSON,
|
|
29
|
+
IntegrationsResponseFromJSON,
|
|
30
|
+
IntegrationsResponseToJSON,
|
|
25
31
|
ProjectFromJSON,
|
|
26
32
|
ProjectToJSON,
|
|
27
33
|
ProjectsResponseFromJSON,
|
|
@@ -32,10 +38,28 @@ export interface DeleteProjectRequest {
|
|
|
32
38
|
projectId: string;
|
|
33
39
|
}
|
|
34
40
|
|
|
41
|
+
export interface GetIntegrationRequest {
|
|
42
|
+
projectId: string;
|
|
43
|
+
integrationId: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface GetIntegrationsRequest {
|
|
47
|
+
projectId: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
export interface GetProjectRequest {
|
|
36
51
|
projectId: string;
|
|
37
52
|
}
|
|
38
53
|
|
|
54
|
+
export interface InstallIntegrationRequest {
|
|
55
|
+
projectId: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface UninstallIntegrationRequest {
|
|
59
|
+
projectId: string;
|
|
60
|
+
integrationId: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
export interface UpdateProjectRequest {
|
|
40
64
|
projectId: string;
|
|
41
65
|
}
|
|
@@ -64,7 +88,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
64
88
|
}
|
|
65
89
|
|
|
66
90
|
const response = await this.request({
|
|
67
|
-
path: `/
|
|
91
|
+
path: `/v1/projects`,
|
|
68
92
|
method: 'POST',
|
|
69
93
|
headers: headerParameters,
|
|
70
94
|
query: queryParameters,
|
|
@@ -105,7 +129,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
105
129
|
}
|
|
106
130
|
|
|
107
131
|
const response = await this.request({
|
|
108
|
-
path: `/
|
|
132
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
109
133
|
method: 'DELETE',
|
|
110
134
|
headers: headerParameters,
|
|
111
135
|
query: queryParameters,
|
|
@@ -123,6 +147,92 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
123
147
|
return await response.value();
|
|
124
148
|
}
|
|
125
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Get an integration
|
|
152
|
+
* Get integration
|
|
153
|
+
*/
|
|
154
|
+
async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
155
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
156
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegration.');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling getIntegration.');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const queryParameters: any = {};
|
|
164
|
+
|
|
165
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
|
+
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
// oauth required
|
|
169
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
173
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const response = await this.request({
|
|
177
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
178
|
+
method: 'GET',
|
|
179
|
+
headers: headerParameters,
|
|
180
|
+
query: queryParameters,
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Get an integration
|
|
188
|
+
* Get integration
|
|
189
|
+
*/
|
|
190
|
+
async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
191
|
+
const response = await this.getIntegrationRaw(requestParameters, initOverrides);
|
|
192
|
+
return await response.value();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* List all integrations installed on a project
|
|
197
|
+
* List integrations
|
|
198
|
+
*/
|
|
199
|
+
async getIntegrationsRaw(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
200
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
201
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getIntegrations.');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const queryParameters: any = {};
|
|
205
|
+
|
|
206
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
+
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
// oauth required
|
|
210
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const response = await this.request({
|
|
218
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
219
|
+
method: 'GET',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* List all integrations installed on a project
|
|
229
|
+
* List integrations
|
|
230
|
+
*/
|
|
231
|
+
async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
|
|
232
|
+
const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
|
|
233
|
+
return await response.value();
|
|
234
|
+
}
|
|
235
|
+
|
|
126
236
|
/**
|
|
127
237
|
* Get a project
|
|
128
238
|
* Get project
|
|
@@ -146,7 +256,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
146
256
|
}
|
|
147
257
|
|
|
148
258
|
const response = await this.request({
|
|
149
|
-
path: `/
|
|
259
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
150
260
|
method: 'GET',
|
|
151
261
|
headers: headerParameters,
|
|
152
262
|
query: queryParameters,
|
|
@@ -183,7 +293,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
183
293
|
}
|
|
184
294
|
|
|
185
295
|
const response = await this.request({
|
|
186
|
-
path: `/
|
|
296
|
+
path: `/v1/projects`,
|
|
187
297
|
method: 'GET',
|
|
188
298
|
headers: headerParameters,
|
|
189
299
|
query: queryParameters,
|
|
@@ -201,6 +311,91 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
201
311
|
return await response.value();
|
|
202
312
|
}
|
|
203
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Install an integration on the project
|
|
316
|
+
* Install integration
|
|
317
|
+
*/
|
|
318
|
+
async installIntegrationRaw(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
319
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
320
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling installIntegration.');
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const queryParameters: any = {};
|
|
324
|
+
|
|
325
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
326
|
+
|
|
327
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
328
|
+
// oauth required
|
|
329
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
333
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
const response = await this.request({
|
|
337
|
+
path: `/v1/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
338
|
+
method: 'POST',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
|
|
343
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Install an integration on the project
|
|
348
|
+
* Install integration
|
|
349
|
+
*/
|
|
350
|
+
async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
|
|
351
|
+
const response = await this.installIntegrationRaw(requestParameters, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Uninstall a projects integration
|
|
357
|
+
* Uninstall integration
|
|
358
|
+
*/
|
|
359
|
+
async uninstallIntegrationRaw(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
360
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
361
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling uninstallIntegration.');
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
365
|
+
throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling uninstallIntegration.');
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const queryParameters: any = {};
|
|
369
|
+
|
|
370
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
371
|
+
|
|
372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
+
// oauth required
|
|
374
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
378
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const response = await this.request({
|
|
382
|
+
path: `/v1/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
383
|
+
method: 'DELETE',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
}, initOverrides);
|
|
387
|
+
|
|
388
|
+
return new runtime.VoidApiResponse(response);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Uninstall a projects integration
|
|
393
|
+
* Uninstall integration
|
|
394
|
+
*/
|
|
395
|
+
async uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
396
|
+
await this.uninstallIntegrationRaw(requestParameters, initOverrides);
|
|
397
|
+
}
|
|
398
|
+
|
|
204
399
|
/**
|
|
205
400
|
* Update a project
|
|
206
401
|
* Update project
|
|
@@ -224,7 +419,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
224
419
|
}
|
|
225
420
|
|
|
226
421
|
const response = await this.request({
|
|
227
|
-
path: `/
|
|
422
|
+
path: `/v1/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
228
423
|
method: 'PATCH',
|
|
229
424
|
headers: headerParameters,
|
|
230
425
|
query: queryParameters,
|
package/src/apis/index.ts
CHANGED
package/src/models/ApiError.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Project.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.1.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export const BASE_PATH = "https://localhost:8080
|
|
16
|
+
export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
17
17
|
|
|
18
18
|
export interface ConfigurationParameters {
|
|
19
19
|
basePath?: string; // override base path
|