@teemill/projects 1.6.1 → 1.7.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 +1 -4
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +18 -62
- package/dist/apis/ProjectsApi.js +28 -232
- 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 +1 -1
- package/dist/models/Integration.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/ProjectInvite.d.ts +1 -13
- package/dist/models/ProjectInvite.js +1 -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/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/models/index.d.ts +1 -4
- package/dist/models/index.js +1 -4
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +31 -236
- 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 +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectInvite.ts +1 -19
- 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/UpdateProjectRequest.ts +1 -1
- package/src/models/index.ts +1 -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.7.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,13 @@ 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,
|
|
29
27
|
UpdateProjectRequest,
|
|
30
|
-
UpdateUserRequest,
|
|
31
28
|
} from '../models/index';
|
|
32
29
|
import {
|
|
33
30
|
ApiErrorFromJSON,
|
|
@@ -36,8 +33,6 @@ import {
|
|
|
36
33
|
CreateInviteRequestToJSON,
|
|
37
34
|
CreateProjectRequestFromJSON,
|
|
38
35
|
CreateProjectRequestToJSON,
|
|
39
|
-
CreateUserRequestFromJSON,
|
|
40
|
-
CreateUserRequestToJSON,
|
|
41
36
|
IntegrationFromJSON,
|
|
42
37
|
IntegrationToJSON,
|
|
43
38
|
IntegrationsResponseFromJSON,
|
|
@@ -46,21 +41,16 @@ import {
|
|
|
46
41
|
ProjectToJSON,
|
|
47
42
|
ProjectInvitesFromJSON,
|
|
48
43
|
ProjectInvitesToJSON,
|
|
49
|
-
ProjectUserFromJSON,
|
|
50
|
-
ProjectUserToJSON,
|
|
51
44
|
ProjectUsersFromJSON,
|
|
52
45
|
ProjectUsersToJSON,
|
|
53
46
|
ProjectsResponseFromJSON,
|
|
54
47
|
ProjectsResponseToJSON,
|
|
55
48
|
UpdateProjectRequestFromJSON,
|
|
56
49
|
UpdateProjectRequestToJSON,
|
|
57
|
-
UpdateUserRequestFromJSON,
|
|
58
|
-
UpdateUserRequestToJSON,
|
|
59
50
|
} from '../models/index';
|
|
60
51
|
|
|
61
52
|
export interface AcceptInviteRequest {
|
|
62
|
-
|
|
63
|
-
token: string;
|
|
53
|
+
invite: string;
|
|
64
54
|
}
|
|
65
55
|
|
|
66
56
|
export interface CreateInviteOperationRequest {
|
|
@@ -72,9 +62,9 @@ export interface CreateProjectOperationRequest {
|
|
|
72
62
|
createProjectRequest: CreateProjectRequest;
|
|
73
63
|
}
|
|
74
64
|
|
|
75
|
-
export interface
|
|
65
|
+
export interface DeleteInviteRequest {
|
|
76
66
|
project: string;
|
|
77
|
-
|
|
67
|
+
invite: string;
|
|
78
68
|
}
|
|
79
69
|
|
|
80
70
|
export interface DeleteProjectRequest {
|
|
@@ -104,11 +94,6 @@ export interface GetProjectRequest {
|
|
|
104
94
|
project: string;
|
|
105
95
|
}
|
|
106
96
|
|
|
107
|
-
export interface GetUserRequest {
|
|
108
|
-
project: string;
|
|
109
|
-
user: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
97
|
export interface GetUsersRequest {
|
|
113
98
|
project: string;
|
|
114
99
|
}
|
|
@@ -123,11 +108,6 @@ export interface InstallTemplateRequest {
|
|
|
123
108
|
template: string;
|
|
124
109
|
}
|
|
125
110
|
|
|
126
|
-
export interface RevokeInviteRequest {
|
|
127
|
-
project: string;
|
|
128
|
-
createInviteRequest: CreateInviteRequest;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
111
|
export interface UninstallIntegrationRequest {
|
|
132
112
|
project: string;
|
|
133
113
|
integration: string;
|
|
@@ -138,12 +118,6 @@ export interface UpdateProjectOperationRequest {
|
|
|
138
118
|
updateProjectRequest: UpdateProjectRequest;
|
|
139
119
|
}
|
|
140
120
|
|
|
141
|
-
export interface UpdateUserOperationRequest {
|
|
142
|
-
project: string;
|
|
143
|
-
user: string;
|
|
144
|
-
updateUserRequest: UpdateUserRequest;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
121
|
/**
|
|
148
122
|
*
|
|
149
123
|
*/
|
|
@@ -151,15 +125,11 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
151
125
|
|
|
152
126
|
/**
|
|
153
127
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
154
|
-
*
|
|
128
|
+
* Gets the invite token
|
|
155
129
|
*/
|
|
156
130
|
async acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
157
|
-
if (requestParameters.
|
|
158
|
-
throw new runtime.RequiredError('
|
|
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.');
|
|
131
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
132
|
+
throw new runtime.RequiredError('invite','Required parameter requestParameters.invite was null or undefined when calling acceptInvite.');
|
|
163
133
|
}
|
|
164
134
|
|
|
165
135
|
const queryParameters: any = {};
|
|
@@ -167,7 +137,7 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
167
137
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
138
|
|
|
169
139
|
const response = await this.request({
|
|
170
|
-
path: `/v1/projects/
|
|
140
|
+
path: `/v1/projects/accept-invite/{invite}`.replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
171
141
|
method: 'GET',
|
|
172
142
|
headers: headerParameters,
|
|
173
143
|
query: queryParameters,
|
|
@@ -178,23 +148,23 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
178
148
|
|
|
179
149
|
/**
|
|
180
150
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
181
|
-
*
|
|
151
|
+
* Gets the invite token
|
|
182
152
|
*/
|
|
183
153
|
async acceptInvite(
|
|
184
|
-
|
|
154
|
+
invite: string,
|
|
185
155
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
186
156
|
): Promise<void> {
|
|
187
157
|
await this.acceptInviteRaw(
|
|
188
158
|
{
|
|
189
|
-
|
|
159
|
+
invite: invite,
|
|
190
160
|
},
|
|
191
161
|
initOverrides
|
|
192
162
|
);
|
|
193
163
|
}
|
|
194
164
|
|
|
195
165
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
166
|
+
* Creates an invite for the project
|
|
167
|
+
* Creates an invite
|
|
198
168
|
*/
|
|
199
169
|
async createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
200
170
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
@@ -232,8 +202,8 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
232
202
|
}
|
|
233
203
|
|
|
234
204
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
205
|
+
* Creates an invite for the project
|
|
206
|
+
* Creates an invite
|
|
237
207
|
*/
|
|
238
208
|
async createInvite(
|
|
239
209
|
project: string, createInviteRequest: CreateInviteRequest,
|
|
@@ -301,24 +271,22 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
301
271
|
}
|
|
302
272
|
|
|
303
273
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
274
|
+
* Deletes an invite to the project
|
|
275
|
+
* Deletes an invite
|
|
306
276
|
*/
|
|
307
|
-
async
|
|
277
|
+
async deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
308
278
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
309
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling
|
|
279
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
310
280
|
}
|
|
311
281
|
|
|
312
|
-
if (requestParameters.
|
|
313
|
-
throw new runtime.RequiredError('
|
|
282
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
283
|
+
throw new runtime.RequiredError('invite','Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
314
284
|
}
|
|
315
285
|
|
|
316
286
|
const queryParameters: any = {};
|
|
317
287
|
|
|
318
288
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
319
289
|
|
|
320
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
321
|
-
|
|
322
290
|
if (this.configuration && this.configuration.accessToken) {
|
|
323
291
|
// oauth required
|
|
324
292
|
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
@@ -329,32 +297,29 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
329
297
|
}
|
|
330
298
|
|
|
331
299
|
const response = await this.request({
|
|
332
|
-
path: `/v1/projects/{project}/
|
|
333
|
-
method: '
|
|
300
|
+
path: `/v1/projects/{project}/invites/{invite}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
301
|
+
method: 'DELETE',
|
|
334
302
|
headers: headerParameters,
|
|
335
303
|
query: queryParameters,
|
|
336
|
-
body: CreateUserRequestToJSON(requestParameters.createUserRequest),
|
|
337
304
|
}, initOverrides);
|
|
338
305
|
|
|
339
|
-
return new runtime.
|
|
306
|
+
return new runtime.VoidApiResponse(response);
|
|
340
307
|
}
|
|
341
308
|
|
|
342
309
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
310
|
+
* Deletes an invite to the project
|
|
311
|
+
* Deletes an invite
|
|
345
312
|
*/
|
|
346
|
-
async
|
|
347
|
-
project: string,
|
|
313
|
+
async deleteInvite(
|
|
314
|
+
project: string, invite: string,
|
|
348
315
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
349
|
-
): Promise<
|
|
350
|
-
|
|
316
|
+
): Promise<void> {
|
|
317
|
+
await this.deleteInviteRaw(
|
|
351
318
|
{
|
|
352
|
-
project: project,
|
|
319
|
+
project: project,invite: invite,
|
|
353
320
|
},
|
|
354
321
|
initOverrides
|
|
355
322
|
);
|
|
356
|
-
|
|
357
|
-
return await response.value();
|
|
358
323
|
}
|
|
359
324
|
|
|
360
325
|
/**
|
|
@@ -713,60 +678,6 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
713
678
|
return await response.value();
|
|
714
679
|
}
|
|
715
680
|
|
|
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
681
|
/**
|
|
771
682
|
* List the users associated with a project
|
|
772
683
|
* List project users
|
|
@@ -925,61 +836,6 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
925
836
|
return await response.value();
|
|
926
837
|
}
|
|
927
838
|
|
|
928
|
-
/**
|
|
929
|
-
* revokes an invite to the project
|
|
930
|
-
* revokes an invite
|
|
931
|
-
*/
|
|
932
|
-
async revokeInviteRaw(requestParameters: RevokeInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
933
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
934
|
-
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling revokeInvite.');
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
|
|
938
|
-
throw new runtime.RequiredError('createInviteRequest','Required parameter requestParameters.createInviteRequest was null or undefined when calling revokeInvite.');
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
const queryParameters: any = {};
|
|
942
|
-
|
|
943
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
944
|
-
|
|
945
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
946
|
-
|
|
947
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
948
|
-
// oauth required
|
|
949
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
953
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
const response = await this.request({
|
|
957
|
-
path: `/v1/projects/{project}/invites/revoke`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
958
|
-
method: 'POST',
|
|
959
|
-
headers: headerParameters,
|
|
960
|
-
query: queryParameters,
|
|
961
|
-
body: CreateInviteRequestToJSON(requestParameters.createInviteRequest),
|
|
962
|
-
}, initOverrides);
|
|
963
|
-
|
|
964
|
-
return new runtime.VoidApiResponse(response);
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* revokes an invite to the project
|
|
969
|
-
* revokes an invite
|
|
970
|
-
*/
|
|
971
|
-
async revokeInvite(
|
|
972
|
-
project: string, createInviteRequest: CreateInviteRequest,
|
|
973
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
974
|
-
): Promise<void> {
|
|
975
|
-
await this.revokeInviteRaw(
|
|
976
|
-
{
|
|
977
|
-
project: project,createInviteRequest: createInviteRequest,
|
|
978
|
-
},
|
|
979
|
-
initOverrides
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
839
|
/**
|
|
984
840
|
* Uninstall a projects integration
|
|
985
841
|
* Uninstall integration
|
|
@@ -1089,65 +945,4 @@ export class ProjectsApi extends runtime.BaseAPI {
|
|
|
1089
945
|
return await response.value();
|
|
1090
946
|
}
|
|
1091
947
|
|
|
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
948
|
}
|
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.7.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.7.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.7.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.7.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.7.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.7.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.7.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -44,18 +44,6 @@ export interface ProjectInvite {
|
|
|
44
44
|
* @memberof ProjectInvite
|
|
45
45
|
*/
|
|
46
46
|
expiresAt: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof ProjectInvite
|
|
51
|
-
*/
|
|
52
|
-
acceptedAt: string | null;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof ProjectInvite
|
|
57
|
-
*/
|
|
58
|
-
deletedAt: string | null;
|
|
59
47
|
/**
|
|
60
48
|
*
|
|
61
49
|
* @type {ProjectUser}
|
|
@@ -72,8 +60,6 @@ export function instanceOfProjectInvite(value: object): boolean {
|
|
|
72
60
|
isInstance = isInstance && "inviteeEmail" in value;
|
|
73
61
|
isInstance = isInstance && "createdAt" in value;
|
|
74
62
|
isInstance = isInstance && "expiresAt" in value;
|
|
75
|
-
isInstance = isInstance && "acceptedAt" in value;
|
|
76
|
-
isInstance = isInstance && "deletedAt" in value;
|
|
77
63
|
isInstance = isInstance && "inviter" in value;
|
|
78
64
|
|
|
79
65
|
return isInstance;
|
|
@@ -92,8 +78,6 @@ export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
92
78
|
'inviteeEmail': json['inviteeEmail'],
|
|
93
79
|
'createdAt': json['createdAt'],
|
|
94
80
|
'expiresAt': json['expiresAt'],
|
|
95
|
-
'acceptedAt': json['acceptedAt'],
|
|
96
|
-
'deletedAt': json['deletedAt'],
|
|
97
81
|
'inviter': ProjectUserFromJSON(json['inviter']),
|
|
98
82
|
};
|
|
99
83
|
}
|
|
@@ -110,8 +94,6 @@ export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
|
|
|
110
94
|
'inviteeEmail': value.inviteeEmail,
|
|
111
95
|
'createdAt': value.createdAt,
|
|
112
96
|
'expiresAt': value.expiresAt,
|
|
113
|
-
'acceptedAt': value.acceptedAt,
|
|
114
|
-
'deletedAt': value.deletedAt,
|
|
115
97
|
'inviter': ProjectUserToJSON(value.inviter),
|
|
116
98
|
};
|
|
117
99
|
}
|
|
@@ -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.7.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.7.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.7.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ProjectUserAvatar } from './ProjectUserAvatar';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
ProjectUserAvatarFromJSON,
|
|
19
|
+
ProjectUserAvatarFromJSONTyped,
|
|
20
|
+
ProjectUserAvatarToJSON,
|
|
21
|
+
} from './ProjectUserAvatar';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -37,19 +37,19 @@ export interface ProjectUser {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof ProjectUser
|
|
39
39
|
*/
|
|
40
|
-
firstName: string;
|
|
40
|
+
firstName: string | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof ProjectUser
|
|
45
45
|
*/
|
|
46
|
-
lastName: string;
|
|
46
|
+
lastName: string | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof ProjectUser
|
|
51
51
|
*/
|
|
52
|
-
username
|
|
52
|
+
username: string | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
@@ -58,10 +58,10 @@ export interface ProjectUser {
|
|
|
58
58
|
email: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {ProjectUserAvatar}
|
|
62
62
|
* @memberof ProjectUser
|
|
63
63
|
*/
|
|
64
|
-
avatar
|
|
64
|
+
avatar: ProjectUserAvatar;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -72,7 +72,9 @@ export function instanceOfProjectUser(value: object): boolean {
|
|
|
72
72
|
isInstance = isInstance && "id" in value;
|
|
73
73
|
isInstance = isInstance && "firstName" in value;
|
|
74
74
|
isInstance = isInstance && "lastName" in value;
|
|
75
|
+
isInstance = isInstance && "username" in value;
|
|
75
76
|
isInstance = isInstance && "email" in value;
|
|
77
|
+
isInstance = isInstance && "avatar" in value;
|
|
76
78
|
|
|
77
79
|
return isInstance;
|
|
78
80
|
}
|
|
@@ -90,9 +92,9 @@ export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
90
92
|
'id': json['id'],
|
|
91
93
|
'firstName': json['firstName'],
|
|
92
94
|
'lastName': json['lastName'],
|
|
93
|
-
'username':
|
|
95
|
+
'username': json['username'],
|
|
94
96
|
'email': json['email'],
|
|
95
|
-
'avatar':
|
|
97
|
+
'avatar': ProjectUserAvatarFromJSON(json['avatar']),
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -110,7 +112,7 @@ export function ProjectUserToJSON(value?: ProjectUser | null): any {
|
|
|
110
112
|
'lastName': value.lastName,
|
|
111
113
|
'username': value.username,
|
|
112
114
|
'email': value.email,
|
|
113
|
-
'avatar':
|
|
115
|
+
'avatar': ProjectUserAvatarToJSON(value.avatar),
|
|
114
116
|
};
|
|
115
117
|
}
|
|
116
118
|
|