@teemill/projects 1.6.0 → 1.6.1

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 (59) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/ProjectsApi.d.ts +21 -20
  3. package/dist/apis/ProjectsApi.js +81 -89
  4. package/dist/models/ApiError.d.ts +1 -1
  5. package/dist/models/ApiError.js +1 -1
  6. package/dist/models/CreateInviteRequest.d.ts +1 -1
  7. package/dist/models/CreateInviteRequest.js +1 -1
  8. package/dist/models/CreateProjectRequest.d.ts +1 -1
  9. package/dist/models/CreateProjectRequest.js +1 -1
  10. package/dist/models/CreateUserRequest.d.ts +1 -1
  11. package/dist/models/CreateUserRequest.js +1 -1
  12. package/dist/models/CreateUserRequestAvatar.d.ts +1 -1
  13. package/dist/models/CreateUserRequestAvatar.js +1 -1
  14. package/dist/models/Integration.d.ts +1 -1
  15. package/dist/models/Integration.js +1 -1
  16. package/dist/models/IntegrationsResponse.d.ts +1 -1
  17. package/dist/models/IntegrationsResponse.js +1 -1
  18. package/dist/models/Project.d.ts +1 -1
  19. package/dist/models/Project.js +1 -1
  20. package/dist/models/ProjectInvite.d.ts +8 -15
  21. package/dist/models/ProjectInvite.js +16 -20
  22. package/dist/models/ProjectInvites.d.ts +1 -1
  23. package/dist/models/ProjectInvites.js +1 -1
  24. package/dist/models/ProjectLogo.d.ts +1 -1
  25. package/dist/models/ProjectLogo.js +1 -1
  26. package/dist/models/ProjectUser.d.ts +1 -1
  27. package/dist/models/ProjectUser.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/UpdateProjectRequest.d.ts +1 -1
  33. package/dist/models/UpdateProjectRequest.js +1 -1
  34. package/dist/models/UpdateUserRequest.d.ts +1 -1
  35. package/dist/models/UpdateUserRequest.js +1 -1
  36. package/dist/models/UpdateUserRequestAvatar.d.ts +1 -1
  37. package/dist/models/UpdateUserRequestAvatar.js +1 -1
  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 +74 -75
  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/CreateUserRequest.ts +1 -1
  46. package/src/models/CreateUserRequestAvatar.ts +1 -1
  47. package/src/models/Integration.ts +1 -1
  48. package/src/models/IntegrationsResponse.ts +1 -1
  49. package/src/models/Project.ts +1 -1
  50. package/src/models/ProjectInvite.ts +23 -38
  51. package/src/models/ProjectInvites.ts +1 -1
  52. package/src/models/ProjectLogo.ts +1 -1
  53. package/src/models/ProjectUser.ts +1 -1
  54. package/src/models/ProjectUsers.ts +1 -1
  55. package/src/models/ProjectsResponse.ts +1 -1
  56. package/src/models/UpdateProjectRequest.ts +1 -1
  57. package/src/models/UpdateUserRequest.ts +1 -1
  58. package/src/models/UpdateUserRequestAvatar.ts +1 -1
  59. package/src/runtime.ts +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.6.0
1
+ ## @teemill/projects@1.6.1
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.6.0 --save
39
+ npm install @teemill/projects@1.6.1 --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.6.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
13
13
  import type { CreateInviteRequest, CreateProjectRequest, CreateUserRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUser, ProjectUsers, ProjectsResponse, UpdateProjectRequest, UpdateUserRequest } from '../models/index';
14
14
  export interface AcceptInviteRequest {
15
15
  project: string;
16
+ token: string;
16
17
  }
17
18
  export interface CreateInviteOperationRequest {
18
19
  project: string;
@@ -40,10 +41,6 @@ export interface GetIntegrationsRequest {
40
41
  project: string;
41
42
  withUninstalled?: boolean;
42
43
  }
43
- export interface GetInviteTokenRequest {
44
- project: string;
45
- token: string;
46
- }
47
44
  export interface GetInvitesRequest {
48
45
  project: string;
49
46
  }
@@ -65,6 +62,10 @@ export interface InstallTemplateRequest {
65
62
  project: string;
66
63
  template: string;
67
64
  }
65
+ export interface RevokeInviteRequest {
66
+ project: string;
67
+ createInviteRequest: CreateInviteRequest;
68
+ }
68
69
  export interface UninstallIntegrationRequest {
69
70
  project: string;
70
71
  integration: string;
@@ -83,15 +84,15 @@ export interface UpdateUserOperationRequest {
83
84
  */
84
85
  export declare class ProjectsApi extends runtime.BaseAPI {
85
86
  /**
86
- * accepts an invite to the project
87
- * accepts an invite
87
+ * Gets the invite token from the email and uses it to associate the user with the project.
88
+ * gets the invite token
88
89
  */
89
90
  acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
90
91
  /**
91
- * accepts an invite to the project
92
- * accepts an invite
92
+ * Gets the invite token from the email and uses it to associate the user with the project.
93
+ * gets the invite token
93
94
  */
94
- acceptInvite(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
95
+ acceptInvite(project: string, token: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
95
96
  /**
96
97
  * creates an invite for the project
97
98
  * creates an invite
@@ -162,16 +163,6 @@ export declare class ProjectsApi extends runtime.BaseAPI {
162
163
  * List integrations
163
164
  */
164
165
  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
166
  /**
176
167
  * List the invites associated with a project
177
168
  * List Invites
@@ -242,6 +233,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
242
233
  * Install integration template
243
234
  */
244
235
  installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
236
+ /**
237
+ * revokes an invite to the project
238
+ * revokes an invite
239
+ */
240
+ revokeInviteRaw(requestParameters: RevokeInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
241
+ /**
242
+ * revokes an invite to the project
243
+ * revokes an invite
244
+ */
245
+ revokeInvite(project: string, createInviteRequest: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
245
246
  /**
246
247
  * Uninstall a projects integration
247
248
  * 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.6.0
8
+ * The version of the OpenAPI document: 1.6.1
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,46 @@ var ProjectsApi = /** @class */ (function (_super) {
87
87
  return _super !== null && _super.apply(this, arguments) || this;
88
88
  }
89
89
  /**
90
- * accepts an invite to the project
91
- * accepts an invite
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, _a, _b, response;
96
- return __generator(this, function (_c) {
97
- switch (_c.label) {
95
+ var queryParameters, headerParameters, response;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
98
  case 0:
99
99
  if (requestParameters.project === null || requestParameters.project === undefined) {
100
100
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling acceptInvite.');
101
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
+ }
102
105
  queryParameters = {};
103
106
  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
107
  return [4 /*yield*/, this.request({
118
- path: "/v1/projects/{project}/invites/accept".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
119
- method: 'POST',
108
+ path: "/v1/projects/{project}/invites/{token}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters.token))),
109
+ method: 'GET',
120
110
  headers: headerParameters,
121
111
  query: queryParameters,
122
112
  }, initOverrides)];
123
- case 3:
124
- response = _c.sent();
113
+ case 1:
114
+ response = _a.sent();
125
115
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
126
116
  }
127
117
  });
128
118
  });
129
119
  };
130
120
  /**
131
- * accepts an invite to the project
132
- * accepts an invite
121
+ * Gets the invite token from the email and uses it to associate the user with the project.
122
+ * gets the invite token
133
123
  */
134
- ProjectsApi.prototype.acceptInvite = function (project, initOverrides) {
124
+ ProjectsApi.prototype.acceptInvite = function (project, token, initOverrides) {
135
125
  return __awaiter(this, void 0, void 0, function () {
136
126
  return __generator(this, function (_a) {
137
127
  switch (_a.label) {
138
128
  case 0: return [4 /*yield*/, this.acceptInviteRaw({
139
- project: project,
129
+ project: project, token: token,
140
130
  }, initOverrides)];
141
131
  case 1:
142
132
  _a.sent();
@@ -588,68 +578,6 @@ var ProjectsApi = /** @class */ (function (_super) {
588
578
  });
589
579
  });
590
580
  };
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
581
  /**
654
582
  * List the invites associated with a project
655
583
  * List Invites
@@ -1081,6 +1009,70 @@ var ProjectsApi = /** @class */ (function (_super) {
1081
1009
  });
1082
1010
  });
1083
1011
  };
1012
+ /**
1013
+ * revokes an invite to the project
1014
+ * revokes an invite
1015
+ */
1016
+ ProjectsApi.prototype.revokeInviteRaw = function (requestParameters, initOverrides) {
1017
+ return __awaiter(this, void 0, void 0, function () {
1018
+ var queryParameters, headerParameters, _a, _b, response;
1019
+ return __generator(this, function (_c) {
1020
+ switch (_c.label) {
1021
+ case 0:
1022
+ if (requestParameters.project === null || requestParameters.project === undefined) {
1023
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling revokeInvite.');
1024
+ }
1025
+ if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
1026
+ throw new runtime.RequiredError('createInviteRequest', 'Required parameter requestParameters.createInviteRequest was null or undefined when calling revokeInvite.');
1027
+ }
1028
+ queryParameters = {};
1029
+ headerParameters = {};
1030
+ headerParameters['Content-Type'] = 'application/json';
1031
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1032
+ // oauth required
1033
+ _a = headerParameters;
1034
+ _b = "Authorization";
1035
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
1036
+ case 1:
1037
+ // oauth required
1038
+ _a[_b] = _c.sent();
1039
+ _c.label = 2;
1040
+ case 2:
1041
+ if (this.configuration && this.configuration.apiKey) {
1042
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
1043
+ }
1044
+ return [4 /*yield*/, this.request({
1045
+ path: "/v1/projects/{project}/invites/revoke".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
1046
+ method: 'POST',
1047
+ headers: headerParameters,
1048
+ query: queryParameters,
1049
+ body: (0, index_1.CreateInviteRequestToJSON)(requestParameters.createInviteRequest),
1050
+ }, initOverrides)];
1051
+ case 3:
1052
+ response = _c.sent();
1053
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1054
+ }
1055
+ });
1056
+ });
1057
+ };
1058
+ /**
1059
+ * revokes an invite to the project
1060
+ * revokes an invite
1061
+ */
1062
+ ProjectsApi.prototype.revokeInvite = function (project, createInviteRequest, initOverrides) {
1063
+ return __awaiter(this, void 0, void 0, function () {
1064
+ return __generator(this, function (_a) {
1065
+ switch (_a.label) {
1066
+ case 0: return [4 /*yield*/, this.revokeInviteRaw({
1067
+ project: project, createInviteRequest: createInviteRequest,
1068
+ }, initOverrides)];
1069
+ case 1:
1070
+ _a.sent();
1071
+ return [2 /*return*/];
1072
+ }
1073
+ });
1074
+ });
1075
+ };
1084
1076
  /**
1085
1077
  * Uninstall a projects integration
1086
1078
  * 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.6.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,14 +2,13 @@
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.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Project } from './Project';
13
12
  import type { ProjectUser } from './ProjectUser';
14
13
  /**
15
14
  *
@@ -22,13 +21,7 @@ export interface ProjectInvite {
22
21
  * @type {string}
23
22
  * @memberof ProjectInvite
24
23
  */
25
- email: string;
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof ProjectInvite
30
- */
31
- status: string;
24
+ inviteeEmail: string;
32
25
  /**
33
26
  *
34
27
  * @type {string}
@@ -40,25 +33,25 @@ export interface ProjectInvite {
40
33
  * @type {string}
41
34
  * @memberof ProjectInvite
42
35
  */
43
- updatedAt: string | null;
36
+ expiresAt: string;
44
37
  /**
45
38
  *
46
- * @type {Project}
39
+ * @type {string}
47
40
  * @memberof ProjectInvite
48
41
  */
49
- project: Project;
42
+ acceptedAt: string | null;
50
43
  /**
51
44
  *
52
- * @type {ProjectUser}
45
+ * @type {string}
53
46
  * @memberof ProjectInvite
54
47
  */
55
- createdUser: ProjectUser;
48
+ deletedAt: string | null;
56
49
  /**
57
50
  *
58
51
  * @type {ProjectUser}
59
52
  * @memberof ProjectInvite
60
53
  */
61
- updatedUser: ProjectUser;
54
+ inviter: ProjectUser;
62
55
  }
63
56
  /**
64
57
  * Check if a given object implements the ProjectInvite 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.6.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,20 +14,18 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectInviteToJSON = exports.ProjectInviteFromJSONTyped = exports.ProjectInviteFromJSON = exports.instanceOfProjectInvite = void 0;
17
- var Project_1 = require("./Project");
18
17
  var ProjectUser_1 = require("./ProjectUser");
19
18
  /**
20
19
  * Check if a given object implements the ProjectInvite interface.
21
20
  */
22
21
  function instanceOfProjectInvite(value) {
23
22
  var isInstance = true;
24
- isInstance = isInstance && "email" in value;
25
- isInstance = isInstance && "status" in value;
23
+ isInstance = isInstance && "inviteeEmail" in value;
26
24
  isInstance = isInstance && "createdAt" in value;
27
- isInstance = isInstance && "updatedAt" in value;
28
- isInstance = isInstance && "project" in value;
29
- isInstance = isInstance && "createdUser" in value;
30
- isInstance = isInstance && "updatedUser" in value;
25
+ isInstance = isInstance && "expiresAt" in value;
26
+ isInstance = isInstance && "acceptedAt" in value;
27
+ isInstance = isInstance && "deletedAt" in value;
28
+ isInstance = isInstance && "inviter" in value;
31
29
  return isInstance;
32
30
  }
33
31
  exports.instanceOfProjectInvite = instanceOfProjectInvite;
@@ -40,13 +38,12 @@ function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return json;
41
39
  }
42
40
  return {
43
- 'email': json['email'],
44
- 'status': json['status'],
41
+ 'inviteeEmail': json['inviteeEmail'],
45
42
  'createdAt': json['createdAt'],
46
- 'updatedAt': json['updatedAt'],
47
- 'project': (0, Project_1.ProjectFromJSON)(json['project']),
48
- 'createdUser': (0, ProjectUser_1.ProjectUserFromJSON)(json['createdUser']),
49
- 'updatedUser': (0, ProjectUser_1.ProjectUserFromJSON)(json['updatedUser']),
43
+ 'expiresAt': json['expiresAt'],
44
+ 'acceptedAt': json['acceptedAt'],
45
+ 'deletedAt': json['deletedAt'],
46
+ 'inviter': (0, ProjectUser_1.ProjectUserFromJSON)(json['inviter']),
50
47
  };
51
48
  }
52
49
  exports.ProjectInviteFromJSONTyped = ProjectInviteFromJSONTyped;
@@ -58,13 +55,12 @@ function ProjectInviteToJSON(value) {
58
55
  return null;
59
56
  }
60
57
  return {
61
- 'email': value.email,
62
- 'status': value.status,
58
+ 'inviteeEmail': value.inviteeEmail,
63
59
  'createdAt': value.createdAt,
64
- 'updatedAt': value.updatedAt,
65
- 'project': (0, Project_1.ProjectToJSON)(value.project),
66
- 'createdUser': (0, ProjectUser_1.ProjectUserToJSON)(value.createdUser),
67
- 'updatedUser': (0, ProjectUser_1.ProjectUserToJSON)(value.updatedUser),
60
+ 'expiresAt': value.expiresAt,
61
+ 'acceptedAt': value.acceptedAt,
62
+ 'deletedAt': value.deletedAt,
63
+ 'inviter': (0, ProjectUser_1.ProjectUserToJSON)(value.inviter),
68
64
  };
69
65
  }
70
66
  exports.ProjectInviteToJSON = ProjectInviteToJSON;
@@ -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.0
5
+ * The version of the OpenAPI document: 1.6.1
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.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).