@teemill/projects 1.7.0 → 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 +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/ProjectsApi.d.ts +17 -15
  5. package/dist/apis/ProjectsApi.js +70 -47
  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 +7 -1
  19. package/dist/models/ProjectInvite.js +4 -1
  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 +1 -1
  25. package/dist/models/ProjectUser.js +1 -1
  26. package/dist/models/ProjectUserAvatar.d.ts +1 -1
  27. package/dist/models/ProjectUserAvatar.js +1 -1
  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 +1 -0
  37. package/dist/models/index.js +1 -0
  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 +71 -44
  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 +10 -1
  49. package/src/models/ProjectInvites.ts +1 -1
  50. package/src/models/ProjectLogo.ts +1 -1
  51. package/src/models/ProjectUser.ts +1 -1
  52. package/src/models/ProjectUserAvatar.ts +1 -1
  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 +1 -0
  58. package/src/runtime.ts +1 -1
@@ -18,6 +18,7 @@ src/models/ProjectUser.ts
18
18
  src/models/ProjectUserAvatar.ts
19
19
  src/models/ProjectUsers.ts
20
20
  src/models/ProjectsResponse.ts
21
+ src/models/SetupIntegrationRequest.ts
21
22
  src/models/UpdateProjectRequest.ts
22
23
  src/models/index.ts
23
24
  src/runtime.ts
@@ -1 +1 @@
1
- 7.3.0-SNAPSHOT
1
+ 7.4.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.7.0
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.7.0 --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.7.0
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,10 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateInviteRequest, CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, UpdateProjectRequest } from '../models/index';
14
- export interface AcceptInviteRequest {
15
- invite: string;
16
- }
13
+ import type { CreateInviteRequest, CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, SetupIntegrationRequest, UpdateProjectRequest } from '../models/index';
17
14
  export interface CreateInviteOperationRequest {
18
15
  project: string;
19
16
  createInviteRequest: CreateInviteRequest;
@@ -57,6 +54,11 @@ export interface InstallTemplateRequest {
57
54
  project: string;
58
55
  template: string;
59
56
  }
57
+ export interface SetupIntegrationOperationRequest {
58
+ project: string;
59
+ integration: string;
60
+ setupIntegrationRequest: SetupIntegrationRequest;
61
+ }
60
62
  export interface UninstallIntegrationRequest {
61
63
  project: string;
62
64
  integration: string;
@@ -69,16 +71,6 @@ export interface UpdateProjectOperationRequest {
69
71
  *
70
72
  */
71
73
  export declare class ProjectsApi extends runtime.BaseAPI {
72
- /**
73
- * Gets the invite token from the email and uses it to associate the user with the project.
74
- * Gets the invite token
75
- */
76
- acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
77
- /**
78
- * Gets the invite token from the email and uses it to associate the user with the project.
79
- * Gets the invite token
80
- */
81
- acceptInvite(invite: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
82
74
  /**
83
75
  * Creates an invite for the project
84
76
  * Creates an invite
@@ -209,6 +201,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
209
201
  * Install integration template
210
202
  */
211
203
  installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
204
+ /**
205
+ * Setup an integration on the project
206
+ * Setup integration
207
+ */
208
+ setupIntegrationRaw(requestParameters: SetupIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
209
+ /**
210
+ * Setup an integration on the project
211
+ * Setup integration
212
+ */
213
+ setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
212
214
  /**
213
215
  * Uninstall a projects integration
214
216
  * Uninstall integration
@@ -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.7.0
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).
@@ -86,52 +86,6 @@ var ProjectsApi = /** @class */ (function (_super) {
86
86
  function ProjectsApi() {
87
87
  return _super !== null && _super.apply(this, arguments) || this;
88
88
  }
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.invite === null || requestParameters.invite === undefined) {
100
- throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling acceptInvite.');
101
- }
102
- queryParameters = {};
103
- headerParameters = {};
104
- return [4 /*yield*/, this.request({
105
- path: "/v1/projects/accept-invite/{invite}".replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
106
- method: 'GET',
107
- headers: headerParameters,
108
- query: queryParameters,
109
- }, initOverrides)];
110
- case 1:
111
- response = _a.sent();
112
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
113
- }
114
- });
115
- });
116
- };
117
- /**
118
- * Gets the invite token from the email and uses it to associate the user with the project.
119
- * Gets the invite token
120
- */
121
- ProjectsApi.prototype.acceptInvite = function (invite, initOverrides) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- return __generator(this, function (_a) {
124
- switch (_a.label) {
125
- case 0: return [4 /*yield*/, this.acceptInviteRaw({
126
- invite: invite,
127
- }, initOverrides)];
128
- case 1:
129
- _a.sent();
130
- return [2 /*return*/];
131
- }
132
- });
133
- });
134
- };
135
89
  /**
136
90
  * Creates an invite for the project
137
91
  * Creates an invite
@@ -938,6 +892,75 @@ var ProjectsApi = /** @class */ (function (_super) {
938
892
  });
939
893
  });
940
894
  };
895
+ /**
896
+ * Setup an integration on the project
897
+ * Setup integration
898
+ */
899
+ ProjectsApi.prototype.setupIntegrationRaw = function (requestParameters, initOverrides) {
900
+ return __awaiter(this, void 0, void 0, function () {
901
+ var queryParameters, headerParameters, _a, _b, response;
902
+ return __generator(this, function (_c) {
903
+ switch (_c.label) {
904
+ case 0:
905
+ if (requestParameters.project === null || requestParameters.project === undefined) {
906
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
907
+ }
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.');
913
+ }
914
+ queryParameters = {};
915
+ headerParameters = {};
916
+ headerParameters['Content-Type'] = 'application/json';
917
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
918
+ // oauth required
919
+ _a = headerParameters;
920
+ _b = "Authorization";
921
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
922
+ case 1:
923
+ // oauth required
924
+ _a[_b] = _c.sent();
925
+ _c.label = 2;
926
+ case 2:
927
+ if (this.configuration && this.configuration.apiKey) {
928
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
929
+ }
930
+ return [4 /*yield*/, this.request({
931
+ path: "/v1/projects/{project}/integrations/{integration}/setup".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
932
+ method: 'POST',
933
+ headers: headerParameters,
934
+ query: queryParameters,
935
+ body: (0, index_1.SetupIntegrationRequestToJSON)(requestParameters.setupIntegrationRequest),
936
+ }, initOverrides)];
937
+ case 3:
938
+ response = _c.sent();
939
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
940
+ }
941
+ });
942
+ });
943
+ };
944
+ /**
945
+ * Setup an integration on the project
946
+ * Setup integration
947
+ */
948
+ ProjectsApi.prototype.setupIntegration = function (project, integration, setupIntegrationRequest, initOverrides) {
949
+ return __awaiter(this, void 0, void 0, function () {
950
+ var response;
951
+ return __generator(this, function (_a) {
952
+ switch (_a.label) {
953
+ case 0: return [4 /*yield*/, this.setupIntegrationRaw({
954
+ project: project, integration: integration, setupIntegrationRequest: setupIntegrationRequest,
955
+ }, initOverrides)];
956
+ case 1:
957
+ response = _a.sent();
958
+ return [4 /*yield*/, response.value()];
959
+ case 2: return [2 /*return*/, _a.sent()];
960
+ }
961
+ });
962
+ });
963
+ };
941
964
  /**
942
965
  * Uninstall a projects integration
943
966
  * Uninstall integration
@@ -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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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).
@@ -33,6 +33,12 @@ export interface Integration {
33
33
  * @memberof Integration
34
34
  */
35
35
  config: object;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof Integration
40
+ */
41
+ setupAt?: Date;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the Integration interface.
@@ -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.7.0
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).
@@ -37,6 +37,7 @@ function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
38
  'code': json['code'],
39
39
  'config': json['config'],
40
+ 'setupAt': !(0, runtime_1.exists)(json, 'setupAt') ? undefined : (new Date(json['setupAt'])),
40
41
  };
41
42
  }
42
43
  exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
@@ -50,6 +51,7 @@ function IntegrationToJSON(value) {
50
51
  return {
51
52
  'code': value.code,
52
53
  'config': value.config,
54
+ 'setupAt': value.setupAt === undefined ? undefined : (value.setupAt.toISOString()),
53
55
  };
54
56
  }
55
57
  exports.IntegrationToJSON = IntegrationToJSON;
@@ -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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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).
@@ -16,6 +16,12 @@ import type { ProjectUser } from './ProjectUser';
16
16
  * @interface ProjectInvite
17
17
  */
18
18
  export interface ProjectInvite {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ProjectInvite
23
+ */
24
+ id: string;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -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.7.0
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).
@@ -20,6 +20,7 @@ var ProjectUser_1 = require("./ProjectUser");
20
20
  */
21
21
  function instanceOfProjectInvite(value) {
22
22
  var isInstance = true;
23
+ isInstance = isInstance && "id" in value;
23
24
  isInstance = isInstance && "inviteeEmail" in value;
24
25
  isInstance = isInstance && "createdAt" in value;
25
26
  isInstance = isInstance && "expiresAt" in value;
@@ -36,6 +37,7 @@ function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return json;
37
38
  }
38
39
  return {
40
+ 'id': json['id'],
39
41
  'inviteeEmail': json['inviteeEmail'],
40
42
  'createdAt': json['createdAt'],
41
43
  'expiresAt': json['expiresAt'],
@@ -51,6 +53,7 @@ function ProjectInviteToJSON(value) {
51
53
  return null;
52
54
  }
53
55
  return {
56
+ 'id': value.id,
54
57
  'inviteeEmail': value.inviteeEmail,
55
58
  'createdAt': value.createdAt,
56
59
  'expiresAt': value.expiresAt,
@@ -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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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.7.0
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).
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SetupIntegrationRequest
16
+ */
17
+ export interface SetupIntegrationRequest {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof SetupIntegrationRequest
22
+ */
23
+ config: object;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SetupIntegrationRequest interface.
27
+ */
28
+ export declare function instanceOfSetupIntegrationRequest(value: object): boolean;
29
+ export declare function SetupIntegrationRequestFromJSON(json: any): SetupIntegrationRequest;
30
+ export declare function SetupIntegrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetupIntegrationRequest;
31
+ export declare function SetupIntegrationRequestToJSON(value?: SetupIntegrationRequest | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.8.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SetupIntegrationRequestToJSON = exports.SetupIntegrationRequestFromJSONTyped = exports.SetupIntegrationRequestFromJSON = exports.instanceOfSetupIntegrationRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the SetupIntegrationRequest interface.
19
+ */
20
+ function instanceOfSetupIntegrationRequest(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "config" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSetupIntegrationRequest = instanceOfSetupIntegrationRequest;
26
+ function SetupIntegrationRequestFromJSON(json) {
27
+ return SetupIntegrationRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.SetupIntegrationRequestFromJSON = SetupIntegrationRequestFromJSON;
30
+ function SetupIntegrationRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'config': json['config'],
36
+ };
37
+ }
38
+ exports.SetupIntegrationRequestFromJSONTyped = SetupIntegrationRequestFromJSONTyped;
39
+ function SetupIntegrationRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'config': value.config,
48
+ };
49
+ }
50
+ exports.SetupIntegrationRequestToJSON = SetupIntegrationRequestToJSON;
@@ -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.7.0
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.7.0
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).
@@ -11,4 +11,5 @@ export * from './ProjectUser';
11
11
  export * from './ProjectUserAvatar';
12
12
  export * from './ProjectUsers';
13
13
  export * from './ProjectsResponse';
14
+ export * from './SetupIntegrationRequest';
14
15
  export * from './UpdateProjectRequest';
@@ -29,4 +29,5 @@ __exportStar(require("./ProjectUser"), exports);
29
29
  __exportStar(require("./ProjectUserAvatar"), exports);
30
30
  __exportStar(require("./ProjectUsers"), exports);
31
31
  __exportStar(require("./ProjectsResponse"), exports);
32
+ __exportStar(require("./SetupIntegrationRequest"), exports);
32
33
  __exportStar(require("./UpdateProjectRequest"), exports);
package/dist/runtime.d.ts CHANGED
@@ -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.7.0
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).
package/dist/runtime.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.7.0
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,7 @@ import type {
24
24
  ProjectInvites,
25
25
  ProjectUsers,
26
26
  ProjectsResponse,
27
+ SetupIntegrationRequest,
27
28
  UpdateProjectRequest,
28
29
  } from '../models/index';
29
30
  import {
@@ -45,14 +46,12 @@ import {
45
46
  ProjectUsersToJSON,
46
47
  ProjectsResponseFromJSON,
47
48
  ProjectsResponseToJSON,
49
+ SetupIntegrationRequestFromJSON,
50
+ SetupIntegrationRequestToJSON,
48
51
  UpdateProjectRequestFromJSON,
49
52
  UpdateProjectRequestToJSON,
50
53
  } from '../models/index';
51
54
 
52
- export interface AcceptInviteRequest {
53
- invite: string;
54
- }
55
-
56
55
  export interface CreateInviteOperationRequest {
57
56
  project: string;
58
57
  createInviteRequest: CreateInviteRequest;
@@ -108,6 +107,12 @@ export interface InstallTemplateRequest {
108
107
  template: string;
109
108
  }
110
109
 
110
+ export interface SetupIntegrationOperationRequest {
111
+ project: string;
112
+ integration: string;
113
+ setupIntegrationRequest: SetupIntegrationRequest;
114
+ }
115
+
111
116
  export interface UninstallIntegrationRequest {
112
117
  project: string;
113
118
  integration: string;
@@ -123,45 +128,6 @@ export interface UpdateProjectOperationRequest {
123
128
  */
124
129
  export class ProjectsApi extends runtime.BaseAPI {
125
130
 
126
- /**
127
- * Gets the invite token from the email and uses it to associate the user with the project.
128
- * Gets the invite token
129
- */
130
- async acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
131
- if (requestParameters.invite === null || requestParameters.invite === undefined) {
132
- throw new runtime.RequiredError('invite','Required parameter requestParameters.invite was null or undefined when calling acceptInvite.');
133
- }
134
-
135
- const queryParameters: any = {};
136
-
137
- const headerParameters: runtime.HTTPHeaders = {};
138
-
139
- const response = await this.request({
140
- path: `/v1/projects/accept-invite/{invite}`.replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
141
- method: 'GET',
142
- headers: headerParameters,
143
- query: queryParameters,
144
- }, initOverrides);
145
-
146
- return new runtime.VoidApiResponse(response);
147
- }
148
-
149
- /**
150
- * Gets the invite token from the email and uses it to associate the user with the project.
151
- * Gets the invite token
152
- */
153
- async acceptInvite(
154
- invite: string,
155
- initOverrides?: RequestInit | runtime.InitOverrideFunction
156
- ): Promise<void> {
157
- await this.acceptInviteRaw(
158
- {
159
- invite: invite,
160
- },
161
- initOverrides
162
- );
163
- }
164
-
165
131
  /**
166
132
  * Creates an invite for the project
167
133
  * Creates an invite
@@ -836,6 +802,67 @@ export class ProjectsApi extends runtime.BaseAPI {
836
802
  return await response.value();
837
803
  }
838
804
 
805
+ /**
806
+ * Setup an integration on the project
807
+ * Setup integration
808
+ */
809
+ async setupIntegrationRaw(requestParameters: SetupIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
810
+ if (requestParameters.project === null || requestParameters.project === undefined) {
811
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
812
+ }
813
+
814
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
815
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
816
+ }
817
+
818
+ if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
819
+ throw new runtime.RequiredError('setupIntegrationRequest','Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
820
+ }
821
+
822
+ const queryParameters: any = {};
823
+
824
+ const headerParameters: runtime.HTTPHeaders = {};
825
+
826
+ headerParameters['Content-Type'] = 'application/json';
827
+
828
+ if (this.configuration && this.configuration.accessToken) {
829
+ // oauth required
830
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
831
+ }
832
+
833
+ if (this.configuration && this.configuration.apiKey) {
834
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
835
+ }
836
+
837
+ const response = await this.request({
838
+ path: `/v1/projects/{project}/integrations/{integration}/setup`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
839
+ method: 'POST',
840
+ headers: headerParameters,
841
+ query: queryParameters,
842
+ body: SetupIntegrationRequestToJSON(requestParameters.setupIntegrationRequest),
843
+ }, initOverrides);
844
+
845
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
846
+ }
847
+
848
+ /**
849
+ * Setup an integration on the project
850
+ * Setup integration
851
+ */
852
+ async setupIntegration(
853
+ project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest,
854
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
855
+ ): Promise<Integration> {
856
+ const response = await this.setupIntegrationRaw(
857
+ {
858
+ project: project,integration: integration,setupIntegrationRequest: setupIntegrationRequest,
859
+ },
860
+ initOverrides
861
+ );
862
+
863
+ return await response.value();
864
+ }
865
+
839
866
  /**
840
867
  * Uninstall a projects integration
841
868
  * Uninstall integration
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,6 +37,12 @@ export interface Integration {
37
37
  * @memberof Integration
38
38
  */
39
39
  config: object;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof Integration
44
+ */
45
+ setupAt?: Date;
40
46
  }
41
47
 
42
48
  /**
@@ -63,6 +69,7 @@ export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean
63
69
  'id': !exists(json, 'id') ? undefined : json['id'],
64
70
  'code': json['code'],
65
71
  'config': json['config'],
72
+ 'setupAt': !exists(json, 'setupAt') ? undefined : (new Date(json['setupAt'])),
66
73
  };
67
74
  }
68
75
 
@@ -77,6 +84,7 @@ export function IntegrationToJSON(value?: Integration | null): any {
77
84
 
78
85
  'code': value.code,
79
86
  'config': value.config,
87
+ 'setupAt': value.setupAt === undefined ? undefined : (value.setupAt.toISOString()),
80
88
  };
81
89
  }
82
90
 
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,12 @@ import {
26
26
  * @interface ProjectInvite
27
27
  */
28
28
  export interface ProjectInvite {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ProjectInvite
33
+ */
34
+ id: string;
29
35
  /**
30
36
  *
31
37
  * @type {string}
@@ -57,6 +63,7 @@ export interface ProjectInvite {
57
63
  */
58
64
  export function instanceOfProjectInvite(value: object): boolean {
59
65
  let isInstance = true;
66
+ isInstance = isInstance && "id" in value;
60
67
  isInstance = isInstance && "inviteeEmail" in value;
61
68
  isInstance = isInstance && "createdAt" in value;
62
69
  isInstance = isInstance && "expiresAt" in value;
@@ -75,6 +82,7 @@ export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boole
75
82
  }
76
83
  return {
77
84
 
85
+ 'id': json['id'],
78
86
  'inviteeEmail': json['inviteeEmail'],
79
87
  'createdAt': json['createdAt'],
80
88
  'expiresAt': json['expiresAt'],
@@ -91,6 +99,7 @@ export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
91
99
  }
92
100
  return {
93
101
 
102
+ 'id': value.id,
94
103
  'inviteeEmail': value.inviteeEmail,
95
104
  'createdAt': value.createdAt,
96
105
  'expiresAt': value.expiresAt,
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Projects API
5
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SetupIntegrationRequest
20
+ */
21
+ export interface SetupIntegrationRequest {
22
+ /**
23
+ *
24
+ * @type {object}
25
+ * @memberof SetupIntegrationRequest
26
+ */
27
+ config: object;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetupIntegrationRequest interface.
32
+ */
33
+ export function instanceOfSetupIntegrationRequest(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "config" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function SetupIntegrationRequestFromJSON(json: any): SetupIntegrationRequest {
41
+ return SetupIntegrationRequestFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function SetupIntegrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetupIntegrationRequest {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'config': json['config'],
51
+ };
52
+ }
53
+
54
+ export function SetupIntegrationRequestToJSON(value?: SetupIntegrationRequest | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'config': value.config,
64
+ };
65
+ }
66
+
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,4 +13,5 @@ export * from './ProjectUser';
13
13
  export * from './ProjectUserAvatar';
14
14
  export * from './ProjectUsers';
15
15
  export * from './ProjectsResponse';
16
+ export * from './SetupIntegrationRequest';
16
17
  export * from './UpdateProjectRequest';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.7.0
7
+ * The version of the OpenAPI document: 1.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).