@teemill/projects 1.6.0 → 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 +20 -63
- package/dist/apis/ProjectsApi.js +36 -248
- 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/CreateUserRequest.d.ts +1 -1
- package/dist/models/CreateUserRequest.js +1 -1
- package/dist/models/CreateUserRequestAvatar.d.ts +1 -1
- package/dist/models/CreateUserRequestAvatar.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 +4 -23
- package/dist/models/ProjectInvite.js +10 -20
- 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/UpdateUserRequest.d.ts +1 -1
- package/dist/models/UpdateUserRequest.js +1 -1
- package/dist/models/UpdateUserRequestAvatar.d.ts +1 -1
- package/dist/models/UpdateUserRequestAvatar.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 +34 -240
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateInviteRequest.ts +1 -1
- package/src/models/CreateProjectRequest.ts +1 -1
- package/src/models/CreateUserRequest.ts +1 -1
- package/src/models/CreateUserRequestAvatar.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 +13 -46
- 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/UpdateUserRequest.ts +1 -1
- package/src/models/UpdateUserRequestAvatar.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,9 +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
|
-
|
|
15
|
+
invite: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateInviteOperationRequest {
|
|
18
18
|
project: string;
|
|
@@ -21,9 +21,9 @@ export interface CreateInviteOperationRequest {
|
|
|
21
21
|
export interface CreateProjectOperationRequest {
|
|
22
22
|
createProjectRequest: CreateProjectRequest;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface DeleteInviteRequest {
|
|
25
25
|
project: string;
|
|
26
|
-
|
|
26
|
+
invite: string;
|
|
27
27
|
}
|
|
28
28
|
export interface DeleteProjectRequest {
|
|
29
29
|
project: string;
|
|
@@ -40,20 +40,12 @@ export interface GetIntegrationsRequest {
|
|
|
40
40
|
project: string;
|
|
41
41
|
withUninstalled?: boolean;
|
|
42
42
|
}
|
|
43
|
-
export interface GetInviteTokenRequest {
|
|
44
|
-
project: string;
|
|
45
|
-
token: string;
|
|
46
|
-
}
|
|
47
43
|
export interface GetInvitesRequest {
|
|
48
44
|
project: string;
|
|
49
45
|
}
|
|
50
46
|
export interface GetProjectRequest {
|
|
51
47
|
project: string;
|
|
52
48
|
}
|
|
53
|
-
export interface GetUserRequest {
|
|
54
|
-
project: string;
|
|
55
|
-
user: string;
|
|
56
|
-
}
|
|
57
49
|
export interface GetUsersRequest {
|
|
58
50
|
project: string;
|
|
59
51
|
}
|
|
@@ -73,33 +65,28 @@ export interface UpdateProjectOperationRequest {
|
|
|
73
65
|
project: string;
|
|
74
66
|
updateProjectRequest: UpdateProjectRequest;
|
|
75
67
|
}
|
|
76
|
-
export interface UpdateUserOperationRequest {
|
|
77
|
-
project: string;
|
|
78
|
-
user: string;
|
|
79
|
-
updateUserRequest: UpdateUserRequest;
|
|
80
|
-
}
|
|
81
68
|
/**
|
|
82
69
|
*
|
|
83
70
|
*/
|
|
84
71
|
export declare class ProjectsApi extends runtime.BaseAPI {
|
|
85
72
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
73
|
+
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
74
|
+
* Gets the invite token
|
|
88
75
|
*/
|
|
89
76
|
acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
90
77
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
78
|
+
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
79
|
+
* Gets the invite token
|
|
93
80
|
*/
|
|
94
|
-
acceptInvite(
|
|
81
|
+
acceptInvite(invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
95
82
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
83
|
+
* Creates an invite for the project
|
|
84
|
+
* Creates an invite
|
|
98
85
|
*/
|
|
99
86
|
createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
100
87
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
88
|
+
* Creates an invite for the project
|
|
89
|
+
* Creates an invite
|
|
103
90
|
*/
|
|
104
91
|
createInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
105
92
|
/**
|
|
@@ -113,15 +100,15 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
113
100
|
*/
|
|
114
101
|
createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
115
102
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
103
|
+
* Deletes an invite to the project
|
|
104
|
+
* Deletes an invite
|
|
118
105
|
*/
|
|
119
|
-
|
|
106
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
120
107
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
108
|
+
* Deletes an invite to the project
|
|
109
|
+
* Deletes an invite
|
|
123
110
|
*/
|
|
124
|
-
|
|
111
|
+
deleteInvite(project: string, invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
112
|
/**
|
|
126
113
|
* Delete a project
|
|
127
114
|
* Delete project
|
|
@@ -162,16 +149,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
162
149
|
* List integrations
|
|
163
150
|
*/
|
|
164
151
|
getIntegrations(project: string, optionalParameters?: runtime.OptionalOnly<GetIntegrationsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
165
|
-
/**
|
|
166
|
-
* gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
|
|
167
|
-
* gets the invite token
|
|
168
|
-
*/
|
|
169
|
-
getInviteTokenRaw(requestParameters: GetInviteTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
170
|
-
/**
|
|
171
|
-
* gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
|
|
172
|
-
* gets the invite token
|
|
173
|
-
*/
|
|
174
|
-
getInviteToken(project: string, token: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
175
152
|
/**
|
|
176
153
|
* List the invites associated with a project
|
|
177
154
|
* List Invites
|
|
@@ -202,16 +179,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
202
179
|
* List projects
|
|
203
180
|
*/
|
|
204
181
|
getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectsResponse>;
|
|
205
|
-
/**
|
|
206
|
-
* Retrieve a project user by ID
|
|
207
|
-
* Retrieve a user by ID
|
|
208
|
-
*/
|
|
209
|
-
getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>>;
|
|
210
|
-
/**
|
|
211
|
-
* Retrieve a project user by ID
|
|
212
|
-
* Retrieve a user by ID
|
|
213
|
-
*/
|
|
214
|
-
getUser(project: string, user: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUser>;
|
|
215
182
|
/**
|
|
216
183
|
* List the users associated with a project
|
|
217
184
|
* List project users
|
|
@@ -262,14 +229,4 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
262
229
|
* Update project
|
|
263
230
|
*/
|
|
264
231
|
updateProject(project: string, updateProjectRequest: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
265
|
-
/**
|
|
266
|
-
* Update a project user by ID
|
|
267
|
-
* Update a user by ID
|
|
268
|
-
*/
|
|
269
|
-
updateUserRaw(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>>;
|
|
270
|
-
/**
|
|
271
|
-
* Update a project user by ID
|
|
272
|
-
* Update a user by ID
|
|
273
|
-
*/
|
|
274
|
-
updateUser(project: string, user: string, updateUserRequest: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUser>;
|
|
275
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).
|
|
@@ -87,56 +87,43 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
87
87
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
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 () {
|
|
95
|
-
var queryParameters, headerParameters,
|
|
96
|
-
return __generator(this, function (
|
|
97
|
-
switch (
|
|
95
|
+
var queryParameters, headerParameters, response;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
98
|
case 0:
|
|
99
|
-
if (requestParameters.
|
|
100
|
-
throw new runtime.RequiredError('
|
|
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.');
|
|
101
101
|
}
|
|
102
102
|
queryParameters = {};
|
|
103
103
|
headerParameters = {};
|
|
104
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
105
|
-
// oauth required
|
|
106
|
-
_a = headerParameters;
|
|
107
|
-
_b = "Authorization";
|
|
108
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
109
|
-
case 1:
|
|
110
|
-
// oauth required
|
|
111
|
-
_a[_b] = _c.sent();
|
|
112
|
-
_c.label = 2;
|
|
113
|
-
case 2:
|
|
114
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
116
|
-
}
|
|
117
104
|
return [4 /*yield*/, this.request({
|
|
118
|
-
path: "/v1/projects/{
|
|
119
|
-
method: '
|
|
105
|
+
path: "/v1/projects/accept-invite/{invite}".replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
|
|
106
|
+
method: 'GET',
|
|
120
107
|
headers: headerParameters,
|
|
121
108
|
query: queryParameters,
|
|
122
109
|
}, initOverrides)];
|
|
123
|
-
case
|
|
124
|
-
response =
|
|
110
|
+
case 1:
|
|
111
|
+
response = _a.sent();
|
|
125
112
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
126
113
|
}
|
|
127
114
|
});
|
|
128
115
|
});
|
|
129
116
|
};
|
|
130
117
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
118
|
+
* Gets the invite token from the email and uses it to associate the user with the project.
|
|
119
|
+
* Gets the invite token
|
|
133
120
|
*/
|
|
134
|
-
ProjectsApi.prototype.acceptInvite = function (
|
|
121
|
+
ProjectsApi.prototype.acceptInvite = function (invite, initOverrides) {
|
|
135
122
|
return __awaiter(this, void 0, void 0, function () {
|
|
136
123
|
return __generator(this, function (_a) {
|
|
137
124
|
switch (_a.label) {
|
|
138
125
|
case 0: return [4 /*yield*/, this.acceptInviteRaw({
|
|
139
|
-
|
|
126
|
+
invite: invite,
|
|
140
127
|
}, initOverrides)];
|
|
141
128
|
case 1:
|
|
142
129
|
_a.sent();
|
|
@@ -146,8 +133,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
146
133
|
});
|
|
147
134
|
};
|
|
148
135
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
136
|
+
* Creates an invite for the project
|
|
137
|
+
* Creates an invite
|
|
151
138
|
*/
|
|
152
139
|
ProjectsApi.prototype.createInviteRaw = function (requestParameters, initOverrides) {
|
|
153
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -192,8 +179,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
192
179
|
});
|
|
193
180
|
};
|
|
194
181
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
182
|
+
* Creates an invite for the project
|
|
183
|
+
* Creates an invite
|
|
197
184
|
*/
|
|
198
185
|
ProjectsApi.prototype.createInvite = function (project, createInviteRequest, initOverrides) {
|
|
199
186
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -273,24 +260,23 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
273
260
|
});
|
|
274
261
|
};
|
|
275
262
|
/**
|
|
276
|
-
*
|
|
277
|
-
*
|
|
263
|
+
* Deletes an invite to the project
|
|
264
|
+
* Deletes an invite
|
|
278
265
|
*/
|
|
279
|
-
ProjectsApi.prototype.
|
|
266
|
+
ProjectsApi.prototype.deleteInviteRaw = function (requestParameters, initOverrides) {
|
|
280
267
|
return __awaiter(this, void 0, void 0, function () {
|
|
281
268
|
var queryParameters, headerParameters, _a, _b, response;
|
|
282
269
|
return __generator(this, function (_c) {
|
|
283
270
|
switch (_c.label) {
|
|
284
271
|
case 0:
|
|
285
272
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
286
|
-
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.');
|
|
287
274
|
}
|
|
288
|
-
if (requestParameters.
|
|
289
|
-
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.');
|
|
290
277
|
}
|
|
291
278
|
queryParameters = {};
|
|
292
279
|
headerParameters = {};
|
|
293
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
294
280
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
295
281
|
// oauth required
|
|
296
282
|
_a = headerParameters;
|
|
@@ -305,35 +291,32 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
305
291
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
306
292
|
}
|
|
307
293
|
return [4 /*yield*/, this.request({
|
|
308
|
-
path: "/v1/projects/{project}/
|
|
309
|
-
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',
|
|
310
296
|
headers: headerParameters,
|
|
311
297
|
query: queryParameters,
|
|
312
|
-
body: (0, index_1.CreateUserRequestToJSON)(requestParameters.createUserRequest),
|
|
313
298
|
}, initOverrides)];
|
|
314
299
|
case 3:
|
|
315
300
|
response = _c.sent();
|
|
316
|
-
return [2 /*return*/, new runtime.
|
|
301
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
317
302
|
}
|
|
318
303
|
});
|
|
319
304
|
});
|
|
320
305
|
};
|
|
321
306
|
/**
|
|
322
|
-
*
|
|
323
|
-
*
|
|
307
|
+
* Deletes an invite to the project
|
|
308
|
+
* Deletes an invite
|
|
324
309
|
*/
|
|
325
|
-
ProjectsApi.prototype.
|
|
310
|
+
ProjectsApi.prototype.deleteInvite = function (project, invite, initOverrides) {
|
|
326
311
|
return __awaiter(this, void 0, void 0, function () {
|
|
327
|
-
var response;
|
|
328
312
|
return __generator(this, function (_a) {
|
|
329
313
|
switch (_a.label) {
|
|
330
|
-
case 0: return [4 /*yield*/, this.
|
|
331
|
-
project: project,
|
|
314
|
+
case 0: return [4 /*yield*/, this.deleteInviteRaw({
|
|
315
|
+
project: project, invite: invite,
|
|
332
316
|
}, initOverrides)];
|
|
333
317
|
case 1:
|
|
334
|
-
|
|
335
|
-
return [
|
|
336
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
318
|
+
_a.sent();
|
|
319
|
+
return [2 /*return*/];
|
|
337
320
|
}
|
|
338
321
|
});
|
|
339
322
|
});
|
|
@@ -588,68 +571,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
588
571
|
});
|
|
589
572
|
});
|
|
590
573
|
};
|
|
591
|
-
/**
|
|
592
|
-
* gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
|
|
593
|
-
* gets the invite token
|
|
594
|
-
*/
|
|
595
|
-
ProjectsApi.prototype.getInviteTokenRaw = function (requestParameters, initOverrides) {
|
|
596
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
597
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
598
|
-
return __generator(this, function (_c) {
|
|
599
|
-
switch (_c.label) {
|
|
600
|
-
case 0:
|
|
601
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
602
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getInviteToken.');
|
|
603
|
-
}
|
|
604
|
-
if (requestParameters.token === null || requestParameters.token === undefined) {
|
|
605
|
-
throw new runtime.RequiredError('token', 'Required parameter requestParameters.token was null or undefined when calling getInviteToken.');
|
|
606
|
-
}
|
|
607
|
-
queryParameters = {};
|
|
608
|
-
headerParameters = {};
|
|
609
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
610
|
-
// oauth required
|
|
611
|
-
_a = headerParameters;
|
|
612
|
-
_b = "Authorization";
|
|
613
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
614
|
-
case 1:
|
|
615
|
-
// oauth required
|
|
616
|
-
_a[_b] = _c.sent();
|
|
617
|
-
_c.label = 2;
|
|
618
|
-
case 2:
|
|
619
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
620
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
621
|
-
}
|
|
622
|
-
return [4 /*yield*/, this.request({
|
|
623
|
-
path: "/v1/projects/{project}/invites/{token}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters.token))),
|
|
624
|
-
method: 'GET',
|
|
625
|
-
headers: headerParameters,
|
|
626
|
-
query: queryParameters,
|
|
627
|
-
}, initOverrides)];
|
|
628
|
-
case 3:
|
|
629
|
-
response = _c.sent();
|
|
630
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
});
|
|
634
|
-
};
|
|
635
|
-
/**
|
|
636
|
-
* gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
|
|
637
|
-
* gets the invite token
|
|
638
|
-
*/
|
|
639
|
-
ProjectsApi.prototype.getInviteToken = function (project, token, initOverrides) {
|
|
640
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
641
|
-
return __generator(this, function (_a) {
|
|
642
|
-
switch (_a.label) {
|
|
643
|
-
case 0: return [4 /*yield*/, this.getInviteTokenRaw({
|
|
644
|
-
project: project, token: token,
|
|
645
|
-
}, initOverrides)];
|
|
646
|
-
case 1:
|
|
647
|
-
_a.sent();
|
|
648
|
-
return [2 /*return*/];
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
});
|
|
652
|
-
};
|
|
653
574
|
/**
|
|
654
575
|
* List the invites associated with a project
|
|
655
576
|
* List Invites
|
|
@@ -828,70 +749,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
828
749
|
});
|
|
829
750
|
});
|
|
830
751
|
};
|
|
831
|
-
/**
|
|
832
|
-
* Retrieve a project user by ID
|
|
833
|
-
* Retrieve a user by ID
|
|
834
|
-
*/
|
|
835
|
-
ProjectsApi.prototype.getUserRaw = function (requestParameters, initOverrides) {
|
|
836
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
837
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
838
|
-
return __generator(this, function (_c) {
|
|
839
|
-
switch (_c.label) {
|
|
840
|
-
case 0:
|
|
841
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
842
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getUser.');
|
|
843
|
-
}
|
|
844
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
845
|
-
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling getUser.');
|
|
846
|
-
}
|
|
847
|
-
queryParameters = {};
|
|
848
|
-
headerParameters = {};
|
|
849
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
850
|
-
// oauth required
|
|
851
|
-
_a = headerParameters;
|
|
852
|
-
_b = "Authorization";
|
|
853
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
854
|
-
case 1:
|
|
855
|
-
// oauth required
|
|
856
|
-
_a[_b] = _c.sent();
|
|
857
|
-
_c.label = 2;
|
|
858
|
-
case 2:
|
|
859
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
860
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
861
|
-
}
|
|
862
|
-
return [4 /*yield*/, this.request({
|
|
863
|
-
path: "/v1/projects/{project}/users/{user}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("user", "}"), encodeURIComponent(String(requestParameters.user))),
|
|
864
|
-
method: 'GET',
|
|
865
|
-
headers: headerParameters,
|
|
866
|
-
query: queryParameters,
|
|
867
|
-
}, initOverrides)];
|
|
868
|
-
case 3:
|
|
869
|
-
response = _c.sent();
|
|
870
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUserFromJSON)(jsonValue); })];
|
|
871
|
-
}
|
|
872
|
-
});
|
|
873
|
-
});
|
|
874
|
-
};
|
|
875
|
-
/**
|
|
876
|
-
* Retrieve a project user by ID
|
|
877
|
-
* Retrieve a user by ID
|
|
878
|
-
*/
|
|
879
|
-
ProjectsApi.prototype.getUser = function (project, user, initOverrides) {
|
|
880
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
881
|
-
var response;
|
|
882
|
-
return __generator(this, function (_a) {
|
|
883
|
-
switch (_a.label) {
|
|
884
|
-
case 0: return [4 /*yield*/, this.getUserRaw({
|
|
885
|
-
project: project, user: user,
|
|
886
|
-
}, initOverrides)];
|
|
887
|
-
case 1:
|
|
888
|
-
response = _a.sent();
|
|
889
|
-
return [4 /*yield*/, response.value()];
|
|
890
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
891
|
-
}
|
|
892
|
-
});
|
|
893
|
-
});
|
|
894
|
-
};
|
|
895
752
|
/**
|
|
896
753
|
* List the users associated with a project
|
|
897
754
|
* List project users
|
|
@@ -1209,75 +1066,6 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
1209
1066
|
});
|
|
1210
1067
|
});
|
|
1211
1068
|
};
|
|
1212
|
-
/**
|
|
1213
|
-
* Update a project user by ID
|
|
1214
|
-
* Update a user by ID
|
|
1215
|
-
*/
|
|
1216
|
-
ProjectsApi.prototype.updateUserRaw = function (requestParameters, initOverrides) {
|
|
1217
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1218
|
-
var queryParameters, headerParameters, _a, _b, response;
|
|
1219
|
-
return __generator(this, function (_c) {
|
|
1220
|
-
switch (_c.label) {
|
|
1221
|
-
case 0:
|
|
1222
|
-
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
1223
|
-
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateUser.');
|
|
1224
|
-
}
|
|
1225
|
-
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
1226
|
-
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling updateUser.');
|
|
1227
|
-
}
|
|
1228
|
-
if (requestParameters.updateUserRequest === null || requestParameters.updateUserRequest === undefined) {
|
|
1229
|
-
throw new runtime.RequiredError('updateUserRequest', 'Required parameter requestParameters.updateUserRequest was null or undefined when calling updateUser.');
|
|
1230
|
-
}
|
|
1231
|
-
queryParameters = {};
|
|
1232
|
-
headerParameters = {};
|
|
1233
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1234
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1235
|
-
// oauth required
|
|
1236
|
-
_a = headerParameters;
|
|
1237
|
-
_b = "Authorization";
|
|
1238
|
-
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
1239
|
-
case 1:
|
|
1240
|
-
// oauth required
|
|
1241
|
-
_a[_b] = _c.sent();
|
|
1242
|
-
_c.label = 2;
|
|
1243
|
-
case 2:
|
|
1244
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1245
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1246
|
-
}
|
|
1247
|
-
return [4 /*yield*/, this.request({
|
|
1248
|
-
path: "/v1/projects/{project}/users/{user}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("user", "}"), encodeURIComponent(String(requestParameters.user))),
|
|
1249
|
-
method: 'PATCH',
|
|
1250
|
-
headers: headerParameters,
|
|
1251
|
-
query: queryParameters,
|
|
1252
|
-
body: (0, index_1.UpdateUserRequestToJSON)(requestParameters.updateUserRequest),
|
|
1253
|
-
}, initOverrides)];
|
|
1254
|
-
case 3:
|
|
1255
|
-
response = _c.sent();
|
|
1256
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUserFromJSON)(jsonValue); })];
|
|
1257
|
-
}
|
|
1258
|
-
});
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
/**
|
|
1262
|
-
* Update a project user by ID
|
|
1263
|
-
* Update a user by ID
|
|
1264
|
-
*/
|
|
1265
|
-
ProjectsApi.prototype.updateUser = function (project, user, updateUserRequest, initOverrides) {
|
|
1266
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1267
|
-
var response;
|
|
1268
|
-
return __generator(this, function (_a) {
|
|
1269
|
-
switch (_a.label) {
|
|
1270
|
-
case 0: return [4 /*yield*/, this.updateUserRaw({
|
|
1271
|
-
project: project, user: user, updateUserRequest: updateUserRequest,
|
|
1272
|
-
}, initOverrides)];
|
|
1273
|
-
case 1:
|
|
1274
|
-
response = _a.sent();
|
|
1275
|
-
return [4 /*yield*/, response.value()];
|
|
1276
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1277
|
-
}
|
|
1278
|
-
});
|
|
1279
|
-
});
|
|
1280
|
-
};
|
|
1281
1069
|
return ProjectsApi;
|
|
1282
1070
|
}(runtime.BaseAPI));
|
|
1283
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).
|