@teemill/projects 1.6.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.openapi-generator/FILES +2 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/ProjectsApi.d.ts +23 -65
  5. package/dist/apis/ProjectsApi.js +42 -223
  6. package/dist/models/ApiError.d.ts +1 -1
  7. package/dist/models/ApiError.js +1 -1
  8. package/dist/models/CreateInviteRequest.d.ts +1 -1
  9. package/dist/models/CreateInviteRequest.js +1 -1
  10. package/dist/models/CreateProjectRequest.d.ts +1 -1
  11. package/dist/models/CreateProjectRequest.js +1 -1
  12. package/dist/models/Integration.d.ts +7 -1
  13. package/dist/models/Integration.js +3 -1
  14. package/dist/models/IntegrationsResponse.d.ts +1 -1
  15. package/dist/models/IntegrationsResponse.js +1 -1
  16. package/dist/models/Project.d.ts +1 -1
  17. package/dist/models/Project.js +1 -1
  18. package/dist/models/ProjectInvite.d.ts +5 -11
  19. package/dist/models/ProjectInvite.js +4 -7
  20. package/dist/models/ProjectInvites.d.ts +1 -1
  21. package/dist/models/ProjectInvites.js +1 -1
  22. package/dist/models/ProjectLogo.d.ts +1 -1
  23. package/dist/models/ProjectLogo.js +1 -1
  24. package/dist/models/ProjectUser.d.ts +7 -7
  25. package/dist/models/ProjectUser.js +7 -6
  26. package/dist/models/ProjectUserAvatar.d.ts +31 -0
  27. package/dist/models/ProjectUserAvatar.js +50 -0
  28. package/dist/models/ProjectUsers.d.ts +1 -1
  29. package/dist/models/ProjectUsers.js +1 -1
  30. package/dist/models/ProjectsResponse.d.ts +1 -1
  31. package/dist/models/ProjectsResponse.js +1 -1
  32. package/dist/models/SetupIntegrationRequest.d.ts +31 -0
  33. package/dist/models/SetupIntegrationRequest.js +50 -0
  34. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  35. package/dist/models/UpdateProjectRequest.js +1 -1
  36. package/dist/models/index.d.ts +2 -4
  37. package/dist/models/index.js +2 -4
  38. package/dist/runtime.d.ts +1 -1
  39. package/dist/runtime.js +1 -1
  40. package/package.json +1 -1
  41. package/src/apis/ProjectsApi.ts +51 -229
  42. package/src/models/ApiError.ts +1 -1
  43. package/src/models/CreateInviteRequest.ts +1 -1
  44. package/src/models/CreateProjectRequest.ts +1 -1
  45. package/src/models/Integration.ts +9 -1
  46. package/src/models/IntegrationsResponse.ts +1 -1
  47. package/src/models/Project.ts +1 -1
  48. package/src/models/ProjectInvite.ts +8 -17
  49. package/src/models/ProjectInvites.ts +1 -1
  50. package/src/models/ProjectLogo.ts +1 -1
  51. package/src/models/ProjectUser.ts +16 -14
  52. package/src/models/ProjectUserAvatar.ts +65 -0
  53. package/src/models/ProjectUsers.ts +1 -1
  54. package/src/models/ProjectsResponse.ts +1 -1
  55. package/src/models/SetupIntegrationRequest.ts +66 -0
  56. package/src/models/UpdateProjectRequest.ts +1 -1
  57. package/src/models/index.ts +2 -4
  58. package/src/runtime.ts +1 -1
@@ -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,11 @@ 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
21
+ src/models/SetupIntegrationRequest.ts
22
22
  src/models/UpdateProjectRequest.ts
23
- src/models/UpdateUserRequest.ts
24
- src/models/UpdateUserRequestAvatar.ts
25
23
  src/models/index.ts
26
24
  src/runtime.ts
27
25
  tsconfig.json
@@ -1 +1 @@
1
- 7.3.0-SNAPSHOT
1
+ 7.4.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.6.1
1
+ ## @teemill/projects@1.8.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
 
@@ -15,7 +15,7 @@ Module system
15
15
  * CommonJS
16
16
  * ES6 module system
17
17
 
18
- It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
19
 
20
20
  ### Building
21
21
 
@@ -27,7 +27,7 @@ npm run build
27
27
 
28
28
  ### Publishing
29
29
 
30
- First build the package then run ```npm publish```
30
+ First build the package then run `npm publish`
31
31
 
32
32
  ### Consuming
33
33
 
@@ -36,10 +36,11 @@ 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.6.1 --save
39
+ npm install @teemill/projects@1.8.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
43
43
 
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -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.6.1
5
+ * The version of the OpenAPI document: 1.8.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,11 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateInviteRequest, CreateProjectRequest, CreateUserRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUser, ProjectUsers, ProjectsResponse, UpdateProjectRequest, UpdateUserRequest } from '../models/index';
14
- export interface AcceptInviteRequest {
15
- project: string;
16
- token: string;
17
- }
13
+ import type { CreateInviteRequest, CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, SetupIntegrationRequest, UpdateProjectRequest } from '../models/index';
18
14
  export interface CreateInviteOperationRequest {
19
15
  project: string;
20
16
  createInviteRequest: CreateInviteRequest;
@@ -22,9 +18,9 @@ export interface CreateInviteOperationRequest {
22
18
  export interface CreateProjectOperationRequest {
23
19
  createProjectRequest: CreateProjectRequest;
24
20
  }
25
- export interface CreateUserOperationRequest {
21
+ export interface DeleteInviteRequest {
26
22
  project: string;
27
- createUserRequest: CreateUserRequest;
23
+ invite: string;
28
24
  }
29
25
  export interface DeleteProjectRequest {
30
26
  project: string;
@@ -47,10 +43,6 @@ export interface GetInvitesRequest {
47
43
  export interface GetProjectRequest {
48
44
  project: string;
49
45
  }
50
- export interface GetUserRequest {
51
- project: string;
52
- user: string;
53
- }
54
46
  export interface GetUsersRequest {
55
47
  project: string;
56
48
  }
@@ -62,9 +54,10 @@ export interface InstallTemplateRequest {
62
54
  project: string;
63
55
  template: string;
64
56
  }
65
- export interface RevokeInviteRequest {
57
+ export interface SetupIntegrationOperationRequest {
66
58
  project: string;
67
- createInviteRequest: CreateInviteRequest;
59
+ integration: string;
60
+ setupIntegrationRequest: SetupIntegrationRequest;
68
61
  }
69
62
  export interface UninstallIntegrationRequest {
70
63
  project: string;
@@ -74,33 +67,18 @@ export interface UpdateProjectOperationRequest {
74
67
  project: string;
75
68
  updateProjectRequest: UpdateProjectRequest;
76
69
  }
77
- export interface UpdateUserOperationRequest {
78
- project: string;
79
- user: string;
80
- updateUserRequest: UpdateUserRequest;
81
- }
82
70
  /**
83
71
  *
84
72
  */
85
73
  export declare class ProjectsApi extends runtime.BaseAPI {
86
74
  /**
87
- * Gets the invite token from the email and uses it to associate the user with the project.
88
- * gets the invite token
89
- */
90
- acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
91
- /**
92
- * Gets the invite token from the email and uses it to associate the user with the project.
93
- * gets the invite token
94
- */
95
- acceptInvite(project: string, token: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
- /**
97
- * creates an invite for the project
98
- * creates an invite
75
+ * Creates an invite for the project
76
+ * Creates an invite
99
77
  */
100
78
  createInviteRaw(requestParameters: CreateInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
101
79
  /**
102
- * creates an invite for the project
103
- * creates an invite
80
+ * Creates an invite for the project
81
+ * Creates an invite
104
82
  */
105
83
  createInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
106
84
  /**
@@ -114,15 +92,15 @@ export declare class ProjectsApi extends runtime.BaseAPI {
114
92
  */
115
93
  createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
116
94
  /**
117
- * Create a new project user
118
- * Create project user
95
+ * Deletes an invite to the project
96
+ * Deletes an invite
119
97
  */
120
- createUserRaw(requestParameters: CreateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUser>>;
98
+ deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
121
99
  /**
122
- * Create a new project user
123
- * Create project user
100
+ * Deletes an invite to the project
101
+ * Deletes an invite
124
102
  */
125
- createUser(project: string, createUserRequest: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUser>;
103
+ deleteInvite(project: string, invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
126
104
  /**
127
105
  * Delete a project
128
106
  * Delete project
@@ -193,16 +171,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
193
171
  * List projects
194
172
  */
195
173
  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
174
  /**
207
175
  * List the users associated with a project
208
176
  * List project users
@@ -234,15 +202,15 @@ export declare class ProjectsApi extends runtime.BaseAPI {
234
202
  */
235
203
  installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
236
204
  /**
237
- * revokes an invite to the project
238
- * revokes an invite
205
+ * Setup an integration on the project
206
+ * Setup integration
239
207
  */
240
- revokeInviteRaw(requestParameters: RevokeInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
208
+ setupIntegrationRaw(requestParameters: SetupIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
241
209
  /**
242
- * revokes an invite to the project
243
- * revokes an invite
210
+ * Setup an integration on the project
211
+ * Setup integration
244
212
  */
245
- revokeInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
213
+ setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
246
214
  /**
247
215
  * Uninstall a projects integration
248
216
  * Uninstall integration
@@ -263,14 +231,4 @@ export declare class ProjectsApi extends runtime.BaseAPI {
263
231
  * Update project
264
232
  */
265
233
  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
234
  }
@@ -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.6.1
8
+ * The version of the OpenAPI document: 1.8.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,57 +87,8 @@ var ProjectsApi = /** @class */ (function (_super) {
87
87
  return _super !== null && _super.apply(this, arguments) || this;
88
88
  }
89
89
  /**
90
- * Gets the invite token from the email and uses it to associate the user with the project.
91
- * gets the invite token
92
- */
93
- ProjectsApi.prototype.acceptInviteRaw = function (requestParameters, initOverrides) {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var queryParameters, headerParameters, response;
96
- return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0:
99
- if (requestParameters.project === null || requestParameters.project === undefined) {
100
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling acceptInvite.');
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.');
104
- }
105
- queryParameters = {};
106
- headerParameters = {};
107
- return [4 /*yield*/, this.request({
108
- path: "/v1/projects/{project}/invites/{token}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters.token))),
109
- method: 'GET',
110
- headers: headerParameters,
111
- query: queryParameters,
112
- }, initOverrides)];
113
- case 1:
114
- response = _a.sent();
115
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
116
- }
117
- });
118
- });
119
- };
120
- /**
121
- * Gets the invite token from the email and uses it to associate the user with the project.
122
- * gets the invite token
123
- */
124
- ProjectsApi.prototype.acceptInvite = function (project, token, initOverrides) {
125
- return __awaiter(this, void 0, void 0, function () {
126
- return __generator(this, function (_a) {
127
- switch (_a.label) {
128
- case 0: return [4 /*yield*/, this.acceptInviteRaw({
129
- project: project, token: token,
130
- }, initOverrides)];
131
- case 1:
132
- _a.sent();
133
- return [2 /*return*/];
134
- }
135
- });
136
- });
137
- };
138
- /**
139
- * creates an invite for the project
140
- * creates an invite
90
+ * Creates an invite for the project
91
+ * Creates an invite
141
92
  */
142
93
  ProjectsApi.prototype.createInviteRaw = function (requestParameters, initOverrides) {
143
94
  return __awaiter(this, void 0, void 0, function () {
@@ -182,8 +133,8 @@ var ProjectsApi = /** @class */ (function (_super) {
182
133
  });
183
134
  };
184
135
  /**
185
- * creates an invite for the project
186
- * creates an invite
136
+ * Creates an invite for the project
137
+ * Creates an invite
187
138
  */
188
139
  ProjectsApi.prototype.createInvite = function (project, createInviteRequest, initOverrides) {
189
140
  return __awaiter(this, void 0, void 0, function () {
@@ -263,24 +214,23 @@ var ProjectsApi = /** @class */ (function (_super) {
263
214
  });
264
215
  };
265
216
  /**
266
- * Create a new project user
267
- * Create project user
217
+ * Deletes an invite to the project
218
+ * Deletes an invite
268
219
  */
269
- ProjectsApi.prototype.createUserRaw = function (requestParameters, initOverrides) {
220
+ ProjectsApi.prototype.deleteInviteRaw = function (requestParameters, initOverrides) {
270
221
  return __awaiter(this, void 0, void 0, function () {
271
222
  var queryParameters, headerParameters, _a, _b, response;
272
223
  return __generator(this, function (_c) {
273
224
  switch (_c.label) {
274
225
  case 0:
275
226
  if (requestParameters.project === null || requestParameters.project === undefined) {
276
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createUser.');
227
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
277
228
  }
278
- if (requestParameters.createUserRequest === null || requestParameters.createUserRequest === undefined) {
279
- throw new runtime.RequiredError('createUserRequest', 'Required parameter requestParameters.createUserRequest was null or undefined when calling createUser.');
229
+ if (requestParameters.invite === null || requestParameters.invite === undefined) {
230
+ throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
280
231
  }
281
232
  queryParameters = {};
282
233
  headerParameters = {};
283
- headerParameters['Content-Type'] = 'application/json';
284
234
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
285
235
  // oauth required
286
236
  _a = headerParameters;
@@ -295,35 +245,32 @@ var ProjectsApi = /** @class */ (function (_super) {
295
245
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
296
246
  }
297
247
  return [4 /*yield*/, this.request({
298
- path: "/v1/projects/{project}/users".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
299
- method: 'POST',
248
+ path: "/v1/projects/{project}/invites/{invite}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
249
+ method: 'DELETE',
300
250
  headers: headerParameters,
301
251
  query: queryParameters,
302
- body: (0, index_1.CreateUserRequestToJSON)(requestParameters.createUserRequest),
303
252
  }, initOverrides)];
304
253
  case 3:
305
254
  response = _c.sent();
306
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUserFromJSON)(jsonValue); })];
255
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
307
256
  }
308
257
  });
309
258
  });
310
259
  };
311
260
  /**
312
- * Create a new project user
313
- * Create project user
261
+ * Deletes an invite to the project
262
+ * Deletes an invite
314
263
  */
315
- ProjectsApi.prototype.createUser = function (project, createUserRequest, initOverrides) {
264
+ ProjectsApi.prototype.deleteInvite = function (project, invite, initOverrides) {
316
265
  return __awaiter(this, void 0, void 0, function () {
317
- var response;
318
266
  return __generator(this, function (_a) {
319
267
  switch (_a.label) {
320
- case 0: return [4 /*yield*/, this.createUserRaw({
321
- project: project, createUserRequest: createUserRequest,
268
+ case 0: return [4 /*yield*/, this.deleteInviteRaw({
269
+ project: project, invite: invite,
322
270
  }, initOverrides)];
323
271
  case 1:
324
- response = _a.sent();
325
- return [4 /*yield*/, response.value()];
326
- case 2: return [2 /*return*/, _a.sent()];
272
+ _a.sent();
273
+ return [2 /*return*/];
327
274
  }
328
275
  });
329
276
  });
@@ -756,70 +703,6 @@ var ProjectsApi = /** @class */ (function (_super) {
756
703
  });
757
704
  });
758
705
  };
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
706
  /**
824
707
  * List the users associated with a project
825
708
  * List project users
@@ -1010,20 +893,23 @@ var ProjectsApi = /** @class */ (function (_super) {
1010
893
  });
1011
894
  };
1012
895
  /**
1013
- * revokes an invite to the project
1014
- * revokes an invite
896
+ * Setup an integration on the project
897
+ * Setup integration
1015
898
  */
1016
- ProjectsApi.prototype.revokeInviteRaw = function (requestParameters, initOverrides) {
899
+ ProjectsApi.prototype.setupIntegrationRaw = function (requestParameters, initOverrides) {
1017
900
  return __awaiter(this, void 0, void 0, function () {
1018
901
  var queryParameters, headerParameters, _a, _b, response;
1019
902
  return __generator(this, function (_c) {
1020
903
  switch (_c.label) {
1021
904
  case 0:
1022
905
  if (requestParameters.project === null || requestParameters.project === undefined) {
1023
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling revokeInvite.');
906
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
1024
907
  }
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.');
908
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
909
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
910
+ }
911
+ if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
912
+ throw new runtime.RequiredError('setupIntegrationRequest', 'Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
1027
913
  }
1028
914
  queryParameters = {};
1029
915
  headerParameters = {};
@@ -1042,33 +928,35 @@ var ProjectsApi = /** @class */ (function (_super) {
1042
928
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
1043
929
  }
1044
930
  return [4 /*yield*/, this.request({
1045
- path: "/v1/projects/{project}/invites/revoke".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
931
+ path: "/v1/projects/{project}/integrations/{integration}/setup".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
1046
932
  method: 'POST',
1047
933
  headers: headerParameters,
1048
934
  query: queryParameters,
1049
- body: (0, index_1.CreateInviteRequestToJSON)(requestParameters.createInviteRequest),
935
+ body: (0, index_1.SetupIntegrationRequestToJSON)(requestParameters.setupIntegrationRequest),
1050
936
  }, initOverrides)];
1051
937
  case 3:
1052
938
  response = _c.sent();
1053
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
939
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
1054
940
  }
1055
941
  });
1056
942
  });
1057
943
  };
1058
944
  /**
1059
- * revokes an invite to the project
1060
- * revokes an invite
945
+ * Setup an integration on the project
946
+ * Setup integration
1061
947
  */
1062
- ProjectsApi.prototype.revokeInvite = function (project, createInviteRequest, initOverrides) {
948
+ ProjectsApi.prototype.setupIntegration = function (project, integration, setupIntegrationRequest, initOverrides) {
1063
949
  return __awaiter(this, void 0, void 0, function () {
950
+ var response;
1064
951
  return __generator(this, function (_a) {
1065
952
  switch (_a.label) {
1066
- case 0: return [4 /*yield*/, this.revokeInviteRaw({
1067
- project: project, createInviteRequest: createInviteRequest,
953
+ case 0: return [4 /*yield*/, this.setupIntegrationRaw({
954
+ project: project, integration: integration, setupIntegrationRequest: setupIntegrationRequest,
1068
955
  }, initOverrides)];
1069
956
  case 1:
1070
- _a.sent();
1071
- return [2 /*return*/];
957
+ response = _a.sent();
958
+ return [4 /*yield*/, response.value()];
959
+ case 2: return [2 /*return*/, _a.sent()];
1072
960
  }
1073
961
  });
1074
962
  });
@@ -1201,75 +1089,6 @@ var ProjectsApi = /** @class */ (function (_super) {
1201
1089
  });
1202
1090
  });
1203
1091
  };
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
1092
  return ProjectsApi;
1274
1093
  }(runtime.BaseAPI));
1275
1094
  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.6.1
5
+ * The version of the OpenAPI document: 1.8.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.6.1
8
+ * The version of the OpenAPI document: 1.8.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.6.1
5
+ * The version of the OpenAPI document: 1.8.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.6.1
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).