@teemill/projects 1.6.1 → 1.8.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.
- package/.openapi-generator/FILES +2 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/ProjectsApi.d.ts +23 -65
- package/dist/apis/ProjectsApi.js +42 -223
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateInviteRequest.d.ts +1 -1
- package/dist/models/CreateInviteRequest.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.js +1 -1
- package/dist/models/Integration.d.ts +7 -1
- package/dist/models/Integration.js +3 -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/ProjectInvite.d.ts +5 -11
- package/dist/models/ProjectInvite.js +4 -7
- package/dist/models/ProjectInvites.d.ts +1 -1
- package/dist/models/ProjectInvites.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectUser.d.ts +7 -7
- package/dist/models/ProjectUser.js +7 -6
- package/dist/models/ProjectUserAvatar.d.ts +31 -0
- package/dist/models/ProjectUserAvatar.js +50 -0
- package/dist/models/ProjectUsers.d.ts +1 -1
- package/dist/models/ProjectUsers.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/SetupIntegrationRequest.d.ts +31 -0
- package/dist/models/SetupIntegrationRequest.js +50 -0
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +51 -229
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateInviteRequest.ts +1 -1
- package/src/models/CreateProjectRequest.ts +1 -1
- package/src/models/Integration.ts +9 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectInvite.ts +8 -17
- package/src/models/ProjectInvites.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectUser.ts +16 -14
- package/src/models/ProjectUserAvatar.ts +65 -0
- package/src/models/ProjectUsers.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/SetupIntegrationRequest.ts +66 -0
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/models/index.ts +2 -4
- package/src/runtime.ts +1 -1
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.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,16 +18,14 @@ import type {
|
|
|
18
18
|
ApiError,
|
|
19
19
|
CreateInviteRequest,
|
|
20
20
|
CreateProjectRequest,
|
|
21
|
-
CreateUserRequest,
|
|
22
21
|
Integration,
|
|
23
22
|
IntegrationsResponse,
|
|
24
23
|
Project,
|
|
25
24
|
ProjectInvites,
|
|
26
|
-
ProjectUser,
|
|
27
25
|
ProjectUsers,
|
|
28
26
|
ProjectsResponse,
|
|
27
|
+
SetupIntegrationRequest,
|
|
29
28
|
UpdateProjectRequest,
|
|
30
|
-
UpdateUserRequest,
|
|
31
29
|
} from '../models/index';
|
|
32
30
|
import {
|
|
33
31
|
ApiErrorFromJSON,
|
|
@@ -36,8 +34,6 @@ import {
|
|
|
36
34
|
CreateInviteRequestToJSON,
|
|
37
35
|
CreateProjectRequestFromJSON,
|
|
38
36
|
CreateProjectRequestToJSON,
|
|
39
|
-
CreateUserRequestFromJSON,
|
|
40
|
-
CreateUserRequestToJSON,
|
|
41
37
|
IntegrationFromJSON,
|
|
42
38
|
IntegrationToJSON,
|
|
43
39
|
IntegrationsResponseFromJSON,
|
|
@@ -46,23 +42,16 @@ import {
|
|
|
46
42
|
ProjectToJSON,
|
|
47
43
|
ProjectInvitesFromJSON,
|
|
48
44
|
ProjectInvitesToJSON,
|
|
49
|
-
ProjectUserFromJSON,
|
|
50
|
-
ProjectUserToJSON,
|
|
51
45
|
ProjectUsersFromJSON,
|
|
52
46
|
ProjectUsersToJSON,
|
|
53
47
|
ProjectsResponseFromJSON,
|
|
54
48
|
ProjectsResponseToJSON,
|
|
49
|
+
SetupIntegrationRequestFromJSON,
|
|
50
|
+
SetupIntegrationRequestToJSON,
|
|
55
51
|
UpdateProjectRequestFromJSON,
|
|
56
52
|
UpdateProjectRequestToJSON,
|
|
57
|
-
UpdateUserRequestFromJSON,
|
|
58
|
-
UpdateUserRequestToJSON,
|
|
59
53
|
} from '../models/index';
|
|
60
54
|
|
|
61
|
-
export interface AcceptInviteRequest {
|
|
62
|
-
project: string;
|
|
63
|
-
token: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
55
|
export interface CreateInviteOperationRequest {
|
|
67
56
|
project: string;
|
|
68
57
|
createInviteRequest: CreateInviteRequest;
|
|
@@ -72,9 +61,9 @@ export interface CreateProjectOperationRequest {
|
|
|
72
61
|
createProjectRequest: CreateProjectRequest;
|
|
73
62
|
}
|
|
74
63
|
|
|
75
|
-
export interface
|
|
64
|
+
export interface DeleteInviteRequest {
|
|
76
65
|
project: string;
|
|
77
|
-
|
|
66
|
+
invite: string;
|
|
78
67
|
}
|
|
79
68
|
|
|
80
69
|
export interface DeleteProjectRequest {
|
|
@@ -104,11 +93,6 @@ export interface GetProjectRequest {
|
|
|
104
93
|
project: string;
|
|
105
94
|
}
|
|
106
95
|
|
|
107
|
-
export interface GetUserRequest {
|
|
108
|
-
project: string;
|
|
109
|
-
user: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
96
|
export interface GetUsersRequest {
|
|
113
97
|
project: string;
|
|
114
98
|
}
|
|
@@ -123,9 +107,10 @@ export interface InstallTemplateRequest {
|
|
|
123
107
|
template: string;
|
|
124
108
|
}
|
|
125
109
|
|
|
126
|
-
export interface
|
|
110
|
+
export interface SetupIntegrationOperationRequest {
|
|
127
111
|
project: string;
|
|
128
|
-
|
|
112
|
+
integration: string;
|
|
113
|
+
setupIntegrationRequest: SetupIntegrationRequest;
|
|
129
114
|
}
|
|
130
115
|
|
|
131
116
|
export interface UninstallIntegrationRequest {
|
|
@@ -138,63 +123,14 @@ export interface UpdateProjectOperationRequest {
|
|
|
138
123
|
updateProjectRequest: UpdateProjectRequest;
|
|
139
124
|
}
|
|
140
125
|
|
|
141
|
-
export interface UpdateUserOperationRequest {
|
|
142
|
-
project: string;
|
|
143
|
-
user: string;
|
|
144
|
-
updateUserRequest: UpdateUserRequest;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
126
|
/**
|
|
148
127
|
*
|
|
149
128
|
*/
|
|
150
129
|
export class ProjectsApi extends runtime.BaseAPI {
|
|
151
130
|
|
|
152
131
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
async acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
157
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
158
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling acceptInvite.');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (requestParameters.token === null || requestParameters.token === undefined) {
|
|
162
|
-
throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling acceptInvite.');
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
const response = await this.request({
|
|
170
|
-
path: `/v1/projects/{project}/invites/{token}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))),
|
|
171
|
-
method: 'GET',
|
|
172
|
-
headers: headerParameters,
|
|
173
|
-
query: queryParameters,
|
|
174
|
-
}, initOverrides);
|
|
175
|
-
|
|
176
|
-
return new runtime.VoidApiResponse(response);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
181
|
-
* gets the invite token
|
|
182
|
-
*/
|
|
183
|
-
async acceptInvite(
|
|
184
|
-
project: string, token: string,
|
|
185
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
186
|
-
): Promise<void> {
|
|
187
|
-
await this.acceptInviteRaw(
|
|
188
|
-
{
|
|
189
|
-
project: project,token: token,
|
|
190
|
-
},
|
|
191
|
-
initOverrides
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* creates an invite for the project
|
|
197
|
-
* creates an invite
|
|
132
|
+
* Creates an invite for the project
|
|
133
|
+
* Creates an invite
|
|
198
134
|
*/
|
|
199
135
|
async createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
200
136
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
@@ -232,8 +168,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
232
168
|
}
|
|
233
169
|
|
|
234
170
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
171
|
+
* Creates an invite for the project
|
|
172
|
+
* Creates an invite
|
|
237
173
|
*/
|
|
238
174
|
async createInvite(
|
|
239
175
|
project: string, createInviteRequest: CreateInviteRequest,
|
|
@@ -301,24 +237,22 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
301
237
|
}
|
|
302
238
|
|
|
303
239
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
240
|
+
* Deletes an invite to the project
|
|
241
|
+
* Deletes an invite
|
|
306
242
|
*/
|
|
307
|
-
async
|
|
243
|
+
async deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
308
244
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
309
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling
|
|
245
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
310
246
|
}
|
|
311
247
|
|
|
312
|
-
if (requestParameters.
|
|
313
|
-
throw new runtime.RequiredError('
|
|
248
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
249
|
+
throw new runtime.RequiredError('invite','Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
314
250
|
}
|
|
315
251
|
|
|
316
252
|
const queryParameters: any = {};
|
|
317
253
|
|
|
318
254
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
319
255
|
|
|
320
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
321
|
-
|
|
322
256
|
if (this.configuration && this.configuration.accessToken) {
|
|
323
257
|
// oauth required
|
|
324
258
|
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
@@ -329,32 +263,29 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
329
263
|
}
|
|
330
264
|
|
|
331
265
|
const response = await this.request({
|
|
332
|
-
path: `/v1/projects/{project}/
|
|
333
|
-
method: '
|
|
266
|
+
path: `/v1/projects/{project}/invites/{invite}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
267
|
+
method: 'DELETE',
|
|
334
268
|
headers: headerParameters,
|
|
335
269
|
query: queryParameters,
|
|
336
|
-
body: CreateUserRequestToJSON(requestParameters.createUserRequest),
|
|
337
270
|
}, initOverrides);
|
|
338
271
|
|
|
339
|
-
return new runtime.
|
|
272
|
+
return new runtime.VoidApiResponse(response);
|
|
340
273
|
}
|
|
341
274
|
|
|
342
275
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
276
|
+
* Deletes an invite to the project
|
|
277
|
+
* Deletes an invite
|
|
345
278
|
*/
|
|
346
|
-
async
|
|
347
|
-
project: string,
|
|
279
|
+
async deleteInvite(
|
|
280
|
+
project: string, invite: string,
|
|
348
281
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
349
|
-
): Promise<
|
|
350
|
-
|
|
282
|
+
): Promise<void> {
|
|
283
|
+
await this.deleteInviteRaw(
|
|
351
284
|
{
|
|
352
|
-
project: project,
|
|
285
|
+
project: project,invite: invite,
|
|
353
286
|
},
|
|
354
287
|
initOverrides
|
|
355
288
|
);
|
|
356
|
-
|
|
357
|
-
return await response.value();
|
|
358
289
|
}
|
|
359
290
|
|
|
360
291
|
/**
|
|
@@ -713,60 +644,6 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
713
644
|
return await response.value();
|
|
714
645
|
}
|
|
715
646
|
|
|
716
|
-
/**
|
|
717
|
-
* Retrieve a project user by ID
|
|
718
|
-
* Retrieve a user by ID
|
|
719
|
-
*/
|
|
720
|
-
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>> {
|
|
721
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
722
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getUser.');
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
726
|
-
throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling getUser.');
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
const queryParameters: any = {};
|
|
730
|
-
|
|
731
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
732
|
-
|
|
733
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
734
|
-
// oauth required
|
|
735
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
739
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
const response = await this.request({
|
|
743
|
-
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
744
|
-
method: 'GET',
|
|
745
|
-
headers: headerParameters,
|
|
746
|
-
query: queryParameters,
|
|
747
|
-
}, initOverrides);
|
|
748
|
-
|
|
749
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectUserFromJSON(jsonValue));
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Retrieve a project user by ID
|
|
754
|
-
* Retrieve a user by ID
|
|
755
|
-
*/
|
|
756
|
-
async getUser(
|
|
757
|
-
project: string, user: string,
|
|
758
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
759
|
-
): Promise<ProjectUser> {
|
|
760
|
-
const response = await this.getUserRaw(
|
|
761
|
-
{
|
|
762
|
-
project: project,user: user,
|
|
763
|
-
},
|
|
764
|
-
initOverrides
|
|
765
|
-
);
|
|
766
|
-
|
|
767
|
-
return await response.value();
|
|
768
|
-
}
|
|
769
|
-
|
|
770
647
|
/**
|
|
771
648
|
* List the users associated with a project
|
|
772
649
|
* List project users
|
|
@@ -926,16 +803,20 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
926
803
|
}
|
|
927
804
|
|
|
928
805
|
/**
|
|
929
|
-
*
|
|
930
|
-
*
|
|
806
|
+
* Setup an integration on the project
|
|
807
|
+
* Setup integration
|
|
931
808
|
*/
|
|
932
|
-
async
|
|
809
|
+
async setupIntegrationRaw(requestParameters: SetupIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
|
|
933
810
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
934
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling
|
|
811
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
|
|
935
812
|
}
|
|
936
813
|
|
|
937
|
-
if (requestParameters.
|
|
938
|
-
throw new runtime.RequiredError('
|
|
814
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
815
|
+
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
|
|
819
|
+
throw new runtime.RequiredError('setupIntegrationRequest','Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
|
|
939
820
|
}
|
|
940
821
|
|
|
941
822
|
const queryParameters: any = {};
|
|
@@ -954,30 +835,32 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
954
835
|
}
|
|
955
836
|
|
|
956
837
|
const response = await this.request({
|
|
957
|
-
path: `/v1/projects/{project}/
|
|
838
|
+
path: `/v1/projects/{project}/integrations/{integration}/setup`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
958
839
|
method: 'POST',
|
|
959
840
|
headers: headerParameters,
|
|
960
841
|
query: queryParameters,
|
|
961
|
-
body:
|
|
842
|
+
body: SetupIntegrationRequestToJSON(requestParameters.setupIntegrationRequest),
|
|
962
843
|
}, initOverrides);
|
|
963
844
|
|
|
964
|
-
return new runtime.
|
|
845
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
|
|
965
846
|
}
|
|
966
847
|
|
|
967
848
|
/**
|
|
968
|
-
*
|
|
969
|
-
*
|
|
849
|
+
* Setup an integration on the project
|
|
850
|
+
* Setup integration
|
|
970
851
|
*/
|
|
971
|
-
async
|
|
972
|
-
project: string,
|
|
852
|
+
async setupIntegration(
|
|
853
|
+
project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest,
|
|
973
854
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
974
|
-
): Promise<
|
|
975
|
-
await this.
|
|
855
|
+
): Promise<Integration> {
|
|
856
|
+
const response = await this.setupIntegrationRaw(
|
|
976
857
|
{
|
|
977
|
-
project: project,
|
|
858
|
+
project: project,integration: integration,setupIntegrationRequest: setupIntegrationRequest,
|
|
978
859
|
},
|
|
979
860
|
initOverrides
|
|
980
861
|
);
|
|
862
|
+
|
|
863
|
+
return await response.value();
|
|
981
864
|
}
|
|
982
865
|
|
|
983
866
|
/**
|
|
@@ -1089,65 +972,4 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
1089
972
|
return await response.value();
|
|
1090
973
|
}
|
|
1091
974
|
|
|
1092
|
-
/**
|
|
1093
|
-
* Update a project user by ID
|
|
1094
|
-
* Update a user by ID
|
|
1095
|
-
*/
|
|
1096
|
-
async updateUserRaw(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>> {
|
|
1097
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
1098
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateUser.');
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
1102
|
-
throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.');
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
if (requestParameters.updateUserRequest === null || requestParameters.updateUserRequest === undefined) {
|
|
1106
|
-
throw new runtime.RequiredError('updateUserRequest','Required parameter requestParameters.updateUserRequest was null or undefined when calling updateUser.');
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
const queryParameters: any = {};
|
|
1110
|
-
|
|
1111
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1112
|
-
|
|
1113
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1114
|
-
|
|
1115
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1116
|
-
// oauth required
|
|
1117
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1121
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
const response = await this.request({
|
|
1125
|
-
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
1126
|
-
method: 'PATCH',
|
|
1127
|
-
headers: headerParameters,
|
|
1128
|
-
query: queryParameters,
|
|
1129
|
-
body: UpdateUserRequestToJSON(requestParameters.updateUserRequest),
|
|
1130
|
-
}, initOverrides);
|
|
1131
|
-
|
|
1132
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectUserFromJSON(jsonValue));
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* Update a project user by ID
|
|
1137
|
-
* Update a user by ID
|
|
1138
|
-
*/
|
|
1139
|
-
async updateUser(
|
|
1140
|
-
project: string, user: string, updateUserRequest: UpdateUserRequest,
|
|
1141
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
1142
|
-
): Promise<ProjectUser> {
|
|
1143
|
-
const response = await this.updateUserRaw(
|
|
1144
|
-
{
|
|
1145
|
-
project: project,user: user,updateUserRequest: updateUserRequest,
|
|
1146
|
-
},
|
|
1147
|
-
initOverrides
|
|
1148
|
-
);
|
|
1149
|
-
|
|
1150
|
-
return await response.value();
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
975
|
}
|
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.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,6 +37,12 @@ export interface Integration {
|
|
|
37
37
|
* @memberof Integration
|
|
38
38
|
*/
|
|
39
39
|
config: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Integration
|
|
44
|
+
*/
|
|
45
|
+
setupAt?: Date;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -63,6 +69,7 @@ export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
63
69
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
64
70
|
'code': json['code'],
|
|
65
71
|
'config': json['config'],
|
|
72
|
+
'setupAt': !exists(json, 'setupAt') ? undefined : (new Date(json['setupAt'])),
|
|
66
73
|
};
|
|
67
74
|
}
|
|
68
75
|
|
|
@@ -77,6 +84,7 @@ export function IntegrationToJSON(value?: Integration | null): any {
|
|
|
77
84
|
|
|
78
85
|
'code': value.code,
|
|
79
86
|
'config': value.config,
|
|
87
|
+
'setupAt': value.setupAt === undefined ? undefined : (value.setupAt.toISOString()),
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
|
@@ -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.8.0
|
|
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.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,31 +31,25 @@ export interface ProjectInvite {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof ProjectInvite
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
id: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof ProjectInvite
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof ProjectInvite
|
|
45
|
-
*/
|
|
46
|
-
expiresAt: string;
|
|
40
|
+
inviteeEmail: string;
|
|
47
41
|
/**
|
|
48
42
|
*
|
|
49
43
|
* @type {string}
|
|
50
44
|
* @memberof ProjectInvite
|
|
51
45
|
*/
|
|
52
|
-
|
|
46
|
+
createdAt: string;
|
|
53
47
|
/**
|
|
54
48
|
*
|
|
55
49
|
* @type {string}
|
|
56
50
|
* @memberof ProjectInvite
|
|
57
51
|
*/
|
|
58
|
-
|
|
52
|
+
expiresAt: string;
|
|
59
53
|
/**
|
|
60
54
|
*
|
|
61
55
|
* @type {ProjectUser}
|
|
@@ -69,11 +63,10 @@ export interface ProjectInvite {
|
|
|
69
63
|
*/
|
|
70
64
|
export function instanceOfProjectInvite(value: object): boolean {
|
|
71
65
|
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "id" in value;
|
|
72
67
|
isInstance = isInstance && "inviteeEmail" in value;
|
|
73
68
|
isInstance = isInstance && "createdAt" in value;
|
|
74
69
|
isInstance = isInstance && "expiresAt" in value;
|
|
75
|
-
isInstance = isInstance && "acceptedAt" in value;
|
|
76
|
-
isInstance = isInstance && "deletedAt" in value;
|
|
77
70
|
isInstance = isInstance && "inviter" in value;
|
|
78
71
|
|
|
79
72
|
return isInstance;
|
|
@@ -89,11 +82,10 @@ export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
89
82
|
}
|
|
90
83
|
return {
|
|
91
84
|
|
|
85
|
+
'id': json['id'],
|
|
92
86
|
'inviteeEmail': json['inviteeEmail'],
|
|
93
87
|
'createdAt': json['createdAt'],
|
|
94
88
|
'expiresAt': json['expiresAt'],
|
|
95
|
-
'acceptedAt': json['acceptedAt'],
|
|
96
|
-
'deletedAt': json['deletedAt'],
|
|
97
89
|
'inviter': ProjectUserFromJSON(json['inviter']),
|
|
98
90
|
};
|
|
99
91
|
}
|
|
@@ -107,11 +99,10 @@ export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
|
|
|
107
99
|
}
|
|
108
100
|
return {
|
|
109
101
|
|
|
102
|
+
'id': value.id,
|
|
110
103
|
'inviteeEmail': value.inviteeEmail,
|
|
111
104
|
'createdAt': value.createdAt,
|
|
112
105
|
'expiresAt': value.expiresAt,
|
|
113
|
-
'acceptedAt': value.acceptedAt,
|
|
114
|
-
'deletedAt': value.deletedAt,
|
|
115
106
|
'inviter': ProjectUserToJSON(value.inviter),
|
|
116
107
|
};
|
|
117
108
|
}
|
|
@@ -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.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.8.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|