@teemill/projects 1.16.0 → 1.18.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 (166) hide show
  1. package/.openapi-generator/FILES +6 -23
  2. package/README.md +3 -3
  3. package/api.ts +2262 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1400 -0
  8. package/dist/api.js +1374 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1400 -0
  16. package/dist/esm/api.js +1367 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/index.ts +18 -0
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/ProjectsApi.d.ts +0 -255
  32. package/dist/apis/ProjectsApi.js +0 -748
  33. package/dist/apis/index.d.ts +0 -1
  34. package/dist/apis/index.js +0 -19
  35. package/dist/esm/apis/ProjectsApi.d.ts +0 -255
  36. package/dist/esm/apis/ProjectsApi.js +0 -744
  37. package/dist/esm/apis/index.d.ts +0 -1
  38. package/dist/esm/apis/index.js +0 -3
  39. package/dist/esm/models/ApiError.d.ts +0 -37
  40. package/dist/esm/models/ApiError.js +0 -42
  41. package/dist/esm/models/CreateInviteRequest.d.ts +0 -31
  42. package/dist/esm/models/CreateInviteRequest.js +0 -40
  43. package/dist/esm/models/CreateProjectRequest.d.ts +0 -43
  44. package/dist/esm/models/CreateProjectRequest.js +0 -44
  45. package/dist/esm/models/CreateUserRequest.d.ts +0 -56
  46. package/dist/esm/models/CreateUserRequest.js +0 -55
  47. package/dist/esm/models/CreateUserRequestAvatar.d.ts +0 -31
  48. package/dist/esm/models/CreateUserRequestAvatar.js +0 -43
  49. package/dist/esm/models/InstallTemplateRequest.d.ts +0 -31
  50. package/dist/esm/models/InstallTemplateRequest.js +0 -38
  51. package/dist/esm/models/Integration.d.ts +0 -49
  52. package/dist/esm/models/Integration.js +0 -47
  53. package/dist/esm/models/IntegrationInfo.d.ts +0 -49
  54. package/dist/esm/models/IntegrationInfo.js +0 -52
  55. package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
  56. package/dist/esm/models/IntegrationsResponse.js +0 -41
  57. package/dist/esm/models/LegacyProjectLogo.d.ts +0 -37
  58. package/dist/esm/models/LegacyProjectLogo.js +0 -44
  59. package/dist/esm/models/Project.d.ts +0 -65
  60. package/dist/esm/models/Project.js +0 -59
  61. package/dist/esm/models/ProjectInvite.d.ts +0 -56
  62. package/dist/esm/models/ProjectInvite.js +0 -57
  63. package/dist/esm/models/ProjectInvites.d.ts +0 -38
  64. package/dist/esm/models/ProjectInvites.js +0 -45
  65. package/dist/esm/models/ProjectLogo.d.ts +0 -39
  66. package/dist/esm/models/ProjectLogo.js +0 -44
  67. package/dist/esm/models/ProjectManager.d.ts +0 -44
  68. package/dist/esm/models/ProjectManager.js +0 -49
  69. package/dist/esm/models/ProjectUser.d.ts +0 -83
  70. package/dist/esm/models/ProjectUser.js +0 -75
  71. package/dist/esm/models/ProjectUserAvatar.d.ts +0 -31
  72. package/dist/esm/models/ProjectUserAvatar.js +0 -38
  73. package/dist/esm/models/ProjectUsers.d.ts +0 -38
  74. package/dist/esm/models/ProjectUsers.js +0 -45
  75. package/dist/esm/models/ProjectsResponse.d.ts +0 -32
  76. package/dist/esm/models/ProjectsResponse.js +0 -41
  77. package/dist/esm/models/SetupIntegrationRequest.d.ts +0 -31
  78. package/dist/esm/models/SetupIntegrationRequest.js +0 -40
  79. package/dist/esm/models/UpdateProjectRequest.d.ts +0 -38
  80. package/dist/esm/models/UpdateProjectRequest.js +0 -41
  81. package/dist/esm/models/UpdateUserRequest.d.ts +0 -56
  82. package/dist/esm/models/UpdateUserRequest.js +0 -52
  83. package/dist/esm/models/UpdateUserRequestAvatar.d.ts +0 -31
  84. package/dist/esm/models/UpdateUserRequestAvatar.js +0 -43
  85. package/dist/esm/models/index.d.ts +0 -18
  86. package/dist/esm/models/index.js +0 -20
  87. package/dist/esm/runtime.d.ts +0 -187
  88. package/dist/esm/runtime.js +0 -333
  89. package/dist/models/ApiError.d.ts +0 -37
  90. package/dist/models/ApiError.js +0 -49
  91. package/dist/models/CreateInviteRequest.d.ts +0 -31
  92. package/dist/models/CreateInviteRequest.js +0 -47
  93. package/dist/models/CreateProjectRequest.d.ts +0 -43
  94. package/dist/models/CreateProjectRequest.js +0 -51
  95. package/dist/models/CreateUserRequest.d.ts +0 -56
  96. package/dist/models/CreateUserRequest.js +0 -62
  97. package/dist/models/CreateUserRequestAvatar.d.ts +0 -31
  98. package/dist/models/CreateUserRequestAvatar.js +0 -50
  99. package/dist/models/InstallTemplateRequest.d.ts +0 -31
  100. package/dist/models/InstallTemplateRequest.js +0 -45
  101. package/dist/models/Integration.d.ts +0 -49
  102. package/dist/models/Integration.js +0 -54
  103. package/dist/models/IntegrationInfo.d.ts +0 -49
  104. package/dist/models/IntegrationInfo.js +0 -59
  105. package/dist/models/IntegrationsResponse.d.ts +0 -32
  106. package/dist/models/IntegrationsResponse.js +0 -48
  107. package/dist/models/LegacyProjectLogo.d.ts +0 -37
  108. package/dist/models/LegacyProjectLogo.js +0 -51
  109. package/dist/models/Project.d.ts +0 -65
  110. package/dist/models/Project.js +0 -66
  111. package/dist/models/ProjectInvite.d.ts +0 -56
  112. package/dist/models/ProjectInvite.js +0 -64
  113. package/dist/models/ProjectInvites.d.ts +0 -38
  114. package/dist/models/ProjectInvites.js +0 -52
  115. package/dist/models/ProjectLogo.d.ts +0 -39
  116. package/dist/models/ProjectLogo.js +0 -51
  117. package/dist/models/ProjectManager.d.ts +0 -44
  118. package/dist/models/ProjectManager.js +0 -56
  119. package/dist/models/ProjectUser.d.ts +0 -83
  120. package/dist/models/ProjectUser.js +0 -82
  121. package/dist/models/ProjectUserAvatar.d.ts +0 -31
  122. package/dist/models/ProjectUserAvatar.js +0 -45
  123. package/dist/models/ProjectUsers.d.ts +0 -38
  124. package/dist/models/ProjectUsers.js +0 -52
  125. package/dist/models/ProjectsResponse.d.ts +0 -32
  126. package/dist/models/ProjectsResponse.js +0 -48
  127. package/dist/models/SetupIntegrationRequest.d.ts +0 -31
  128. package/dist/models/SetupIntegrationRequest.js +0 -47
  129. package/dist/models/UpdateProjectRequest.d.ts +0 -38
  130. package/dist/models/UpdateProjectRequest.js +0 -48
  131. package/dist/models/UpdateUserRequest.d.ts +0 -56
  132. package/dist/models/UpdateUserRequest.js +0 -59
  133. package/dist/models/UpdateUserRequestAvatar.d.ts +0 -31
  134. package/dist/models/UpdateUserRequestAvatar.js +0 -50
  135. package/dist/models/index.d.ts +0 -18
  136. package/dist/models/index.js +0 -36
  137. package/dist/runtime.d.ts +0 -187
  138. package/dist/runtime.js +0 -349
  139. package/src/apis/ProjectsApi.ts +0 -1085
  140. package/src/apis/index.ts +0 -3
  141. package/src/index.ts +0 -5
  142. package/src/models/ApiError.ts +0 -69
  143. package/src/models/CreateInviteRequest.ts +0 -61
  144. package/src/models/CreateProjectRequest.ts +0 -77
  145. package/src/models/CreateUserRequest.ts +0 -107
  146. package/src/models/CreateUserRequestAvatar.ts +0 -65
  147. package/src/models/InstallTemplateRequest.ts +0 -60
  148. package/src/models/Integration.ts +0 -85
  149. package/src/models/IntegrationInfo.ts +0 -93
  150. package/src/models/IntegrationsResponse.ts +0 -68
  151. package/src/models/LegacyProjectLogo.ts +0 -70
  152. package/src/models/Project.ts +0 -124
  153. package/src/models/ProjectInvite.ts +0 -104
  154. package/src/models/ProjectInvites.ts +0 -77
  155. package/src/models/ProjectLogo.ts +0 -70
  156. package/src/models/ProjectManager.ts +0 -86
  157. package/src/models/ProjectUser.ts +0 -142
  158. package/src/models/ProjectUserAvatar.ts +0 -60
  159. package/src/models/ProjectUsers.ts +0 -77
  160. package/src/models/ProjectsResponse.ts +0 -68
  161. package/src/models/SetupIntegrationRequest.ts +0 -61
  162. package/src/models/UpdateProjectRequest.ts +0 -75
  163. package/src/models/UpdateUserRequest.ts +0 -104
  164. package/src/models/UpdateUserRequestAvatar.ts +0 -65
  165. package/src/models/index.ts +0 -20
  166. package/src/runtime.ts +0 -441
package/dist/api.js ADDED
@@ -0,0 +1,1374 @@
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.18.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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectUserTypeEnum = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ exports.ProjectUserTypeEnum = {
33
+ User: 'user',
34
+ Service: 'service',
35
+ Ghost: 'ghost'
36
+ };
37
+ /**
38
+ * ProjectsApi - axios parameter creator
39
+ * @export
40
+ */
41
+ const ProjectsApiAxiosParamCreator = function (configuration) {
42
+ return {
43
+ /**
44
+ * Creates an invite for the project
45
+ * @summary Creates an invite
46
+ * @param {string} project Projects unique identifier
47
+ * @param {CreateInviteRequest} createInviteRequest Request body to invite user
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ createInvite: (project_1, createInviteRequest_1, ...args_1) => __awaiter(this, [project_1, createInviteRequest_1, ...args_1], void 0, function* (project, createInviteRequest, options = {}) {
52
+ // verify required parameter 'project' is not null or undefined
53
+ (0, common_1.assertParamExists)('createInvite', 'project', project);
54
+ // verify required parameter 'createInviteRequest' is not null or undefined
55
+ (0, common_1.assertParamExists)('createInvite', 'createInviteRequest', createInviteRequest);
56
+ const localVarPath = `/v1/projects/{project}/invites`
57
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
58
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
60
+ let baseOptions;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ }
64
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
65
+ const localVarHeaderParameter = {};
66
+ const localVarQueryParameter = {};
67
+ // authentication session-oauth required
68
+ // oauth required
69
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
70
+ // authentication api-key required
71
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
72
+ localVarHeaderParameter['Content-Type'] = 'application/json';
73
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
76
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInviteRequest, localVarRequestOptions, configuration);
77
+ return {
78
+ url: (0, common_1.toPathString)(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ }),
82
+ /**
83
+ * Create a new projects
84
+ * @summary Create project
85
+ * @param {CreateProjectRequest} createProjectRequest Project to create
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ createProject: (createProjectRequest_1, ...args_1) => __awaiter(this, [createProjectRequest_1, ...args_1], void 0, function* (createProjectRequest, options = {}) {
90
+ // verify required parameter 'createProjectRequest' is not null or undefined
91
+ (0, common_1.assertParamExists)('createProject', 'createProjectRequest', createProjectRequest);
92
+ const localVarPath = `/v1/projects`;
93
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
95
+ let baseOptions;
96
+ if (configuration) {
97
+ baseOptions = configuration.baseOptions;
98
+ }
99
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
100
+ const localVarHeaderParameter = {};
101
+ const localVarQueryParameter = {};
102
+ // authentication session-oauth required
103
+ // oauth required
104
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
105
+ // authentication api-key required
106
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
108
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProjectRequest, localVarRequestOptions, configuration);
112
+ return {
113
+ url: (0, common_1.toPathString)(localVarUrlObj),
114
+ options: localVarRequestOptions,
115
+ };
116
+ }),
117
+ /**
118
+ * Deletes an invite to the project
119
+ * @summary Deletes an invite
120
+ * @param {string} project Projects unique identifier
121
+ * @param {string} invite The unique id of the invite
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ deleteInvite: (project_1, invite_1, ...args_1) => __awaiter(this, [project_1, invite_1, ...args_1], void 0, function* (project, invite, options = {}) {
126
+ // verify required parameter 'project' is not null or undefined
127
+ (0, common_1.assertParamExists)('deleteInvite', 'project', project);
128
+ // verify required parameter 'invite' is not null or undefined
129
+ (0, common_1.assertParamExists)('deleteInvite', 'invite', invite);
130
+ const localVarPath = `/v1/projects/{project}/invites/{invite}`
131
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
132
+ .replace(`{${"invite"}}`, encodeURIComponent(String(invite)));
133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
135
+ let baseOptions;
136
+ if (configuration) {
137
+ baseOptions = configuration.baseOptions;
138
+ }
139
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
140
+ const localVarHeaderParameter = {};
141
+ const localVarQueryParameter = {};
142
+ // authentication session-oauth required
143
+ // oauth required
144
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
145
+ // authentication api-key required
146
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
147
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
150
+ return {
151
+ url: (0, common_1.toPathString)(localVarUrlObj),
152
+ options: localVarRequestOptions,
153
+ };
154
+ }),
155
+ /**
156
+ * Delete a project
157
+ * @summary Delete project
158
+ * @param {string} project Projects unique identifier
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ deleteProject: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
163
+ // verify required parameter 'project' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteProject', 'project', project);
165
+ const localVarPath = `/v1/projects/{project}`
166
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ // authentication session-oauth required
177
+ // oauth required
178
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
179
+ // authentication api-key required
180
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ }),
189
+ /**
190
+ * Delete a project user by ID
191
+ * @summary Delete a user by ID
192
+ * @param {string} project Projects unique identifier
193
+ * @param {string} user the unique id of the user
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ deleteUser: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
198
+ // verify required parameter 'project' is not null or undefined
199
+ (0, common_1.assertParamExists)('deleteUser', 'project', project);
200
+ // verify required parameter 'user' is not null or undefined
201
+ (0, common_1.assertParamExists)('deleteUser', 'user', user);
202
+ const localVarPath = `/v1/projects/{project}/users/{user}`
203
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
204
+ .replace(`{${"user"}}`, encodeURIComponent(String(user)));
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ }
211
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
212
+ const localVarHeaderParameter = {};
213
+ const localVarQueryParameter = {};
214
+ // authentication session-oauth required
215
+ // oauth required
216
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
217
+ // authentication api-key required
218
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
219
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
222
+ return {
223
+ url: (0, common_1.toPathString)(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ }),
227
+ /**
228
+ * Get an integration
229
+ * @summary Get integration
230
+ * @param {string} project Projects unique identifier
231
+ * @param {string} integration Integrations unique code
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ getIntegration: (project_1, integration_1, ...args_1) => __awaiter(this, [project_1, integration_1, ...args_1], void 0, function* (project, integration, options = {}) {
236
+ // verify required parameter 'project' is not null or undefined
237
+ (0, common_1.assertParamExists)('getIntegration', 'project', project);
238
+ // verify required parameter 'integration' is not null or undefined
239
+ (0, common_1.assertParamExists)('getIntegration', 'integration', integration);
240
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
241
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
242
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
245
+ let baseOptions;
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
250
+ const localVarHeaderParameter = {};
251
+ const localVarQueryParameter = {};
252
+ // authentication session-oauth required
253
+ // oauth required
254
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
255
+ // authentication api-key required
256
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ return {
261
+ url: (0, common_1.toPathString)(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ }),
265
+ /**
266
+ * List all integrations installed on a project
267
+ * @summary List integrations
268
+ * @param {string} project Projects unique identifier
269
+ * @param {string} [withUninstalled] Include soft deleted integrations
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ getIntegrations: (project_1, withUninstalled_1, ...args_1) => __awaiter(this, [project_1, withUninstalled_1, ...args_1], void 0, function* (project, withUninstalled, options = {}) {
274
+ // verify required parameter 'project' is not null or undefined
275
+ (0, common_1.assertParamExists)('getIntegrations', 'project', project);
276
+ const localVarPath = `/v1/projects/{project}/integrations`
277
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ // authentication session-oauth required
288
+ // oauth required
289
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
290
+ // authentication api-key required
291
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
292
+ if (withUninstalled !== undefined) {
293
+ localVarQueryParameter['withUninstalled'] = withUninstalled;
294
+ }
295
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
+ return {
299
+ url: (0, common_1.toPathString)(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ }),
303
+ /**
304
+ * List the invites associated with a project
305
+ * @summary List Invites
306
+ * @param {string} project Projects unique identifier
307
+ * @param {string} [search] Search term used to filter results by
308
+ * @param {number} [pageToken] Page reference token
309
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it could be smaller if there are less records than the max page size.
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ getInvites: (project_1, search_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, options = {}) {
314
+ // verify required parameter 'project' is not null or undefined
315
+ (0, common_1.assertParamExists)('getInvites', 'project', project);
316
+ const localVarPath = `/v1/projects/{project}/invites`
317
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
320
+ let baseOptions;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ }
324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
325
+ const localVarHeaderParameter = {};
326
+ const localVarQueryParameter = {};
327
+ // authentication session-oauth required
328
+ // oauth required
329
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
330
+ // authentication api-key required
331
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
332
+ if (search !== undefined) {
333
+ localVarQueryParameter['search'] = search;
334
+ }
335
+ if (pageToken !== undefined) {
336
+ localVarQueryParameter['pageToken'] = pageToken;
337
+ }
338
+ if (pageSize !== undefined) {
339
+ localVarQueryParameter['pageSize'] = pageSize;
340
+ }
341
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
344
+ return {
345
+ url: (0, common_1.toPathString)(localVarUrlObj),
346
+ options: localVarRequestOptions,
347
+ };
348
+ }),
349
+ /**
350
+ * Get a project
351
+ * @summary Get project
352
+ * @param {string} project Projects unique identifier
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ getProject: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
357
+ // verify required parameter 'project' is not null or undefined
358
+ (0, common_1.assertParamExists)('getProject', 'project', project);
359
+ const localVarPath = `/v1/projects/{project}`
360
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
362
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
363
+ let baseOptions;
364
+ if (configuration) {
365
+ baseOptions = configuration.baseOptions;
366
+ }
367
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
368
+ const localVarHeaderParameter = {};
369
+ const localVarQueryParameter = {};
370
+ // authentication session-oauth required
371
+ // oauth required
372
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
373
+ // authentication api-key required
374
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
375
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
376
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
377
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
378
+ return {
379
+ url: (0, common_1.toPathString)(localVarUrlObj),
380
+ options: localVarRequestOptions,
381
+ };
382
+ }),
383
+ /**
384
+ * List all projects available
385
+ * @summary List projects
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ getProjects: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
390
+ const localVarPath = `/v1/projects`;
391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
392
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
393
+ let baseOptions;
394
+ if (configuration) {
395
+ baseOptions = configuration.baseOptions;
396
+ }
397
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
398
+ const localVarHeaderParameter = {};
399
+ const localVarQueryParameter = {};
400
+ // authentication session-oauth required
401
+ // oauth required
402
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
403
+ // authentication api-key required
404
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
405
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
408
+ return {
409
+ url: (0, common_1.toPathString)(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ }),
413
+ /**
414
+ * Get a project user by id
415
+ * @summary Get a user
416
+ * @param {string} project Projects unique identifier
417
+ * @param {string} user the unique id of the user
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ getUser: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
422
+ // verify required parameter 'project' is not null or undefined
423
+ (0, common_1.assertParamExists)('getUser', 'project', project);
424
+ // verify required parameter 'user' is not null or undefined
425
+ (0, common_1.assertParamExists)('getUser', 'user', user);
426
+ const localVarPath = `/v1/projects/{project}/users/{user}`
427
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
428
+ .replace(`{${"user"}}`, encodeURIComponent(String(user)));
429
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
430
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
431
+ let baseOptions;
432
+ if (configuration) {
433
+ baseOptions = configuration.baseOptions;
434
+ }
435
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
436
+ const localVarHeaderParameter = {};
437
+ const localVarQueryParameter = {};
438
+ // authentication session-oauth required
439
+ // oauth required
440
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
441
+ // authentication api-key required
442
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
443
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
446
+ return {
447
+ url: (0, common_1.toPathString)(localVarUrlObj),
448
+ options: localVarRequestOptions,
449
+ };
450
+ }),
451
+ /**
452
+ * List the users associated with a project
453
+ * @summary List project users
454
+ * @param {string} project Projects unique identifier
455
+ * @param {string} [search] Search term used to filter results by
456
+ * @param {number} [pageToken] Page reference token
457
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it could be smaller if there are less records than the max page size.
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ getUsers: (project_1, search_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, options = {}) {
462
+ // verify required parameter 'project' is not null or undefined
463
+ (0, common_1.assertParamExists)('getUsers', 'project', project);
464
+ const localVarPath = `/v1/projects/{project}/users`
465
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
467
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
468
+ let baseOptions;
469
+ if (configuration) {
470
+ baseOptions = configuration.baseOptions;
471
+ }
472
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
473
+ const localVarHeaderParameter = {};
474
+ const localVarQueryParameter = {};
475
+ // authentication session-oauth required
476
+ // oauth required
477
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
478
+ // authentication api-key required
479
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
480
+ if (search !== undefined) {
481
+ localVarQueryParameter['search'] = search;
482
+ }
483
+ if (pageToken !== undefined) {
484
+ localVarQueryParameter['pageToken'] = pageToken;
485
+ }
486
+ if (pageSize !== undefined) {
487
+ localVarQueryParameter['pageSize'] = pageSize;
488
+ }
489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
492
+ return {
493
+ url: (0, common_1.toPathString)(localVarUrlObj),
494
+ options: localVarRequestOptions,
495
+ };
496
+ }),
497
+ /**
498
+ * Install an integration on the project
499
+ * @summary Install integration
500
+ * @param {string} project Projects unique identifier
501
+ * @param {string} integration Integrations unique code
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ installIntegration: (project_1, integration_1, ...args_1) => __awaiter(this, [project_1, integration_1, ...args_1], void 0, function* (project, integration, options = {}) {
506
+ // verify required parameter 'project' is not null or undefined
507
+ (0, common_1.assertParamExists)('installIntegration', 'project', project);
508
+ // verify required parameter 'integration' is not null or undefined
509
+ (0, common_1.assertParamExists)('installIntegration', 'integration', integration);
510
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
511
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
512
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
514
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
515
+ let baseOptions;
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ }
519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
520
+ const localVarHeaderParameter = {};
521
+ const localVarQueryParameter = {};
522
+ // authentication session-oauth required
523
+ // oauth required
524
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
525
+ // authentication api-key required
526
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
527
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
529
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
530
+ return {
531
+ url: (0, common_1.toPathString)(localVarUrlObj),
532
+ options: localVarRequestOptions,
533
+ };
534
+ }),
535
+ /**
536
+ * Install an integration template on the project
537
+ * @summary Install integration template
538
+ * @param {string} project Projects unique identifier
539
+ * @param {string} template Templates unique code
540
+ * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ installTemplate: (project_1, template_1, installTemplateRequest_1, ...args_1) => __awaiter(this, [project_1, template_1, installTemplateRequest_1, ...args_1], void 0, function* (project, template, installTemplateRequest, options = {}) {
545
+ // verify required parameter 'project' is not null or undefined
546
+ (0, common_1.assertParamExists)('installTemplate', 'project', project);
547
+ // verify required parameter 'template' is not null or undefined
548
+ (0, common_1.assertParamExists)('installTemplate', 'template', template);
549
+ // verify required parameter 'installTemplateRequest' is not null or undefined
550
+ (0, common_1.assertParamExists)('installTemplate', 'installTemplateRequest', installTemplateRequest);
551
+ const localVarPath = `/v1/projects/{project}/templates/{template}`
552
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
553
+ .replace(`{${"template"}}`, encodeURIComponent(String(template)));
554
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
555
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
556
+ let baseOptions;
557
+ if (configuration) {
558
+ baseOptions = configuration.baseOptions;
559
+ }
560
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
561
+ const localVarHeaderParameter = {};
562
+ const localVarQueryParameter = {};
563
+ // authentication session-oauth required
564
+ // oauth required
565
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
566
+ // authentication api-key required
567
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
568
+ localVarHeaderParameter['Content-Type'] = 'application/json';
569
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
572
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(installTemplateRequest, localVarRequestOptions, configuration);
573
+ return {
574
+ url: (0, common_1.toPathString)(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ };
577
+ }),
578
+ /**
579
+ * Setup an integration on the project
580
+ * @summary Setup integration
581
+ * @param {string} project Projects unique identifier
582
+ * @param {string} integration Integrations unique code
583
+ * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ setupIntegration: (project_1, integration_1, setupIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, setupIntegrationRequest_1, ...args_1], void 0, function* (project, integration, setupIntegrationRequest, options = {}) {
588
+ // verify required parameter 'project' is not null or undefined
589
+ (0, common_1.assertParamExists)('setupIntegration', 'project', project);
590
+ // verify required parameter 'integration' is not null or undefined
591
+ (0, common_1.assertParamExists)('setupIntegration', 'integration', integration);
592
+ // verify required parameter 'setupIntegrationRequest' is not null or undefined
593
+ (0, common_1.assertParamExists)('setupIntegration', 'setupIntegrationRequest', setupIntegrationRequest);
594
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}/setup`
595
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
596
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
598
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
599
+ let baseOptions;
600
+ if (configuration) {
601
+ baseOptions = configuration.baseOptions;
602
+ }
603
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
604
+ const localVarHeaderParameter = {};
605
+ const localVarQueryParameter = {};
606
+ // authentication session-oauth required
607
+ // oauth required
608
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
609
+ // authentication api-key required
610
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
611
+ localVarHeaderParameter['Content-Type'] = 'application/json';
612
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
613
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
614
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
615
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupIntegrationRequest, localVarRequestOptions, configuration);
616
+ return {
617
+ url: (0, common_1.toPathString)(localVarUrlObj),
618
+ options: localVarRequestOptions,
619
+ };
620
+ }),
621
+ /**
622
+ * Uninstall a projects integration
623
+ * @summary Uninstall integration
624
+ * @param {string} project Projects unique identifier
625
+ * @param {string} integration Integrations unique code
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ uninstallIntegration: (project_1, integration_1, ...args_1) => __awaiter(this, [project_1, integration_1, ...args_1], void 0, function* (project, integration, options = {}) {
630
+ // verify required parameter 'project' is not null or undefined
631
+ (0, common_1.assertParamExists)('uninstallIntegration', 'project', project);
632
+ // verify required parameter 'integration' is not null or undefined
633
+ (0, common_1.assertParamExists)('uninstallIntegration', 'integration', integration);
634
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
635
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
636
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
637
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
638
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
639
+ let baseOptions;
640
+ if (configuration) {
641
+ baseOptions = configuration.baseOptions;
642
+ }
643
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
644
+ const localVarHeaderParameter = {};
645
+ const localVarQueryParameter = {};
646
+ // authentication session-oauth required
647
+ // oauth required
648
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
649
+ // authentication api-key required
650
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
651
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
653
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
654
+ return {
655
+ url: (0, common_1.toPathString)(localVarUrlObj),
656
+ options: localVarRequestOptions,
657
+ };
658
+ }),
659
+ /**
660
+ * Update a project
661
+ * @summary Update project
662
+ * @param {string} project Projects unique identifier
663
+ * @param {UpdateProjectRequest} updateProjectRequest Updated project data
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ updateProject: (project_1, updateProjectRequest_1, ...args_1) => __awaiter(this, [project_1, updateProjectRequest_1, ...args_1], void 0, function* (project, updateProjectRequest, options = {}) {
668
+ // verify required parameter 'project' is not null or undefined
669
+ (0, common_1.assertParamExists)('updateProject', 'project', project);
670
+ // verify required parameter 'updateProjectRequest' is not null or undefined
671
+ (0, common_1.assertParamExists)('updateProject', 'updateProjectRequest', updateProjectRequest);
672
+ const localVarPath = `/v1/projects/{project}`
673
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
675
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
676
+ let baseOptions;
677
+ if (configuration) {
678
+ baseOptions = configuration.baseOptions;
679
+ }
680
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
681
+ const localVarHeaderParameter = {};
682
+ const localVarQueryParameter = {};
683
+ // authentication session-oauth required
684
+ // oauth required
685
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
686
+ // authentication api-key required
687
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
689
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
691
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
692
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProjectRequest, localVarRequestOptions, configuration);
693
+ return {
694
+ url: (0, common_1.toPathString)(localVarUrlObj),
695
+ options: localVarRequestOptions,
696
+ };
697
+ }),
698
+ };
699
+ };
700
+ exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
701
+ /**
702
+ * ProjectsApi - functional programming interface
703
+ * @export
704
+ */
705
+ const ProjectsApiFp = function (configuration) {
706
+ const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
707
+ return {
708
+ /**
709
+ * Creates an invite for the project
710
+ * @summary Creates an invite
711
+ * @param {string} project Projects unique identifier
712
+ * @param {CreateInviteRequest} createInviteRequest Request body to invite user
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ createInvite(project, createInviteRequest, options) {
717
+ return __awaiter(this, void 0, void 0, function* () {
718
+ var _a, _b, _c;
719
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createInvite(project, createInviteRequest, options);
720
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
721
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.createInvite']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
722
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
723
+ });
724
+ },
725
+ /**
726
+ * Create a new projects
727
+ * @summary Create project
728
+ * @param {CreateProjectRequest} createProjectRequest Project to create
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ createProject(createProjectRequest, options) {
733
+ return __awaiter(this, void 0, void 0, function* () {
734
+ var _a, _b, _c;
735
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createProject(createProjectRequest, options);
736
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
737
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.createProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
738
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
739
+ });
740
+ },
741
+ /**
742
+ * Deletes an invite to the project
743
+ * @summary Deletes an invite
744
+ * @param {string} project Projects unique identifier
745
+ * @param {string} invite The unique id of the invite
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ deleteInvite(project, invite, options) {
750
+ return __awaiter(this, void 0, void 0, function* () {
751
+ var _a, _b, _c;
752
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvite(project, invite, options);
753
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
754
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.deleteInvite']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
755
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
756
+ });
757
+ },
758
+ /**
759
+ * Delete a project
760
+ * @summary Delete project
761
+ * @param {string} project Projects unique identifier
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ deleteProject(project, options) {
766
+ return __awaiter(this, void 0, void 0, function* () {
767
+ var _a, _b, _c;
768
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProject(project, options);
769
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
770
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.deleteProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
771
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
772
+ });
773
+ },
774
+ /**
775
+ * Delete a project user by ID
776
+ * @summary Delete a user by ID
777
+ * @param {string} project Projects unique identifier
778
+ * @param {string} user the unique id of the user
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ deleteUser(project, user, options) {
783
+ return __awaiter(this, void 0, void 0, function* () {
784
+ var _a, _b, _c;
785
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUser(project, user, options);
786
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
787
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.deleteUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
788
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
789
+ });
790
+ },
791
+ /**
792
+ * Get an integration
793
+ * @summary Get integration
794
+ * @param {string} project Projects unique identifier
795
+ * @param {string} integration Integrations unique code
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ getIntegration(project, integration, options) {
800
+ return __awaiter(this, void 0, void 0, function* () {
801
+ var _a, _b, _c;
802
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegration(project, integration, options);
803
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
804
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
805
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
806
+ });
807
+ },
808
+ /**
809
+ * List all integrations installed on a project
810
+ * @summary List integrations
811
+ * @param {string} project Projects unique identifier
812
+ * @param {string} [withUninstalled] Include soft deleted integrations
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ getIntegrations(project, withUninstalled, options) {
817
+ return __awaiter(this, void 0, void 0, function* () {
818
+ var _a, _b, _c;
819
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrations(project, withUninstalled, options);
820
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
821
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getIntegrations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
822
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
+ });
824
+ },
825
+ /**
826
+ * List the invites associated with a project
827
+ * @summary List Invites
828
+ * @param {string} project Projects unique identifier
829
+ * @param {string} [search] Search term used to filter results by
830
+ * @param {number} [pageToken] Page reference token
831
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it could be smaller if there are less records than the max page size.
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ getInvites(project, search, pageToken, pageSize, options) {
836
+ return __awaiter(this, void 0, void 0, function* () {
837
+ var _a, _b, _c;
838
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvites(project, search, pageToken, pageSize, options);
839
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
840
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getInvites']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
841
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
842
+ });
843
+ },
844
+ /**
845
+ * Get a project
846
+ * @summary Get project
847
+ * @param {string} project Projects unique identifier
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ getProject(project, options) {
852
+ return __awaiter(this, void 0, void 0, function* () {
853
+ var _a, _b, _c;
854
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProject(project, options);
855
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
856
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
857
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
858
+ });
859
+ },
860
+ /**
861
+ * List all projects available
862
+ * @summary List projects
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ getProjects(options) {
867
+ return __awaiter(this, void 0, void 0, function* () {
868
+ var _a, _b, _c;
869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjects(options);
870
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
871
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getProjects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
872
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
873
+ });
874
+ },
875
+ /**
876
+ * Get a project user by id
877
+ * @summary Get a user
878
+ * @param {string} project Projects unique identifier
879
+ * @param {string} user the unique id of the user
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ getUser(project, user, options) {
884
+ return __awaiter(this, void 0, void 0, function* () {
885
+ var _a, _b, _c;
886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(project, user, options);
887
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
888
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
889
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
+ });
891
+ },
892
+ /**
893
+ * List the users associated with a project
894
+ * @summary List project users
895
+ * @param {string} project Projects unique identifier
896
+ * @param {string} [search] Search term used to filter results by
897
+ * @param {number} [pageToken] Page reference token
898
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it could be smaller if there are less records than the max page size.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ getUsers(project, search, pageToken, pageSize, options) {
903
+ return __awaiter(this, void 0, void 0, function* () {
904
+ var _a, _b, _c;
905
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUsers(project, search, pageToken, pageSize, options);
906
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
907
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
908
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
909
+ });
910
+ },
911
+ /**
912
+ * Install an integration on the project
913
+ * @summary Install integration
914
+ * @param {string} project Projects unique identifier
915
+ * @param {string} integration Integrations unique code
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ */
919
+ installIntegration(project, integration, options) {
920
+ return __awaiter(this, void 0, void 0, function* () {
921
+ var _a, _b, _c;
922
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installIntegration(project, integration, options);
923
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
924
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.installIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
925
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
926
+ });
927
+ },
928
+ /**
929
+ * Install an integration template on the project
930
+ * @summary Install integration template
931
+ * @param {string} project Projects unique identifier
932
+ * @param {string} template Templates unique code
933
+ * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ installTemplate(project, template, installTemplateRequest, options) {
938
+ return __awaiter(this, void 0, void 0, function* () {
939
+ var _a, _b, _c;
940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installTemplate(project, template, installTemplateRequest, options);
941
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
942
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.installTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
943
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
944
+ });
945
+ },
946
+ /**
947
+ * Setup an integration on the project
948
+ * @summary Setup integration
949
+ * @param {string} project Projects unique identifier
950
+ * @param {string} integration Integrations unique code
951
+ * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ setupIntegration(project, integration, setupIntegrationRequest, options) {
956
+ return __awaiter(this, void 0, void 0, function* () {
957
+ var _a, _b, _c;
958
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setupIntegration(project, integration, setupIntegrationRequest, options);
959
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
960
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.setupIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
961
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
962
+ });
963
+ },
964
+ /**
965
+ * Uninstall a projects integration
966
+ * @summary Uninstall integration
967
+ * @param {string} project Projects unique identifier
968
+ * @param {string} integration Integrations unique code
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ uninstallIntegration(project, integration, options) {
973
+ return __awaiter(this, void 0, void 0, function* () {
974
+ var _a, _b, _c;
975
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallIntegration(project, integration, options);
976
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
977
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.uninstallIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
978
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
979
+ });
980
+ },
981
+ /**
982
+ * Update a project
983
+ * @summary Update project
984
+ * @param {string} project Projects unique identifier
985
+ * @param {UpdateProjectRequest} updateProjectRequest Updated project data
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ updateProject(project, updateProjectRequest, options) {
990
+ return __awaiter(this, void 0, void 0, function* () {
991
+ var _a, _b, _c;
992
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProject(project, updateProjectRequest, options);
993
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
994
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.updateProject']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
995
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
996
+ });
997
+ },
998
+ };
999
+ };
1000
+ exports.ProjectsApiFp = ProjectsApiFp;
1001
+ /**
1002
+ * ProjectsApi - factory interface
1003
+ * @export
1004
+ */
1005
+ const ProjectsApiFactory = function (configuration, basePath, axios) {
1006
+ const localVarFp = (0, exports.ProjectsApiFp)(configuration);
1007
+ return {
1008
+ /**
1009
+ * Creates an invite for the project
1010
+ * @summary Creates an invite
1011
+ * @param {ProjectsApiCreateInviteRequest} requestParameters Request parameters.
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ */
1015
+ createInvite(requestParameters, options) {
1016
+ return localVarFp.createInvite(requestParameters.project, requestParameters.createInviteRequest, options).then((request) => request(axios, basePath));
1017
+ },
1018
+ /**
1019
+ * Create a new projects
1020
+ * @summary Create project
1021
+ * @param {ProjectsApiCreateProjectRequest} requestParameters Request parameters.
1022
+ * @param {*} [options] Override http request option.
1023
+ * @throws {RequiredError}
1024
+ */
1025
+ createProject(requestParameters, options) {
1026
+ return localVarFp.createProject(requestParameters.createProjectRequest, options).then((request) => request(axios, basePath));
1027
+ },
1028
+ /**
1029
+ * Deletes an invite to the project
1030
+ * @summary Deletes an invite
1031
+ * @param {ProjectsApiDeleteInviteRequest} requestParameters Request parameters.
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ deleteInvite(requestParameters, options) {
1036
+ return localVarFp.deleteInvite(requestParameters.project, requestParameters.invite, options).then((request) => request(axios, basePath));
1037
+ },
1038
+ /**
1039
+ * Delete a project
1040
+ * @summary Delete project
1041
+ * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters.
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ deleteProject(requestParameters, options) {
1046
+ return localVarFp.deleteProject(requestParameters.project, options).then((request) => request(axios, basePath));
1047
+ },
1048
+ /**
1049
+ * Delete a project user by ID
1050
+ * @summary Delete a user by ID
1051
+ * @param {ProjectsApiDeleteUserRequest} requestParameters Request parameters.
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ deleteUser(requestParameters, options) {
1056
+ return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
1057
+ },
1058
+ /**
1059
+ * Get an integration
1060
+ * @summary Get integration
1061
+ * @param {ProjectsApiGetIntegrationRequest} requestParameters Request parameters.
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ getIntegration(requestParameters, options) {
1066
+ return localVarFp.getIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1067
+ },
1068
+ /**
1069
+ * List all integrations installed on a project
1070
+ * @summary List integrations
1071
+ * @param {ProjectsApiGetIntegrationsRequest} requestParameters Request parameters.
1072
+ * @param {*} [options] Override http request option.
1073
+ * @throws {RequiredError}
1074
+ */
1075
+ getIntegrations(requestParameters, options) {
1076
+ return localVarFp.getIntegrations(requestParameters.project, requestParameters.withUninstalled, options).then((request) => request(axios, basePath));
1077
+ },
1078
+ /**
1079
+ * List the invites associated with a project
1080
+ * @summary List Invites
1081
+ * @param {ProjectsApiGetInvitesRequest} requestParameters Request parameters.
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ getInvites(requestParameters, options) {
1086
+ return localVarFp.getInvites(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1087
+ },
1088
+ /**
1089
+ * Get a project
1090
+ * @summary Get project
1091
+ * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters.
1092
+ * @param {*} [options] Override http request option.
1093
+ * @throws {RequiredError}
1094
+ */
1095
+ getProject(requestParameters, options) {
1096
+ return localVarFp.getProject(requestParameters.project, options).then((request) => request(axios, basePath));
1097
+ },
1098
+ /**
1099
+ * List all projects available
1100
+ * @summary List projects
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ getProjects(options) {
1105
+ return localVarFp.getProjects(options).then((request) => request(axios, basePath));
1106
+ },
1107
+ /**
1108
+ * Get a project user by id
1109
+ * @summary Get a user
1110
+ * @param {ProjectsApiGetUserRequest} requestParameters Request parameters.
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ getUser(requestParameters, options) {
1115
+ return localVarFp.getUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
1116
+ },
1117
+ /**
1118
+ * List the users associated with a project
1119
+ * @summary List project users
1120
+ * @param {ProjectsApiGetUsersRequest} requestParameters Request parameters.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ */
1124
+ getUsers(requestParameters, options) {
1125
+ return localVarFp.getUsers(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1126
+ },
1127
+ /**
1128
+ * Install an integration on the project
1129
+ * @summary Install integration
1130
+ * @param {ProjectsApiInstallIntegrationRequest} requestParameters Request parameters.
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
1134
+ installIntegration(requestParameters, options) {
1135
+ return localVarFp.installIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1136
+ },
1137
+ /**
1138
+ * Install an integration template on the project
1139
+ * @summary Install integration template
1140
+ * @param {ProjectsApiInstallTemplateRequest} requestParameters Request parameters.
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ */
1144
+ installTemplate(requestParameters, options) {
1145
+ return localVarFp.installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(axios, basePath));
1146
+ },
1147
+ /**
1148
+ * Setup an integration on the project
1149
+ * @summary Setup integration
1150
+ * @param {ProjectsApiSetupIntegrationRequest} requestParameters Request parameters.
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ setupIntegration(requestParameters, options) {
1155
+ return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(axios, basePath));
1156
+ },
1157
+ /**
1158
+ * Uninstall a projects integration
1159
+ * @summary Uninstall integration
1160
+ * @param {ProjectsApiUninstallIntegrationRequest} requestParameters Request parameters.
1161
+ * @param {*} [options] Override http request option.
1162
+ * @throws {RequiredError}
1163
+ */
1164
+ uninstallIntegration(requestParameters, options) {
1165
+ return localVarFp.uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1166
+ },
1167
+ /**
1168
+ * Update a project
1169
+ * @summary Update project
1170
+ * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters.
1171
+ * @param {*} [options] Override http request option.
1172
+ * @throws {RequiredError}
1173
+ */
1174
+ updateProject(requestParameters, options) {
1175
+ return localVarFp.updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(axios, basePath));
1176
+ },
1177
+ };
1178
+ };
1179
+ exports.ProjectsApiFactory = ProjectsApiFactory;
1180
+ /**
1181
+ * ProjectsApi - object-oriented interface
1182
+ * @export
1183
+ * @class ProjectsApi
1184
+ * @extends {BaseAPI}
1185
+ */
1186
+ class ProjectsApi extends base_1.BaseAPI {
1187
+ /**
1188
+ * Creates an invite for the project
1189
+ * @summary Creates an invite
1190
+ * @param {ProjectsApiCreateInviteRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof ProjectsApi
1194
+ */
1195
+ createInvite(requestParameters, options) {
1196
+ return (0, exports.ProjectsApiFp)(this.configuration).createInvite(requestParameters.project, requestParameters.createInviteRequest, options).then((request) => request(this.axios, this.basePath));
1197
+ }
1198
+ /**
1199
+ * Create a new projects
1200
+ * @summary Create project
1201
+ * @param {ProjectsApiCreateProjectRequest} requestParameters Request parameters.
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ * @memberof ProjectsApi
1205
+ */
1206
+ createProject(requestParameters, options) {
1207
+ return (0, exports.ProjectsApiFp)(this.configuration).createProject(requestParameters.createProjectRequest, options).then((request) => request(this.axios, this.basePath));
1208
+ }
1209
+ /**
1210
+ * Deletes an invite to the project
1211
+ * @summary Deletes an invite
1212
+ * @param {ProjectsApiDeleteInviteRequest} requestParameters Request parameters.
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ * @memberof ProjectsApi
1216
+ */
1217
+ deleteInvite(requestParameters, options) {
1218
+ return (0, exports.ProjectsApiFp)(this.configuration).deleteInvite(requestParameters.project, requestParameters.invite, options).then((request) => request(this.axios, this.basePath));
1219
+ }
1220
+ /**
1221
+ * Delete a project
1222
+ * @summary Delete project
1223
+ * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters.
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ * @memberof ProjectsApi
1227
+ */
1228
+ deleteProject(requestParameters, options) {
1229
+ return (0, exports.ProjectsApiFp)(this.configuration).deleteProject(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1230
+ }
1231
+ /**
1232
+ * Delete a project user by ID
1233
+ * @summary Delete a user by ID
1234
+ * @param {ProjectsApiDeleteUserRequest} requestParameters Request parameters.
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ * @memberof ProjectsApi
1238
+ */
1239
+ deleteUser(requestParameters, options) {
1240
+ return (0, exports.ProjectsApiFp)(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
1241
+ }
1242
+ /**
1243
+ * Get an integration
1244
+ * @summary Get integration
1245
+ * @param {ProjectsApiGetIntegrationRequest} requestParameters Request parameters.
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ * @memberof ProjectsApi
1249
+ */
1250
+ getIntegration(requestParameters, options) {
1251
+ return (0, exports.ProjectsApiFp)(this.configuration).getIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
1252
+ }
1253
+ /**
1254
+ * List all integrations installed on a project
1255
+ * @summary List integrations
1256
+ * @param {ProjectsApiGetIntegrationsRequest} requestParameters Request parameters.
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ * @memberof ProjectsApi
1260
+ */
1261
+ getIntegrations(requestParameters, options) {
1262
+ return (0, exports.ProjectsApiFp)(this.configuration).getIntegrations(requestParameters.project, requestParameters.withUninstalled, options).then((request) => request(this.axios, this.basePath));
1263
+ }
1264
+ /**
1265
+ * List the invites associated with a project
1266
+ * @summary List Invites
1267
+ * @param {ProjectsApiGetInvitesRequest} requestParameters Request parameters.
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ * @memberof ProjectsApi
1271
+ */
1272
+ getInvites(requestParameters, options) {
1273
+ return (0, exports.ProjectsApiFp)(this.configuration).getInvites(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1274
+ }
1275
+ /**
1276
+ * Get a project
1277
+ * @summary Get project
1278
+ * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters.
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ * @memberof ProjectsApi
1282
+ */
1283
+ getProject(requestParameters, options) {
1284
+ return (0, exports.ProjectsApiFp)(this.configuration).getProject(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1285
+ }
1286
+ /**
1287
+ * List all projects available
1288
+ * @summary List projects
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ * @memberof ProjectsApi
1292
+ */
1293
+ getProjects(options) {
1294
+ return (0, exports.ProjectsApiFp)(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
1295
+ }
1296
+ /**
1297
+ * Get a project user by id
1298
+ * @summary Get a user
1299
+ * @param {ProjectsApiGetUserRequest} requestParameters Request parameters.
1300
+ * @param {*} [options] Override http request option.
1301
+ * @throws {RequiredError}
1302
+ * @memberof ProjectsApi
1303
+ */
1304
+ getUser(requestParameters, options) {
1305
+ return (0, exports.ProjectsApiFp)(this.configuration).getUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
1306
+ }
1307
+ /**
1308
+ * List the users associated with a project
1309
+ * @summary List project users
1310
+ * @param {ProjectsApiGetUsersRequest} requestParameters Request parameters.
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ * @memberof ProjectsApi
1314
+ */
1315
+ getUsers(requestParameters, options) {
1316
+ return (0, exports.ProjectsApiFp)(this.configuration).getUsers(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1317
+ }
1318
+ /**
1319
+ * Install an integration on the project
1320
+ * @summary Install integration
1321
+ * @param {ProjectsApiInstallIntegrationRequest} requestParameters Request parameters.
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ * @memberof ProjectsApi
1325
+ */
1326
+ installIntegration(requestParameters, options) {
1327
+ return (0, exports.ProjectsApiFp)(this.configuration).installIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
1328
+ }
1329
+ /**
1330
+ * Install an integration template on the project
1331
+ * @summary Install integration template
1332
+ * @param {ProjectsApiInstallTemplateRequest} requestParameters Request parameters.
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ * @memberof ProjectsApi
1336
+ */
1337
+ installTemplate(requestParameters, options) {
1338
+ return (0, exports.ProjectsApiFp)(this.configuration).installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(this.axios, this.basePath));
1339
+ }
1340
+ /**
1341
+ * Setup an integration on the project
1342
+ * @summary Setup integration
1343
+ * @param {ProjectsApiSetupIntegrationRequest} requestParameters Request parameters.
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ * @memberof ProjectsApi
1347
+ */
1348
+ setupIntegration(requestParameters, options) {
1349
+ return (0, exports.ProjectsApiFp)(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1350
+ }
1351
+ /**
1352
+ * Uninstall a projects integration
1353
+ * @summary Uninstall integration
1354
+ * @param {ProjectsApiUninstallIntegrationRequest} requestParameters Request parameters.
1355
+ * @param {*} [options] Override http request option.
1356
+ * @throws {RequiredError}
1357
+ * @memberof ProjectsApi
1358
+ */
1359
+ uninstallIntegration(requestParameters, options) {
1360
+ return (0, exports.ProjectsApiFp)(this.configuration).uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
1361
+ }
1362
+ /**
1363
+ * Update a project
1364
+ * @summary Update project
1365
+ * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters.
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ * @memberof ProjectsApi
1369
+ */
1370
+ updateProject(requestParameters, options) {
1371
+ return (0, exports.ProjectsApiFp)(this.configuration).updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(this.axios, this.basePath));
1372
+ }
1373
+ }
1374
+ exports.ProjectsApi = ProjectsApi;