@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/.openapi-generator/FILES
CHANGED
|
@@ -8,8 +8,6 @@ src/index.ts
|
|
|
8
8
|
src/models/ApiError.ts
|
|
9
9
|
src/models/CreateInviteRequest.ts
|
|
10
10
|
src/models/CreateProjectRequest.ts
|
|
11
|
-
src/models/CreateUserRequest.ts
|
|
12
|
-
src/models/CreateUserRequestAvatar.ts
|
|
13
11
|
src/models/Integration.ts
|
|
14
12
|
src/models/IntegrationsResponse.ts
|
|
15
13
|
src/models/Project.ts
|
|
@@ -17,11 +15,10 @@ src/models/ProjectInvite.ts
|
|
|
17
15
|
src/models/ProjectInvites.ts
|
|
18
16
|
src/models/ProjectLogo.ts
|
|
19
17
|
src/models/ProjectUser.ts
|
|
18
|
+
src/models/ProjectUserAvatar.ts
|
|
20
19
|
src/models/ProjectUsers.ts
|
|
21
20
|
src/models/ProjectsResponse.ts
|
|
22
21
|
src/models/UpdateProjectRequest.ts
|
|
23
|
-
src/models/UpdateUserRequest.ts
|
|
24
|
-
src/models/UpdateUserRequestAvatar.ts
|
|
25
22
|
src/models/index.ts
|
|
26
23
|
src/runtime.ts
|
|
27
24
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.7.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.
|
|
39
|
+
npm install @teemill/projects@1.7.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateInviteRequest, CreateProjectRequest,
|
|
13
|
+
import type { CreateInviteRequest, CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, UpdateProjectRequest } from '../models/index';
|
|
14
14
|
export interface AcceptInviteRequest {
|
|
15
|
-
|
|
16
|
-
token: string;
|
|
15
|
+
invite: string;
|
|
17
16
|
}
|
|
18
17
|
export interface CreateInviteOperationRequest {
|
|
19
18
|
project: string;
|
|
@@ -22,9 +21,9 @@ export interface CreateInviteOperationRequest {
|
|
|
22
21
|
export interface CreateProjectOperationRequest {
|
|
23
22
|
createProjectRequest: CreateProjectRequest;
|
|
24
23
|
}
|
|
25
|
-
export interface
|
|
24
|
+
export interface DeleteInviteRequest {
|
|
26
25
|
project: string;
|
|
27
|
-
|
|
26
|
+
invite: string;
|
|
28
27
|
}
|
|
29
28
|
export interface DeleteProjectRequest {
|
|
30
29
|
project: string;
|
|
@@ -47,10 +46,6 @@ export interface GetInvitesRequest {
|
|
|
47
46
|
export interface GetProjectRequest {
|
|
48
47
|
project: string;
|
|
49
48
|
}
|
|
50
|
-
export interface GetUserRequest {
|
|
51
|
-
project: string;
|
|
52
|
-
user: string;
|
|
53
|
-
}
|
|
54
49
|
export interface GetUsersRequest {
|
|
55
50
|
project: string;
|
|
56
51
|
}
|
|
@@ -62,10 +57,6 @@ export interface InstallTemplateRequest {
|
|
|
62
57
|
project: string;
|
|
63
58
|
template: string;
|
|
64
59
|
}
|
|
65
|
-
export interface RevokeInviteRequest {
|
|
66
|
-
project: string;
|
|
67
|
-
createInviteRequest: CreateInviteRequest;
|
|
68
|
-
}
|
|
69
60
|
export interface UninstallIntegrationRequest {
|
|
70
61
|
project: string;
|
|
71
62
|
integration: string;
|
|
@@ -74,33 +65,28 @@ export interface UpdateProjectOperationRequest {
|
|
|
74
65
|
project: string;
|
|
75
66
|
updateProjectRequest: UpdateProjectRequest;
|
|
76
67
|
}
|
|
77
|
-
export interface UpdateUserOperationRequest {
|
|
78
|
-
project: string;
|
|
79
|
-
user: string;
|
|
80
|
-
updateUserRequest: UpdateUserRequest;
|
|
81
|
-
}
|
|
82
68
|
/**
|
|
83
69
|
*
|
|
84
70
|
*/
|
|
85
71
|
export declare class ProjectsApi extends runtime.BaseAPI {
|
|
86
72
|
/**
|
|
87
73
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
88
|
-
*
|
|
74
|
+
* Gets the invite token
|
|
89
75
|
*/
|
|
90
76
|
acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
91
77
|
/**
|
|
92
78
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
93
|
-
*
|
|
79
|
+
* Gets the invite token
|
|
94
80
|
*/
|
|
95
|
-
acceptInvite(
|
|
81
|
+
acceptInvite(invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
96
82
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
83
|
+
* Creates an invite for the project
|
|
84
|
+
* Creates an invite
|
|
99
85
|
*/
|
|
100
86
|
createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
101
87
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
88
|
+
* Creates an invite for the project
|
|
89
|
+
* Creates an invite
|
|
104
90
|
*/
|
|
105
91
|
createInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
106
92
|
/**
|
|
@@ -114,15 +100,15 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
114
100
|
*/
|
|
115
101
|
createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
116
102
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
103
|
+
* Deletes an invite to the project
|
|
104
|
+
* Deletes an invite
|
|
119
105
|
*/
|
|
120
|
-
|
|
106
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
121
107
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
108
|
+
* Deletes an invite to the project
|
|
109
|
+
* Deletes an invite
|
|
124
110
|
*/
|
|
125
|
-
|
|
111
|
+
deleteInvite(project: string, invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
126
112
|
/**
|
|
127
113
|
* Delete a project
|
|
128
114
|
* Delete project
|
|
@@ -193,16 +179,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
193
179
|
* List projects
|
|
194
180
|
*/
|
|
195
181
|
getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectsResponse>;
|
|
196
|
-
/**
|
|
197
|
-
* Retrieve a project user by ID
|
|
198
|
-
* Retrieve a user by ID
|
|
199
|
-
*/
|
|
200
|
-
getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>>;
|
|
201
|
-
/**
|
|
202
|
-
* Retrieve a project user by ID
|
|
203
|
-
* Retrieve a user by ID
|
|
204
|
-
*/
|
|
205
|
-
getUser(project: string, user: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUser>;
|
|
206
182
|
/**
|
|
207
183
|
* List the users associated with a project
|
|
208
184
|
* List project users
|
|
@@ -233,16 +209,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
233
209
|
* Install integration template
|
|
234
210
|
*/
|
|
235
211
|
installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
236
|
-
/**
|
|
237
|
-
* revokes an invite to the project
|
|
238
|
-
* revokes an invite
|
|
239
|
-
*/
|
|
240
|
-
revokeInviteRaw(requestParameters: RevokeInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
241
|
-
/**
|
|
242
|
-
* revokes an invite to the project
|
|
243
|
-
* revokes an invite
|
|
244
|
-
*/
|
|
245
|
-
revokeInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
246
212
|
/**
|
|
247
213
|
* Uninstall a projects integration
|
|
248
214
|
* Uninstall integration
|
|
@@ -263,14 +229,4 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
263
229
|
* Update project
|
|
264
230
|
*/
|
|
265
231
|
updateProject(project: string, updateProjectRequest: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
266
|
-
/**
|
|
267
|
-
* Update a project user by ID
|
|
268
|
-
* Update a user by ID
|
|
269
|
-
*/
|
|
270
|
-
updateUserRaw(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>>;
|
|
271
|
-
/**
|
|
272
|
-
* Update a project user by ID
|
|
273
|
-
* Update a user by ID
|
|
274
|
-
*/
|
|
275
|
-
updateUser(project: string, user: string, updateUserRequest: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUser>;
|
|
276
232
|
}
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -88,7 +88,7 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
91
|
-
*
|
|
91
|
+
* Gets the invite token
|
|
92
92
|
*/
|
|
93
93
|
ProjectsApi.prototype.acceptInviteRaw = function (requestParameters, initOverrides) {
|
|
94
94
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -96,16 +96,13 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
96
96
|
return __generator(this, function (_a) {
|
|
97
97
|
switch (_a.label) {
|
|
98
98
|
case 0:
|
|
99
|
-
if (requestParameters.
|
|
100
|
-
throw new runtime.RequiredError('
|
|
101
|
-
}
|
|
102
|
-
if (requestParameters.token === null || requestParameters.token === undefined) {
|
|
103
|
-
throw new runtime.RequiredError('token', 'Required parameter requestParameters.token was null or undefined when calling acceptInvite.');
|
|
99
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
100
|
+
throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling acceptInvite.');
|
|
104
101
|
}
|
|
105
102
|
queryParameters = {};
|
|
106
103
|
headerParameters = {};
|
|
107
104
|
return [4 /*yield*/, this.request({
|
|
108
|
-
path: "/v1/projects/
|
|
105
|
+
path: "/v1/projects/accept-invite/{invite}".replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
|
|
109
106
|
method: 'GET',
|
|
110
107
|
headers: headerParameters,
|
|
111
108
|
query: queryParameters,
|
|
@@ -119,14 +116,14 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
119
116
|
};
|
|
120
117
|
/**
|
|
121
118
|
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
122
|
-
*
|
|
119
|
+
* Gets the invite token
|
|
123
120
|
*/
|
|
124
|
-
ProjectsApi.prototype.acceptInvite = function (
|
|
121
|
+
ProjectsApi.prototype.acceptInvite = function (invite, initOverrides) {
|
|
125
122
|
return __awaiter(this, void 0, void 0, function () {
|
|
126
123
|
return __generator(this, function (_a) {
|
|
127
124
|
switch (_a.label) {
|
|
128
125
|
case 0: return [4 /*yield*/, this.acceptInviteRaw({
|
|
129
|
-
|
|
126
|
+
invite: invite,
|
|
130
127
|
}, initOverrides)];
|
|
131
128
|
case 1:
|
|
132
129
|
_a.sent();
|
|
@@ -136,8 +133,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
136
133
|
});
|
|
137
134
|
};
|
|
138
135
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
136
|
+
* Creates an invite for the project
|
|
137
|
+
* Creates an invite
|
|
141
138
|
*/
|
|
142
139
|
ProjectsApi.prototype.createInviteRaw = function (requestParameters, initOverrides) {
|
|
143
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -182,8 +179,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
182
179
|
});
|
|
183
180
|
};
|
|
184
181
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
182
|
+
* Creates an invite for the project
|
|
183
|
+
* Creates an invite
|
|
187
184
|
*/
|
|
188
185
|
ProjectsApi.prototype.createInvite = function (project, createInviteRequest, initOverrides) {
|
|
189
186
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -263,24 +260,23 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
263
260
|
});
|
|
264
261
|
};
|
|
265
262
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
263
|
+
* Deletes an invite to the project
|
|
264
|
+
* Deletes an invite
|
|
268
265
|
*/
|
|
269
|
-
ProjectsApi.prototype.
|
|
266
|
+
ProjectsApi.prototype.deleteInviteRaw = function (requestParameters, initOverrides) {
|
|
270
267
|
return __awaiter(this, void 0, void 0, function () {
|
|
271
268
|
var queryParameters, headerParameters, _a, _b, response;
|
|
272
269
|
return __generator(this, function (_c) {
|
|
273
270
|
switch (_c.label) {
|
|
274
271
|
case 0:
|
|
275
272
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
276
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling
|
|
273
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
277
274
|
}
|
|
278
|
-
if (requestParameters.
|
|
279
|
-
throw new runtime.RequiredError('
|
|
275
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
276
|
+
throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
280
277
|
}
|
|
281
278
|
queryParameters = {};
|
|
282
279
|
headerParameters = {};
|
|
283
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
284
280
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
285
281
|
// oauth required
|
|
286
282
|
_a = headerParameters;
|
|
@@ -295,35 +291,32 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
295
291
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
296
292
|
}
|
|
297
293
|
return [4 /*yield*/, this.request({
|
|
298
|
-
path: "/v1/projects/{project}/
|
|
299
|
-
method: '
|
|
294
|
+
path: "/v1/projects/{project}/invites/{invite}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
|
|
295
|
+
method: 'DELETE',
|
|
300
296
|
headers: headerParameters,
|
|
301
297
|
query: queryParameters,
|
|
302
|
-
body: (0, index_1.CreateUserRequestToJSON)(requestParameters.createUserRequest),
|
|
303
298
|
}, initOverrides)];
|
|
304
299
|
case 3:
|
|
305
300
|
response = _c.sent();
|
|
306
|
-
return [2 /*return*/, new runtime.
|
|
301
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
307
302
|
}
|
|
308
303
|
});
|
|
309
304
|
});
|
|
310
305
|
};
|
|
311
306
|
/**
|
|
312
|
-
*
|
|
313
|
-
*
|
|
307
|
+
* Deletes an invite to the project
|
|
308
|
+
* Deletes an invite
|
|
314
309
|
*/
|
|
315
|
-
ProjectsApi.prototype.
|
|
310
|
+
ProjectsApi.prototype.deleteInvite = function (project, invite, initOverrides) {
|
|
316
311
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var response;
|
|
318
312
|
return __generator(this, function (_a) {
|
|
319
313
|
switch (_a.label) {
|
|
320
|
-
case 0: return [4 /*yield*/, this.
|
|
321
|
-
project: project,
|
|
314
|
+
case 0: return [4 /*yield*/, this.deleteInviteRaw({
|
|
315
|
+
project: project, invite: invite,
|
|
322
316
|
}, initOverrides)];
|
|
323
317
|
case 1:
|
|
324
|
-
|
|
325
|
-
return [
|
|
326
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
318
|
+
_a.sent();
|
|
319
|
+
return [2 /*return*/];
|
|
327
320
|
}
|
|
328
321
|
});
|
|
329
322
|
});
|
|
@@ -756,70 +749,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
756
749
|
});
|
|
757
750
|
});
|
|
758
751
|
};
|
|
759
|
-
/**
|
|
760
|
-
* Retrieve a project user by ID
|
|
761
|
-
* Retrieve a user by ID
|
|
762
|
-
*/
|
|
763
|
-
ProjectsApi.prototype.getUserRaw = function (requestParameters, initOverrides) {
|
|
764
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
765
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
766
|
-
return __generator(this, function (_c) {
|
|
767
|
-
switch (_c.label) {
|
|
768
|
-
case 0:
|
|
769
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
770
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getUser.');
|
|
771
|
-
}
|
|
772
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
773
|
-
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling getUser.');
|
|
774
|
-
}
|
|
775
|
-
queryParameters = {};
|
|
776
|
-
headerParameters = {};
|
|
777
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
778
|
-
// oauth required
|
|
779
|
-
_a = headerParameters;
|
|
780
|
-
_b = "Authorization";
|
|
781
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
782
|
-
case 1:
|
|
783
|
-
// oauth required
|
|
784
|
-
_a[_b] = _c.sent();
|
|
785
|
-
_c.label = 2;
|
|
786
|
-
case 2:
|
|
787
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
788
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
789
|
-
}
|
|
790
|
-
return [4 /*yield*/, this.request({
|
|
791
|
-
path: "/v1/projects/{project}/users/{user}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("user", "}"), encodeURIComponent(String(requestParameters.user))),
|
|
792
|
-
method: 'GET',
|
|
793
|
-
headers: headerParameters,
|
|
794
|
-
query: queryParameters,
|
|
795
|
-
}, initOverrides)];
|
|
796
|
-
case 3:
|
|
797
|
-
response = _c.sent();
|
|
798
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUserFromJSON)(jsonValue); })];
|
|
799
|
-
}
|
|
800
|
-
});
|
|
801
|
-
});
|
|
802
|
-
};
|
|
803
|
-
/**
|
|
804
|
-
* Retrieve a project user by ID
|
|
805
|
-
* Retrieve a user by ID
|
|
806
|
-
*/
|
|
807
|
-
ProjectsApi.prototype.getUser = function (project, user, initOverrides) {
|
|
808
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
809
|
-
var response;
|
|
810
|
-
return __generator(this, function (_a) {
|
|
811
|
-
switch (_a.label) {
|
|
812
|
-
case 0: return [4 /*yield*/, this.getUserRaw({
|
|
813
|
-
project: project, user: user,
|
|
814
|
-
}, initOverrides)];
|
|
815
|
-
case 1:
|
|
816
|
-
response = _a.sent();
|
|
817
|
-
return [4 /*yield*/, response.value()];
|
|
818
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
819
|
-
}
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
};
|
|
823
752
|
/**
|
|
824
753
|
* List the users associated with a project
|
|
825
754
|
* List project users
|
|
@@ -1009,70 +938,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
1009
938
|
});
|
|
1010
939
|
});
|
|
1011
940
|
};
|
|
1012
|
-
/**
|
|
1013
|
-
* revokes an invite to the project
|
|
1014
|
-
* revokes an invite
|
|
1015
|
-
*/
|
|
1016
|
-
ProjectsApi.prototype.revokeInviteRaw = function (requestParameters, initOverrides) {
|
|
1017
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1018
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
1019
|
-
return __generator(this, function (_c) {
|
|
1020
|
-
switch (_c.label) {
|
|
1021
|
-
case 0:
|
|
1022
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
1023
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling revokeInvite.');
|
|
1024
|
-
}
|
|
1025
|
-
if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
|
|
1026
|
-
throw new runtime.RequiredError('createInviteRequest', 'Required parameter requestParameters.createInviteRequest was null or undefined when calling revokeInvite.');
|
|
1027
|
-
}
|
|
1028
|
-
queryParameters = {};
|
|
1029
|
-
headerParameters = {};
|
|
1030
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1031
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1032
|
-
// oauth required
|
|
1033
|
-
_a = headerParameters;
|
|
1034
|
-
_b = "Authorization";
|
|
1035
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
1036
|
-
case 1:
|
|
1037
|
-
// oauth required
|
|
1038
|
-
_a[_b] = _c.sent();
|
|
1039
|
-
_c.label = 2;
|
|
1040
|
-
case 2:
|
|
1041
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1042
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1043
|
-
}
|
|
1044
|
-
return [4 /*yield*/, this.request({
|
|
1045
|
-
path: "/v1/projects/{project}/invites/revoke".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
1046
|
-
method: 'POST',
|
|
1047
|
-
headers: headerParameters,
|
|
1048
|
-
query: queryParameters,
|
|
1049
|
-
body: (0, index_1.CreateInviteRequestToJSON)(requestParameters.createInviteRequest),
|
|
1050
|
-
}, initOverrides)];
|
|
1051
|
-
case 3:
|
|
1052
|
-
response = _c.sent();
|
|
1053
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
/**
|
|
1059
|
-
* revokes an invite to the project
|
|
1060
|
-
* revokes an invite
|
|
1061
|
-
*/
|
|
1062
|
-
ProjectsApi.prototype.revokeInvite = function (project, createInviteRequest, initOverrides) {
|
|
1063
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1064
|
-
return __generator(this, function (_a) {
|
|
1065
|
-
switch (_a.label) {
|
|
1066
|
-
case 0: return [4 /*yield*/, this.revokeInviteRaw({
|
|
1067
|
-
project: project, createInviteRequest: createInviteRequest,
|
|
1068
|
-
}, initOverrides)];
|
|
1069
|
-
case 1:
|
|
1070
|
-
_a.sent();
|
|
1071
|
-
return [2 /*return*/];
|
|
1072
|
-
}
|
|
1073
|
-
});
|
|
1074
|
-
});
|
|
1075
|
-
};
|
|
1076
941
|
/**
|
|
1077
942
|
* Uninstall a projects integration
|
|
1078
943
|
* Uninstall integration
|
|
@@ -1201,75 +1066,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
1201
1066
|
});
|
|
1202
1067
|
});
|
|
1203
1068
|
};
|
|
1204
|
-
/**
|
|
1205
|
-
* Update a project user by ID
|
|
1206
|
-
* Update a user by ID
|
|
1207
|
-
*/
|
|
1208
|
-
ProjectsApi.prototype.updateUserRaw = function (requestParameters, initOverrides) {
|
|
1209
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1210
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
1211
|
-
return __generator(this, function (_c) {
|
|
1212
|
-
switch (_c.label) {
|
|
1213
|
-
case 0:
|
|
1214
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
1215
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateUser.');
|
|
1216
|
-
}
|
|
1217
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
1218
|
-
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling updateUser.');
|
|
1219
|
-
}
|
|
1220
|
-
if (requestParameters.updateUserRequest === null || requestParameters.updateUserRequest === undefined) {
|
|
1221
|
-
throw new runtime.RequiredError('updateUserRequest', 'Required parameter requestParameters.updateUserRequest was null or undefined when calling updateUser.');
|
|
1222
|
-
}
|
|
1223
|
-
queryParameters = {};
|
|
1224
|
-
headerParameters = {};
|
|
1225
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1226
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1227
|
-
// oauth required
|
|
1228
|
-
_a = headerParameters;
|
|
1229
|
-
_b = "Authorization";
|
|
1230
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
1231
|
-
case 1:
|
|
1232
|
-
// oauth required
|
|
1233
|
-
_a[_b] = _c.sent();
|
|
1234
|
-
_c.label = 2;
|
|
1235
|
-
case 2:
|
|
1236
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1237
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1238
|
-
}
|
|
1239
|
-
return [4 /*yield*/, this.request({
|
|
1240
|
-
path: "/v1/projects/{project}/users/{user}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("user", "}"), encodeURIComponent(String(requestParameters.user))),
|
|
1241
|
-
method: 'PATCH',
|
|
1242
|
-
headers: headerParameters,
|
|
1243
|
-
query: queryParameters,
|
|
1244
|
-
body: (0, index_1.UpdateUserRequestToJSON)(requestParameters.updateUserRequest),
|
|
1245
|
-
}, initOverrides)];
|
|
1246
|
-
case 3:
|
|
1247
|
-
response = _c.sent();
|
|
1248
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUserFromJSON)(jsonValue); })];
|
|
1249
|
-
}
|
|
1250
|
-
});
|
|
1251
|
-
});
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* Update a project user by ID
|
|
1255
|
-
* Update a user by ID
|
|
1256
|
-
*/
|
|
1257
|
-
ProjectsApi.prototype.updateUser = function (project, user, updateUserRequest, initOverrides) {
|
|
1258
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1259
|
-
var response;
|
|
1260
|
-
return __generator(this, function (_a) {
|
|
1261
|
-
switch (_a.label) {
|
|
1262
|
-
case 0: return [4 /*yield*/, this.updateUserRaw({
|
|
1263
|
-
project: project, user: user, updateUserRequest: updateUserRequest,
|
|
1264
|
-
}, initOverrides)];
|
|
1265
|
-
case 1:
|
|
1266
|
-
response = _a.sent();
|
|
1267
|
-
return [4 /*yield*/, response.value()];
|
|
1268
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1269
|
-
}
|
|
1270
|
-
});
|
|
1271
|
-
});
|
|
1272
|
-
};
|
|
1273
1069
|
return ProjectsApi;
|
|
1274
1070
|
}(runtime.BaseAPI));
|
|
1275
1071
|
exports.ProjectsApi = ProjectsApi;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|