@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/api.ts ADDED
@@ -0,0 +1,2262 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Projects API
5
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.18.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ApiError
30
+ */
31
+ export interface ApiError {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ApiError
36
+ */
37
+ 'code'?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ApiError
42
+ */
43
+ 'message': string;
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface CreateInviteRequest
49
+ */
50
+ export interface CreateInviteRequest {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof CreateInviteRequest
55
+ */
56
+ 'email': string;
57
+ }
58
+ /**
59
+ *
60
+ * @export
61
+ * @interface CreateProjectRequest
62
+ */
63
+ export interface CreateProjectRequest {
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof CreateProjectRequest
68
+ */
69
+ 'name': string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof CreateProjectRequest
74
+ */
75
+ 'template'?: string;
76
+ /**
77
+ *
78
+ * @type {object}
79
+ * @memberof CreateProjectRequest
80
+ */
81
+ 'config'?: object;
82
+ }
83
+ /**
84
+ *
85
+ * @export
86
+ * @interface InstallTemplateRequest
87
+ */
88
+ export interface InstallTemplateRequest {
89
+ /**
90
+ *
91
+ * @type {object}
92
+ * @memberof InstallTemplateRequest
93
+ */
94
+ 'config'?: object;
95
+ }
96
+ /**
97
+ *
98
+ * @export
99
+ * @interface Integration
100
+ */
101
+ export interface Integration {
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof Integration
106
+ */
107
+ 'id'?: number;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof Integration
112
+ */
113
+ 'code': string;
114
+ /**
115
+ *
116
+ * @type {object}
117
+ * @memberof Integration
118
+ */
119
+ 'config': object;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof Integration
124
+ */
125
+ 'setupAt'?: string;
126
+ }
127
+ /**
128
+ *
129
+ * @export
130
+ * @interface IntegrationsResponse
131
+ */
132
+ export interface IntegrationsResponse {
133
+ /**
134
+ *
135
+ * @type {Array<Integration>}
136
+ * @memberof IntegrationsResponse
137
+ */
138
+ 'integrations': Array<Integration>;
139
+ }
140
+ /**
141
+ *
142
+ * @export
143
+ * @interface LegacyProjectLogo
144
+ */
145
+ export interface LegacyProjectLogo {
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof LegacyProjectLogo
150
+ */
151
+ 'url': string;
152
+ /**
153
+ *
154
+ * @type {string}
155
+ * @memberof LegacyProjectLogo
156
+ */
157
+ 'backgroundColor': string;
158
+ }
159
+ /**
160
+ *
161
+ * @export
162
+ * @interface Project
163
+ */
164
+ export interface Project {
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof Project
169
+ */
170
+ 'id': string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof Project
175
+ */
176
+ 'name': string;
177
+ /**
178
+ *
179
+ * @type {LegacyProjectLogo}
180
+ * @memberof Project
181
+ * @deprecated
182
+ */
183
+ 'logo': LegacyProjectLogo | null;
184
+ /**
185
+ *
186
+ * @type {Array<ProjectLogo>}
187
+ * @memberof Project
188
+ */
189
+ 'logos': Array<ProjectLogo>;
190
+ /**
191
+ *
192
+ * @type {ProjectManager}
193
+ * @memberof Project
194
+ */
195
+ 'manager'?: ProjectManager | null;
196
+ /**
197
+ *
198
+ * @type {Array<string>}
199
+ * @memberof Project
200
+ */
201
+ 'integrations'?: Array<string>;
202
+ /**
203
+ *
204
+ * @type {ProjectCurrency}
205
+ * @memberof Project
206
+ */
207
+ 'currency'?: ProjectCurrency | null;
208
+ }
209
+ /**
210
+ *
211
+ * @export
212
+ * @interface ProjectCurrency
213
+ */
214
+ export interface ProjectCurrency {
215
+ /**
216
+ *
217
+ * @type {string}
218
+ * @memberof ProjectCurrency
219
+ */
220
+ 'code': string;
221
+ /**
222
+ *
223
+ * @type {string}
224
+ * @memberof ProjectCurrency
225
+ */
226
+ 'symbol': string;
227
+ }
228
+ /**
229
+ *
230
+ * @export
231
+ * @interface ProjectInvite
232
+ */
233
+ export interface ProjectInvite {
234
+ /**
235
+ *
236
+ * @type {string}
237
+ * @memberof ProjectInvite
238
+ */
239
+ 'id': string;
240
+ /**
241
+ *
242
+ * @type {string}
243
+ * @memberof ProjectInvite
244
+ */
245
+ 'inviteeEmail': string;
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof ProjectInvite
250
+ */
251
+ 'createdAt': string;
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof ProjectInvite
256
+ */
257
+ 'expiresAt': string;
258
+ /**
259
+ *
260
+ * @type {ProjectUser}
261
+ * @memberof ProjectInvite
262
+ */
263
+ 'inviter': ProjectUser;
264
+ }
265
+ /**
266
+ *
267
+ * @export
268
+ * @interface ProjectInvites
269
+ */
270
+ export interface ProjectInvites {
271
+ /**
272
+ *
273
+ * @type {Array<ProjectInvite>}
274
+ * @memberof ProjectInvites
275
+ */
276
+ 'invites': Array<ProjectInvite>;
277
+ /**
278
+ * The token referencing the next page number
279
+ * @type {number}
280
+ * @memberof ProjectInvites
281
+ */
282
+ 'nextPageToken': number | null;
283
+ }
284
+ /**
285
+ *
286
+ * @export
287
+ * @interface ProjectLogo
288
+ */
289
+ export interface ProjectLogo {
290
+ /**
291
+ *
292
+ * @type {string}
293
+ * @memberof ProjectLogo
294
+ */
295
+ 'url': string;
296
+ /**
297
+ *
298
+ * @type {{ [key: string]: string; }}
299
+ * @memberof ProjectLogo
300
+ */
301
+ 'meta': { [key: string]: string; };
302
+ }
303
+ /**
304
+ *
305
+ * @export
306
+ * @interface ProjectManager
307
+ */
308
+ export interface ProjectManager {
309
+ /**
310
+ *
311
+ * @type {string}
312
+ * @memberof ProjectManager
313
+ */
314
+ 'id': string;
315
+ /**
316
+ *
317
+ * @type {string}
318
+ * @memberof ProjectManager
319
+ */
320
+ 'name': string;
321
+ /**
322
+ *
323
+ * @type {Array<ProjectLogo>}
324
+ * @memberof ProjectManager
325
+ */
326
+ 'logos': Array<ProjectLogo>;
327
+ }
328
+ /**
329
+ *
330
+ * @export
331
+ * @interface ProjectUser
332
+ */
333
+ export interface ProjectUser {
334
+ /**
335
+ *
336
+ * @type {string}
337
+ * @memberof ProjectUser
338
+ */
339
+ 'id': string;
340
+ /**
341
+ *
342
+ * @type {string}
343
+ * @memberof ProjectUser
344
+ */
345
+ 'userRef': string;
346
+ /**
347
+ *
348
+ * @type {string}
349
+ * @memberof ProjectUser
350
+ */
351
+ 'type'?: ProjectUserTypeEnum;
352
+ /**
353
+ *
354
+ * @type {string}
355
+ * @memberof ProjectUser
356
+ */
357
+ 'firstName': string | null;
358
+ /**
359
+ *
360
+ * @type {string}
361
+ * @memberof ProjectUser
362
+ */
363
+ 'lastName': string | null;
364
+ /**
365
+ *
366
+ * @type {string}
367
+ * @memberof ProjectUser
368
+ */
369
+ 'username': string | null;
370
+ /**
371
+ *
372
+ * @type {string}
373
+ * @memberof ProjectUser
374
+ */
375
+ 'email': string;
376
+ /**
377
+ *
378
+ * @type {ProjectUserAvatar}
379
+ * @memberof ProjectUser
380
+ */
381
+ 'avatar': ProjectUserAvatar;
382
+ }
383
+
384
+ export const ProjectUserTypeEnum = {
385
+ User: 'user',
386
+ Service: 'service',
387
+ Ghost: 'ghost'
388
+ } as const;
389
+
390
+ export type ProjectUserTypeEnum = typeof ProjectUserTypeEnum[keyof typeof ProjectUserTypeEnum];
391
+
392
+ /**
393
+ *
394
+ * @export
395
+ * @interface ProjectUserAvatar
396
+ */
397
+ export interface ProjectUserAvatar {
398
+ /**
399
+ *
400
+ * @type {string}
401
+ * @memberof ProjectUserAvatar
402
+ */
403
+ 'original'?: string | null;
404
+ }
405
+ /**
406
+ *
407
+ * @export
408
+ * @interface ProjectUsers
409
+ */
410
+ export interface ProjectUsers {
411
+ /**
412
+ *
413
+ * @type {Array<ProjectUser>}
414
+ * @memberof ProjectUsers
415
+ */
416
+ 'users': Array<ProjectUser>;
417
+ /**
418
+ * The token referencing the next page number
419
+ * @type {number}
420
+ * @memberof ProjectUsers
421
+ */
422
+ 'nextPageToken': number | null;
423
+ }
424
+ /**
425
+ *
426
+ * @export
427
+ * @interface ProjectsResponse
428
+ */
429
+ export interface ProjectsResponse {
430
+ /**
431
+ *
432
+ * @type {Array<Project>}
433
+ * @memberof ProjectsResponse
434
+ */
435
+ 'projects': Array<Project>;
436
+ }
437
+ /**
438
+ *
439
+ * @export
440
+ * @interface SetupIntegrationRequest
441
+ */
442
+ export interface SetupIntegrationRequest {
443
+ /**
444
+ *
445
+ * @type {object}
446
+ * @memberof SetupIntegrationRequest
447
+ */
448
+ 'config': object;
449
+ }
450
+ /**
451
+ *
452
+ * @export
453
+ * @interface UpdateProjectRequest
454
+ */
455
+ export interface UpdateProjectRequest {
456
+ /**
457
+ *
458
+ * @type {string}
459
+ * @memberof UpdateProjectRequest
460
+ */
461
+ 'name'?: string;
462
+ /**
463
+ *
464
+ * @type {Array<ProjectLogo>}
465
+ * @memberof UpdateProjectRequest
466
+ */
467
+ 'logos'?: Array<ProjectLogo>;
468
+ }
469
+
470
+ /**
471
+ * ProjectsApi - axios parameter creator
472
+ * @export
473
+ */
474
+ export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) {
475
+ return {
476
+ /**
477
+ * Creates an invite for the project
478
+ * @summary Creates an invite
479
+ * @param {string} project Projects unique identifier
480
+ * @param {CreateInviteRequest} createInviteRequest Request body to invite user
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ createInvite: async (project: string, createInviteRequest: CreateInviteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
485
+ // verify required parameter 'project' is not null or undefined
486
+ assertParamExists('createInvite', 'project', project)
487
+ // verify required parameter 'createInviteRequest' is not null or undefined
488
+ assertParamExists('createInvite', 'createInviteRequest', createInviteRequest)
489
+ const localVarPath = `/v1/projects/{project}/invites`
490
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
493
+ let baseOptions;
494
+ if (configuration) {
495
+ baseOptions = configuration.baseOptions;
496
+ }
497
+
498
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
499
+ const localVarHeaderParameter = {} as any;
500
+ const localVarQueryParameter = {} as any;
501
+
502
+ // authentication session-oauth required
503
+ // oauth required
504
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
505
+
506
+ // authentication api-key required
507
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
508
+
509
+
510
+
511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
512
+
513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
516
+ localVarRequestOptions.data = serializeDataIfNeeded(createInviteRequest, localVarRequestOptions, configuration)
517
+
518
+ return {
519
+ url: toPathString(localVarUrlObj),
520
+ options: localVarRequestOptions,
521
+ };
522
+ },
523
+ /**
524
+ * Create a new projects
525
+ * @summary Create project
526
+ * @param {CreateProjectRequest} createProjectRequest Project to create
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ createProject: async (createProjectRequest: CreateProjectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
531
+ // verify required parameter 'createProjectRequest' is not null or undefined
532
+ assertParamExists('createProject', 'createProjectRequest', createProjectRequest)
533
+ const localVarPath = `/v1/projects`;
534
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
535
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
536
+ let baseOptions;
537
+ if (configuration) {
538
+ baseOptions = configuration.baseOptions;
539
+ }
540
+
541
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
542
+ const localVarHeaderParameter = {} as any;
543
+ const localVarQueryParameter = {} as any;
544
+
545
+ // authentication session-oauth required
546
+ // oauth required
547
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
548
+
549
+ // authentication api-key required
550
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
551
+
552
+
553
+
554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
555
+
556
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
558
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
559
+ localVarRequestOptions.data = serializeDataIfNeeded(createProjectRequest, localVarRequestOptions, configuration)
560
+
561
+ return {
562
+ url: toPathString(localVarUrlObj),
563
+ options: localVarRequestOptions,
564
+ };
565
+ },
566
+ /**
567
+ * Deletes an invite to the project
568
+ * @summary Deletes an invite
569
+ * @param {string} project Projects unique identifier
570
+ * @param {string} invite The unique id of the invite
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ deleteInvite: async (project: string, invite: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
575
+ // verify required parameter 'project' is not null or undefined
576
+ assertParamExists('deleteInvite', 'project', project)
577
+ // verify required parameter 'invite' is not null or undefined
578
+ assertParamExists('deleteInvite', 'invite', invite)
579
+ const localVarPath = `/v1/projects/{project}/invites/{invite}`
580
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
581
+ .replace(`{${"invite"}}`, encodeURIComponent(String(invite)));
582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
583
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
584
+ let baseOptions;
585
+ if (configuration) {
586
+ baseOptions = configuration.baseOptions;
587
+ }
588
+
589
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
590
+ const localVarHeaderParameter = {} as any;
591
+ const localVarQueryParameter = {} as any;
592
+
593
+ // authentication session-oauth required
594
+ // oauth required
595
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
596
+
597
+ // authentication api-key required
598
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
599
+
600
+
601
+
602
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
603
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
604
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
605
+
606
+ return {
607
+ url: toPathString(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ },
611
+ /**
612
+ * Delete a project
613
+ * @summary Delete project
614
+ * @param {string} project Projects unique identifier
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ deleteProject: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
619
+ // verify required parameter 'project' is not null or undefined
620
+ assertParamExists('deleteProject', 'project', project)
621
+ const localVarPath = `/v1/projects/{project}`
622
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
624
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
625
+ let baseOptions;
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ }
629
+
630
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
631
+ const localVarHeaderParameter = {} as any;
632
+ const localVarQueryParameter = {} as any;
633
+
634
+ // authentication session-oauth required
635
+ // oauth required
636
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
637
+
638
+ // authentication api-key required
639
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
640
+
641
+
642
+
643
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
644
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
645
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
646
+
647
+ return {
648
+ url: toPathString(localVarUrlObj),
649
+ options: localVarRequestOptions,
650
+ };
651
+ },
652
+ /**
653
+ * Delete a project user by ID
654
+ * @summary Delete a user by ID
655
+ * @param {string} project Projects unique identifier
656
+ * @param {string} user the unique id of the user
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ deleteUser: async (project: string, user: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
661
+ // verify required parameter 'project' is not null or undefined
662
+ assertParamExists('deleteUser', 'project', project)
663
+ // verify required parameter 'user' is not null or undefined
664
+ assertParamExists('deleteUser', 'user', user)
665
+ const localVarPath = `/v1/projects/{project}/users/{user}`
666
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
667
+ .replace(`{${"user"}}`, encodeURIComponent(String(user)));
668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
670
+ let baseOptions;
671
+ if (configuration) {
672
+ baseOptions = configuration.baseOptions;
673
+ }
674
+
675
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
676
+ const localVarHeaderParameter = {} as any;
677
+ const localVarQueryParameter = {} as any;
678
+
679
+ // authentication session-oauth required
680
+ // oauth required
681
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
682
+
683
+ // authentication api-key required
684
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
685
+
686
+
687
+
688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
690
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
691
+
692
+ return {
693
+ url: toPathString(localVarUrlObj),
694
+ options: localVarRequestOptions,
695
+ };
696
+ },
697
+ /**
698
+ * Get an integration
699
+ * @summary Get integration
700
+ * @param {string} project Projects unique identifier
701
+ * @param {string} integration Integrations unique code
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ getIntegration: async (project: string, integration: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
706
+ // verify required parameter 'project' is not null or undefined
707
+ assertParamExists('getIntegration', 'project', project)
708
+ // verify required parameter 'integration' is not null or undefined
709
+ assertParamExists('getIntegration', 'integration', integration)
710
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
711
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
712
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
713
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
714
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
715
+ let baseOptions;
716
+ if (configuration) {
717
+ baseOptions = configuration.baseOptions;
718
+ }
719
+
720
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
721
+ const localVarHeaderParameter = {} as any;
722
+ const localVarQueryParameter = {} as any;
723
+
724
+ // authentication session-oauth required
725
+ // oauth required
726
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
727
+
728
+ // authentication api-key required
729
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
730
+
731
+
732
+
733
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
735
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
736
+
737
+ return {
738
+ url: toPathString(localVarUrlObj),
739
+ options: localVarRequestOptions,
740
+ };
741
+ },
742
+ /**
743
+ * List all integrations installed on a project
744
+ * @summary List integrations
745
+ * @param {string} project Projects unique identifier
746
+ * @param {string} [withUninstalled] Include soft deleted integrations
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ getIntegrations: async (project: string, withUninstalled?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
751
+ // verify required parameter 'project' is not null or undefined
752
+ assertParamExists('getIntegrations', 'project', project)
753
+ const localVarPath = `/v1/projects/{project}/integrations`
754
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
756
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
757
+ let baseOptions;
758
+ if (configuration) {
759
+ baseOptions = configuration.baseOptions;
760
+ }
761
+
762
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
763
+ const localVarHeaderParameter = {} as any;
764
+ const localVarQueryParameter = {} as any;
765
+
766
+ // authentication session-oauth required
767
+ // oauth required
768
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
769
+
770
+ // authentication api-key required
771
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
772
+
773
+ if (withUninstalled !== undefined) {
774
+ localVarQueryParameter['withUninstalled'] = withUninstalled;
775
+ }
776
+
777
+
778
+
779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
781
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
782
+
783
+ return {
784
+ url: toPathString(localVarUrlObj),
785
+ options: localVarRequestOptions,
786
+ };
787
+ },
788
+ /**
789
+ * List the invites associated with a project
790
+ * @summary List Invites
791
+ * @param {string} project Projects unique identifier
792
+ * @param {string} [search] Search term used to filter results by
793
+ * @param {number} [pageToken] Page reference token
794
+ * @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.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ getInvites: async (project: string, search?: string, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
799
+ // verify required parameter 'project' is not null or undefined
800
+ assertParamExists('getInvites', 'project', project)
801
+ const localVarPath = `/v1/projects/{project}/invites`
802
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
804
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
805
+ let baseOptions;
806
+ if (configuration) {
807
+ baseOptions = configuration.baseOptions;
808
+ }
809
+
810
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
811
+ const localVarHeaderParameter = {} as any;
812
+ const localVarQueryParameter = {} as any;
813
+
814
+ // authentication session-oauth required
815
+ // oauth required
816
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
817
+
818
+ // authentication api-key required
819
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
820
+
821
+ if (search !== undefined) {
822
+ localVarQueryParameter['search'] = search;
823
+ }
824
+
825
+ if (pageToken !== undefined) {
826
+ localVarQueryParameter['pageToken'] = pageToken;
827
+ }
828
+
829
+ if (pageSize !== undefined) {
830
+ localVarQueryParameter['pageSize'] = pageSize;
831
+ }
832
+
833
+
834
+
835
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
836
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
837
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
838
+
839
+ return {
840
+ url: toPathString(localVarUrlObj),
841
+ options: localVarRequestOptions,
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: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
852
+ // verify required parameter 'project' is not null or undefined
853
+ assertParamExists('getProject', 'project', project)
854
+ const localVarPath = `/v1/projects/{project}`
855
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
856
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
857
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
858
+ let baseOptions;
859
+ if (configuration) {
860
+ baseOptions = configuration.baseOptions;
861
+ }
862
+
863
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
864
+ const localVarHeaderParameter = {} as any;
865
+ const localVarQueryParameter = {} as any;
866
+
867
+ // authentication session-oauth required
868
+ // oauth required
869
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
870
+
871
+ // authentication api-key required
872
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
873
+
874
+
875
+
876
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
877
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
878
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
879
+
880
+ return {
881
+ url: toPathString(localVarUrlObj),
882
+ options: localVarRequestOptions,
883
+ };
884
+ },
885
+ /**
886
+ * List all projects available
887
+ * @summary List projects
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ getProjects: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
892
+ const localVarPath = `/v1/projects`;
893
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
894
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
895
+ let baseOptions;
896
+ if (configuration) {
897
+ baseOptions = configuration.baseOptions;
898
+ }
899
+
900
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
901
+ const localVarHeaderParameter = {} as any;
902
+ const localVarQueryParameter = {} as any;
903
+
904
+ // authentication session-oauth required
905
+ // oauth required
906
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
907
+
908
+ // authentication api-key required
909
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
910
+
911
+
912
+
913
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
915
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
916
+
917
+ return {
918
+ url: toPathString(localVarUrlObj),
919
+ options: localVarRequestOptions,
920
+ };
921
+ },
922
+ /**
923
+ * Get a project user by id
924
+ * @summary Get a user
925
+ * @param {string} project Projects unique identifier
926
+ * @param {string} user the unique id of the user
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ getUser: async (project: string, user: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
931
+ // verify required parameter 'project' is not null or undefined
932
+ assertParamExists('getUser', 'project', project)
933
+ // verify required parameter 'user' is not null or undefined
934
+ assertParamExists('getUser', 'user', user)
935
+ const localVarPath = `/v1/projects/{project}/users/{user}`
936
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
937
+ .replace(`{${"user"}}`, encodeURIComponent(String(user)));
938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940
+ let baseOptions;
941
+ if (configuration) {
942
+ baseOptions = configuration.baseOptions;
943
+ }
944
+
945
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
946
+ const localVarHeaderParameter = {} as any;
947
+ const localVarQueryParameter = {} as any;
948
+
949
+ // authentication session-oauth required
950
+ // oauth required
951
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
952
+
953
+ // authentication api-key required
954
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
955
+
956
+
957
+
958
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
960
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
961
+
962
+ return {
963
+ url: toPathString(localVarUrlObj),
964
+ options: localVarRequestOptions,
965
+ };
966
+ },
967
+ /**
968
+ * List the users associated with a project
969
+ * @summary List project users
970
+ * @param {string} project Projects unique identifier
971
+ * @param {string} [search] Search term used to filter results by
972
+ * @param {number} [pageToken] Page reference token
973
+ * @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.
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ getUsers: async (project: string, search?: string, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
978
+ // verify required parameter 'project' is not null or undefined
979
+ assertParamExists('getUsers', 'project', project)
980
+ const localVarPath = `/v1/projects/{project}/users`
981
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
983
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
984
+ let baseOptions;
985
+ if (configuration) {
986
+ baseOptions = configuration.baseOptions;
987
+ }
988
+
989
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
990
+ const localVarHeaderParameter = {} as any;
991
+ const localVarQueryParameter = {} as any;
992
+
993
+ // authentication session-oauth required
994
+ // oauth required
995
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
996
+
997
+ // authentication api-key required
998
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
999
+
1000
+ if (search !== undefined) {
1001
+ localVarQueryParameter['search'] = search;
1002
+ }
1003
+
1004
+ if (pageToken !== undefined) {
1005
+ localVarQueryParameter['pageToken'] = pageToken;
1006
+ }
1007
+
1008
+ if (pageSize !== undefined) {
1009
+ localVarQueryParameter['pageSize'] = pageSize;
1010
+ }
1011
+
1012
+
1013
+
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1017
+
1018
+ return {
1019
+ url: toPathString(localVarUrlObj),
1020
+ options: localVarRequestOptions,
1021
+ };
1022
+ },
1023
+ /**
1024
+ * Install an integration on the project
1025
+ * @summary Install integration
1026
+ * @param {string} project Projects unique identifier
1027
+ * @param {string} integration Integrations unique code
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ installIntegration: async (project: string, integration: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1032
+ // verify required parameter 'project' is not null or undefined
1033
+ assertParamExists('installIntegration', 'project', project)
1034
+ // verify required parameter 'integration' is not null or undefined
1035
+ assertParamExists('installIntegration', 'integration', integration)
1036
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
1037
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1038
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
1039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1041
+ let baseOptions;
1042
+ if (configuration) {
1043
+ baseOptions = configuration.baseOptions;
1044
+ }
1045
+
1046
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1047
+ const localVarHeaderParameter = {} as any;
1048
+ const localVarQueryParameter = {} as any;
1049
+
1050
+ // authentication session-oauth required
1051
+ // oauth required
1052
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1053
+
1054
+ // authentication api-key required
1055
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1056
+
1057
+
1058
+
1059
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1061
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1062
+
1063
+ return {
1064
+ url: toPathString(localVarUrlObj),
1065
+ options: localVarRequestOptions,
1066
+ };
1067
+ },
1068
+ /**
1069
+ * Install an integration template on the project
1070
+ * @summary Install integration template
1071
+ * @param {string} project Projects unique identifier
1072
+ * @param {string} template Templates unique code
1073
+ * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ installTemplate: async (project: string, template: string, installTemplateRequest: InstallTemplateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1078
+ // verify required parameter 'project' is not null or undefined
1079
+ assertParamExists('installTemplate', 'project', project)
1080
+ // verify required parameter 'template' is not null or undefined
1081
+ assertParamExists('installTemplate', 'template', template)
1082
+ // verify required parameter 'installTemplateRequest' is not null or undefined
1083
+ assertParamExists('installTemplate', 'installTemplateRequest', installTemplateRequest)
1084
+ const localVarPath = `/v1/projects/{project}/templates/{template}`
1085
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1086
+ .replace(`{${"template"}}`, encodeURIComponent(String(template)));
1087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1089
+ let baseOptions;
1090
+ if (configuration) {
1091
+ baseOptions = configuration.baseOptions;
1092
+ }
1093
+
1094
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1095
+ const localVarHeaderParameter = {} as any;
1096
+ const localVarQueryParameter = {} as any;
1097
+
1098
+ // authentication session-oauth required
1099
+ // oauth required
1100
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1101
+
1102
+ // authentication api-key required
1103
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1104
+
1105
+
1106
+
1107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1108
+
1109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1111
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1112
+ localVarRequestOptions.data = serializeDataIfNeeded(installTemplateRequest, localVarRequestOptions, configuration)
1113
+
1114
+ return {
1115
+ url: toPathString(localVarUrlObj),
1116
+ options: localVarRequestOptions,
1117
+ };
1118
+ },
1119
+ /**
1120
+ * Setup an integration on the project
1121
+ * @summary Setup integration
1122
+ * @param {string} project Projects unique identifier
1123
+ * @param {string} integration Integrations unique code
1124
+ * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
1125
+ * @param {*} [options] Override http request option.
1126
+ * @throws {RequiredError}
1127
+ */
1128
+ setupIntegration: async (project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1129
+ // verify required parameter 'project' is not null or undefined
1130
+ assertParamExists('setupIntegration', 'project', project)
1131
+ // verify required parameter 'integration' is not null or undefined
1132
+ assertParamExists('setupIntegration', 'integration', integration)
1133
+ // verify required parameter 'setupIntegrationRequest' is not null or undefined
1134
+ assertParamExists('setupIntegration', 'setupIntegrationRequest', setupIntegrationRequest)
1135
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}/setup`
1136
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1137
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
1138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1140
+ let baseOptions;
1141
+ if (configuration) {
1142
+ baseOptions = configuration.baseOptions;
1143
+ }
1144
+
1145
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1146
+ const localVarHeaderParameter = {} as any;
1147
+ const localVarQueryParameter = {} as any;
1148
+
1149
+ // authentication session-oauth required
1150
+ // oauth required
1151
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1152
+
1153
+ // authentication api-key required
1154
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1155
+
1156
+
1157
+
1158
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1159
+
1160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1162
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1163
+ localVarRequestOptions.data = serializeDataIfNeeded(setupIntegrationRequest, localVarRequestOptions, configuration)
1164
+
1165
+ return {
1166
+ url: toPathString(localVarUrlObj),
1167
+ options: localVarRequestOptions,
1168
+ };
1169
+ },
1170
+ /**
1171
+ * Uninstall a projects integration
1172
+ * @summary Uninstall integration
1173
+ * @param {string} project Projects unique identifier
1174
+ * @param {string} integration Integrations unique code
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ uninstallIntegration: async (project: string, integration: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1179
+ // verify required parameter 'project' is not null or undefined
1180
+ assertParamExists('uninstallIntegration', 'project', project)
1181
+ // verify required parameter 'integration' is not null or undefined
1182
+ assertParamExists('uninstallIntegration', 'integration', integration)
1183
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
1184
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1185
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
1186
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1188
+ let baseOptions;
1189
+ if (configuration) {
1190
+ baseOptions = configuration.baseOptions;
1191
+ }
1192
+
1193
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1194
+ const localVarHeaderParameter = {} as any;
1195
+ const localVarQueryParameter = {} as any;
1196
+
1197
+ // authentication session-oauth required
1198
+ // oauth required
1199
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1200
+
1201
+ // authentication api-key required
1202
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1203
+
1204
+
1205
+
1206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1208
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1209
+
1210
+ return {
1211
+ url: toPathString(localVarUrlObj),
1212
+ options: localVarRequestOptions,
1213
+ };
1214
+ },
1215
+ /**
1216
+ * Update a project
1217
+ * @summary Update project
1218
+ * @param {string} project Projects unique identifier
1219
+ * @param {UpdateProjectRequest} updateProjectRequest Updated project data
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ updateProject: async (project: string, updateProjectRequest: UpdateProjectRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1224
+ // verify required parameter 'project' is not null or undefined
1225
+ assertParamExists('updateProject', 'project', project)
1226
+ // verify required parameter 'updateProjectRequest' is not null or undefined
1227
+ assertParamExists('updateProject', 'updateProjectRequest', updateProjectRequest)
1228
+ const localVarPath = `/v1/projects/{project}`
1229
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
1230
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1231
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1232
+ let baseOptions;
1233
+ if (configuration) {
1234
+ baseOptions = configuration.baseOptions;
1235
+ }
1236
+
1237
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1238
+ const localVarHeaderParameter = {} as any;
1239
+ const localVarQueryParameter = {} as any;
1240
+
1241
+ // authentication session-oauth required
1242
+ // oauth required
1243
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1244
+
1245
+ // authentication api-key required
1246
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1247
+
1248
+
1249
+
1250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1251
+
1252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1255
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProjectRequest, localVarRequestOptions, configuration)
1256
+
1257
+ return {
1258
+ url: toPathString(localVarUrlObj),
1259
+ options: localVarRequestOptions,
1260
+ };
1261
+ },
1262
+ }
1263
+ };
1264
+
1265
+ /**
1266
+ * ProjectsApi - functional programming interface
1267
+ * @export
1268
+ */
1269
+ export const ProjectsApiFp = function(configuration?: Configuration) {
1270
+ const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration)
1271
+ return {
1272
+ /**
1273
+ * Creates an invite for the project
1274
+ * @summary Creates an invite
1275
+ * @param {string} project Projects unique identifier
1276
+ * @param {CreateInviteRequest} createInviteRequest Request body to invite user
1277
+ * @param {*} [options] Override http request option.
1278
+ * @throws {RequiredError}
1279
+ */
1280
+ async createInvite(project: string, createInviteRequest: CreateInviteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectInvite>> {
1281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInvite(project, createInviteRequest, options);
1282
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1283
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.createInvite']?.[localVarOperationServerIndex]?.url;
1284
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1285
+ },
1286
+ /**
1287
+ * Create a new projects
1288
+ * @summary Create project
1289
+ * @param {CreateProjectRequest} createProjectRequest Project to create
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ async createProject(createProjectRequest: CreateProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Project>> {
1294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProject(createProjectRequest, options);
1295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1296
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.createProject']?.[localVarOperationServerIndex]?.url;
1297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1298
+ },
1299
+ /**
1300
+ * Deletes an invite to the project
1301
+ * @summary Deletes an invite
1302
+ * @param {string} project Projects unique identifier
1303
+ * @param {string} invite The unique id of the invite
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ async deleteInvite(project: string, invite: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(project, invite, options);
1309
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1310
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteInvite']?.[localVarOperationServerIndex]?.url;
1311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1312
+ },
1313
+ /**
1314
+ * Delete a project
1315
+ * @summary Delete project
1316
+ * @param {string} project Projects unique identifier
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ */
1320
+ async deleteProject(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProject(project, options);
1322
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1323
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteProject']?.[localVarOperationServerIndex]?.url;
1324
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1325
+ },
1326
+ /**
1327
+ * Delete a project user by ID
1328
+ * @summary Delete a user by ID
1329
+ * @param {string} project Projects unique identifier
1330
+ * @param {string} user the unique id of the user
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ */
1334
+ async deleteUser(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(project, user, options);
1336
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1337
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteUser']?.[localVarOperationServerIndex]?.url;
1338
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1339
+ },
1340
+ /**
1341
+ * Get an integration
1342
+ * @summary Get integration
1343
+ * @param {string} project Projects unique identifier
1344
+ * @param {string} integration Integrations unique code
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ async getIntegration(project: string, integration: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegration(project, integration, options);
1350
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1351
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getIntegration']?.[localVarOperationServerIndex]?.url;
1352
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1353
+ },
1354
+ /**
1355
+ * List all integrations installed on a project
1356
+ * @summary List integrations
1357
+ * @param {string} project Projects unique identifier
1358
+ * @param {string} [withUninstalled] Include soft deleted integrations
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ async getIntegrations(project: string, withUninstalled?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
1363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegrations(project, withUninstalled, options);
1364
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1365
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getIntegrations']?.[localVarOperationServerIndex]?.url;
1366
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1367
+ },
1368
+ /**
1369
+ * List the invites associated with a project
1370
+ * @summary List Invites
1371
+ * @param {string} project Projects unique identifier
1372
+ * @param {string} [search] Search term used to filter results by
1373
+ * @param {number} [pageToken] Page reference token
1374
+ * @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.
1375
+ * @param {*} [options] Override http request option.
1376
+ * @throws {RequiredError}
1377
+ */
1378
+ async getInvites(project: string, search?: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectInvites>> {
1379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvites(project, search, pageToken, pageSize, options);
1380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1381
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getInvites']?.[localVarOperationServerIndex]?.url;
1382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1383
+ },
1384
+ /**
1385
+ * Get a project
1386
+ * @summary Get project
1387
+ * @param {string} project Projects unique identifier
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ async getProject(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Project>> {
1392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(project, options);
1393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1394
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getProject']?.[localVarOperationServerIndex]?.url;
1395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1396
+ },
1397
+ /**
1398
+ * List all projects available
1399
+ * @summary List projects
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ */
1403
+ async getProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsResponse>> {
1404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProjects(options);
1405
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1406
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getProjects']?.[localVarOperationServerIndex]?.url;
1407
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1408
+ },
1409
+ /**
1410
+ * Get a project user by id
1411
+ * @summary Get a user
1412
+ * @param {string} project Projects unique identifier
1413
+ * @param {string} user the unique id of the user
1414
+ * @param {*} [options] Override http request option.
1415
+ * @throws {RequiredError}
1416
+ */
1417
+ async getUser(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectUser>> {
1418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(project, user, options);
1419
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1420
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getUser']?.[localVarOperationServerIndex]?.url;
1421
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1422
+ },
1423
+ /**
1424
+ * List the users associated with a project
1425
+ * @summary List project users
1426
+ * @param {string} project Projects unique identifier
1427
+ * @param {string} [search] Search term used to filter results by
1428
+ * @param {number} [pageToken] Page reference token
1429
+ * @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.
1430
+ * @param {*} [options] Override http request option.
1431
+ * @throws {RequiredError}
1432
+ */
1433
+ async getUsers(project: string, search?: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectUsers>> {
1434
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(project, search, pageToken, pageSize, options);
1435
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1436
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getUsers']?.[localVarOperationServerIndex]?.url;
1437
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1438
+ },
1439
+ /**
1440
+ * Install an integration on the project
1441
+ * @summary Install integration
1442
+ * @param {string} project Projects unique identifier
1443
+ * @param {string} integration Integrations unique code
1444
+ * @param {*} [options] Override http request option.
1445
+ * @throws {RequiredError}
1446
+ */
1447
+ async installIntegration(project: string, integration: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1448
+ const localVarAxiosArgs = await localVarAxiosParamCreator.installIntegration(project, integration, options);
1449
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1450
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.installIntegration']?.[localVarOperationServerIndex]?.url;
1451
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1452
+ },
1453
+ /**
1454
+ * Install an integration template on the project
1455
+ * @summary Install integration template
1456
+ * @param {string} project Projects unique identifier
1457
+ * @param {string} template Templates unique code
1458
+ * @param {InstallTemplateRequest} installTemplateRequest Request body to install template
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ async installTemplate(project: string, template: string, installTemplateRequest: InstallTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
1463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.installTemplate(project, template, installTemplateRequest, options);
1464
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1465
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.installTemplate']?.[localVarOperationServerIndex]?.url;
1466
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1467
+ },
1468
+ /**
1469
+ * Setup an integration on the project
1470
+ * @summary Setup integration
1471
+ * @param {string} project Projects unique identifier
1472
+ * @param {string} integration Integrations unique code
1473
+ * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ */
1477
+ async setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setupIntegration(project, integration, setupIntegrationRequest, options);
1479
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1480
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.setupIntegration']?.[localVarOperationServerIndex]?.url;
1481
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1482
+ },
1483
+ /**
1484
+ * Uninstall a projects integration
1485
+ * @summary Uninstall integration
1486
+ * @param {string} project Projects unique identifier
1487
+ * @param {string} integration Integrations unique code
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ async uninstallIntegration(project: string, integration: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1492
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallIntegration(project, integration, options);
1493
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1494
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.uninstallIntegration']?.[localVarOperationServerIndex]?.url;
1495
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1496
+ },
1497
+ /**
1498
+ * Update a project
1499
+ * @summary Update project
1500
+ * @param {string} project Projects unique identifier
1501
+ * @param {UpdateProjectRequest} updateProjectRequest Updated project data
1502
+ * @param {*} [options] Override http request option.
1503
+ * @throws {RequiredError}
1504
+ */
1505
+ async updateProject(project: string, updateProjectRequest: UpdateProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Project>> {
1506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProject(project, updateProjectRequest, options);
1507
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1508
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.updateProject']?.[localVarOperationServerIndex]?.url;
1509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1510
+ },
1511
+ }
1512
+ };
1513
+
1514
+ /**
1515
+ * ProjectsApi - factory interface
1516
+ * @export
1517
+ */
1518
+ export const ProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1519
+ const localVarFp = ProjectsApiFp(configuration)
1520
+ return {
1521
+ /**
1522
+ * Creates an invite for the project
1523
+ * @summary Creates an invite
1524
+ * @param {ProjectsApiCreateInviteRequest} requestParameters Request parameters.
1525
+ * @param {*} [options] Override http request option.
1526
+ * @throws {RequiredError}
1527
+ */
1528
+ createInvite(requestParameters: ProjectsApiCreateInviteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectInvite> {
1529
+ return localVarFp.createInvite(requestParameters.project, requestParameters.createInviteRequest, options).then((request) => request(axios, basePath));
1530
+ },
1531
+ /**
1532
+ * Create a new projects
1533
+ * @summary Create project
1534
+ * @param {ProjectsApiCreateProjectRequest} requestParameters Request parameters.
1535
+ * @param {*} [options] Override http request option.
1536
+ * @throws {RequiredError}
1537
+ */
1538
+ createProject(requestParameters: ProjectsApiCreateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project> {
1539
+ return localVarFp.createProject(requestParameters.createProjectRequest, options).then((request) => request(axios, basePath));
1540
+ },
1541
+ /**
1542
+ * Deletes an invite to the project
1543
+ * @summary Deletes an invite
1544
+ * @param {ProjectsApiDeleteInviteRequest} requestParameters Request parameters.
1545
+ * @param {*} [options] Override http request option.
1546
+ * @throws {RequiredError}
1547
+ */
1548
+ deleteInvite(requestParameters: ProjectsApiDeleteInviteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1549
+ return localVarFp.deleteInvite(requestParameters.project, requestParameters.invite, options).then((request) => request(axios, basePath));
1550
+ },
1551
+ /**
1552
+ * Delete a project
1553
+ * @summary Delete project
1554
+ * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters.
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ deleteProject(requestParameters: ProjectsApiDeleteProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1559
+ return localVarFp.deleteProject(requestParameters.project, options).then((request) => request(axios, basePath));
1560
+ },
1561
+ /**
1562
+ * Delete a project user by ID
1563
+ * @summary Delete a user by ID
1564
+ * @param {ProjectsApiDeleteUserRequest} requestParameters Request parameters.
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ deleteUser(requestParameters: ProjectsApiDeleteUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1569
+ return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
1570
+ },
1571
+ /**
1572
+ * Get an integration
1573
+ * @summary Get integration
1574
+ * @param {ProjectsApiGetIntegrationRequest} requestParameters Request parameters.
1575
+ * @param {*} [options] Override http request option.
1576
+ * @throws {RequiredError}
1577
+ */
1578
+ getIntegration(requestParameters: ProjectsApiGetIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration> {
1579
+ return localVarFp.getIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1580
+ },
1581
+ /**
1582
+ * List all integrations installed on a project
1583
+ * @summary List integrations
1584
+ * @param {ProjectsApiGetIntegrationsRequest} requestParameters Request parameters.
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ */
1588
+ getIntegrations(requestParameters: ProjectsApiGetIntegrationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
1589
+ return localVarFp.getIntegrations(requestParameters.project, requestParameters.withUninstalled, options).then((request) => request(axios, basePath));
1590
+ },
1591
+ /**
1592
+ * List the invites associated with a project
1593
+ * @summary List Invites
1594
+ * @param {ProjectsApiGetInvitesRequest} requestParameters Request parameters.
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ getInvites(requestParameters: ProjectsApiGetInvitesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectInvites> {
1599
+ return localVarFp.getInvites(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1600
+ },
1601
+ /**
1602
+ * Get a project
1603
+ * @summary Get project
1604
+ * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters.
1605
+ * @param {*} [options] Override http request option.
1606
+ * @throws {RequiredError}
1607
+ */
1608
+ getProject(requestParameters: ProjectsApiGetProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project> {
1609
+ return localVarFp.getProject(requestParameters.project, options).then((request) => request(axios, basePath));
1610
+ },
1611
+ /**
1612
+ * List all projects available
1613
+ * @summary List projects
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ getProjects(options?: RawAxiosRequestConfig): AxiosPromise<ProjectsResponse> {
1618
+ return localVarFp.getProjects(options).then((request) => request(axios, basePath));
1619
+ },
1620
+ /**
1621
+ * Get a project user by id
1622
+ * @summary Get a user
1623
+ * @param {ProjectsApiGetUserRequest} requestParameters Request parameters.
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ */
1627
+ getUser(requestParameters: ProjectsApiGetUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectUser> {
1628
+ return localVarFp.getUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
1629
+ },
1630
+ /**
1631
+ * List the users associated with a project
1632
+ * @summary List project users
1633
+ * @param {ProjectsApiGetUsersRequest} requestParameters Request parameters.
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ getUsers(requestParameters: ProjectsApiGetUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectUsers> {
1638
+ return localVarFp.getUsers(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1639
+ },
1640
+ /**
1641
+ * Install an integration on the project
1642
+ * @summary Install integration
1643
+ * @param {ProjectsApiInstallIntegrationRequest} requestParameters Request parameters.
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ */
1647
+ installIntegration(requestParameters: ProjectsApiInstallIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration> {
1648
+ return localVarFp.installIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1649
+ },
1650
+ /**
1651
+ * Install an integration template on the project
1652
+ * @summary Install integration template
1653
+ * @param {ProjectsApiInstallTemplateRequest} requestParameters Request parameters.
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ */
1657
+ installTemplate(requestParameters: ProjectsApiInstallTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
1658
+ return localVarFp.installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(axios, basePath));
1659
+ },
1660
+ /**
1661
+ * Setup an integration on the project
1662
+ * @summary Setup integration
1663
+ * @param {ProjectsApiSetupIntegrationRequest} requestParameters Request parameters.
1664
+ * @param {*} [options] Override http request option.
1665
+ * @throws {RequiredError}
1666
+ */
1667
+ setupIntegration(requestParameters: ProjectsApiSetupIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration> {
1668
+ return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(axios, basePath));
1669
+ },
1670
+ /**
1671
+ * Uninstall a projects integration
1672
+ * @summary Uninstall integration
1673
+ * @param {ProjectsApiUninstallIntegrationRequest} requestParameters Request parameters.
1674
+ * @param {*} [options] Override http request option.
1675
+ * @throws {RequiredError}
1676
+ */
1677
+ uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1678
+ return localVarFp.uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1679
+ },
1680
+ /**
1681
+ * Update a project
1682
+ * @summary Update project
1683
+ * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters.
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ */
1687
+ updateProject(requestParameters: ProjectsApiUpdateProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Project> {
1688
+ return localVarFp.updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(axios, basePath));
1689
+ },
1690
+ };
1691
+ };
1692
+
1693
+ /**
1694
+ * Request parameters for createInvite operation in ProjectsApi.
1695
+ * @export
1696
+ * @interface ProjectsApiCreateInviteRequest
1697
+ */
1698
+ export interface ProjectsApiCreateInviteRequest {
1699
+ /**
1700
+ * Projects unique identifier
1701
+ * @type {string}
1702
+ * @memberof ProjectsApiCreateInvite
1703
+ */
1704
+ readonly project: string
1705
+
1706
+ /**
1707
+ * Request body to invite user
1708
+ * @type {CreateInviteRequest}
1709
+ * @memberof ProjectsApiCreateInvite
1710
+ */
1711
+ readonly createInviteRequest: CreateInviteRequest
1712
+ }
1713
+
1714
+ /**
1715
+ * Request parameters for createProject operation in ProjectsApi.
1716
+ * @export
1717
+ * @interface ProjectsApiCreateProjectRequest
1718
+ */
1719
+ export interface ProjectsApiCreateProjectRequest {
1720
+ /**
1721
+ * Project to create
1722
+ * @type {CreateProjectRequest}
1723
+ * @memberof ProjectsApiCreateProject
1724
+ */
1725
+ readonly createProjectRequest: CreateProjectRequest
1726
+ }
1727
+
1728
+ /**
1729
+ * Request parameters for deleteInvite operation in ProjectsApi.
1730
+ * @export
1731
+ * @interface ProjectsApiDeleteInviteRequest
1732
+ */
1733
+ export interface ProjectsApiDeleteInviteRequest {
1734
+ /**
1735
+ * Projects unique identifier
1736
+ * @type {string}
1737
+ * @memberof ProjectsApiDeleteInvite
1738
+ */
1739
+ readonly project: string
1740
+
1741
+ /**
1742
+ * The unique id of the invite
1743
+ * @type {string}
1744
+ * @memberof ProjectsApiDeleteInvite
1745
+ */
1746
+ readonly invite: string
1747
+ }
1748
+
1749
+ /**
1750
+ * Request parameters for deleteProject operation in ProjectsApi.
1751
+ * @export
1752
+ * @interface ProjectsApiDeleteProjectRequest
1753
+ */
1754
+ export interface ProjectsApiDeleteProjectRequest {
1755
+ /**
1756
+ * Projects unique identifier
1757
+ * @type {string}
1758
+ * @memberof ProjectsApiDeleteProject
1759
+ */
1760
+ readonly project: string
1761
+ }
1762
+
1763
+ /**
1764
+ * Request parameters for deleteUser operation in ProjectsApi.
1765
+ * @export
1766
+ * @interface ProjectsApiDeleteUserRequest
1767
+ */
1768
+ export interface ProjectsApiDeleteUserRequest {
1769
+ /**
1770
+ * Projects unique identifier
1771
+ * @type {string}
1772
+ * @memberof ProjectsApiDeleteUser
1773
+ */
1774
+ readonly project: string
1775
+
1776
+ /**
1777
+ * the unique id of the user
1778
+ * @type {string}
1779
+ * @memberof ProjectsApiDeleteUser
1780
+ */
1781
+ readonly user: string
1782
+ }
1783
+
1784
+ /**
1785
+ * Request parameters for getIntegration operation in ProjectsApi.
1786
+ * @export
1787
+ * @interface ProjectsApiGetIntegrationRequest
1788
+ */
1789
+ export interface ProjectsApiGetIntegrationRequest {
1790
+ /**
1791
+ * Projects unique identifier
1792
+ * @type {string}
1793
+ * @memberof ProjectsApiGetIntegration
1794
+ */
1795
+ readonly project: string
1796
+
1797
+ /**
1798
+ * Integrations unique code
1799
+ * @type {string}
1800
+ * @memberof ProjectsApiGetIntegration
1801
+ */
1802
+ readonly integration: string
1803
+ }
1804
+
1805
+ /**
1806
+ * Request parameters for getIntegrations operation in ProjectsApi.
1807
+ * @export
1808
+ * @interface ProjectsApiGetIntegrationsRequest
1809
+ */
1810
+ export interface ProjectsApiGetIntegrationsRequest {
1811
+ /**
1812
+ * Projects unique identifier
1813
+ * @type {string}
1814
+ * @memberof ProjectsApiGetIntegrations
1815
+ */
1816
+ readonly project: string
1817
+
1818
+ /**
1819
+ * Include soft deleted integrations
1820
+ * @type {string}
1821
+ * @memberof ProjectsApiGetIntegrations
1822
+ */
1823
+ readonly withUninstalled?: string
1824
+ }
1825
+
1826
+ /**
1827
+ * Request parameters for getInvites operation in ProjectsApi.
1828
+ * @export
1829
+ * @interface ProjectsApiGetInvitesRequest
1830
+ */
1831
+ export interface ProjectsApiGetInvitesRequest {
1832
+ /**
1833
+ * Projects unique identifier
1834
+ * @type {string}
1835
+ * @memberof ProjectsApiGetInvites
1836
+ */
1837
+ readonly project: string
1838
+
1839
+ /**
1840
+ * Search term used to filter results by
1841
+ * @type {string}
1842
+ * @memberof ProjectsApiGetInvites
1843
+ */
1844
+ readonly search?: string
1845
+
1846
+ /**
1847
+ * Page reference token
1848
+ * @type {number}
1849
+ * @memberof ProjectsApiGetInvites
1850
+ */
1851
+ readonly pageToken?: number
1852
+
1853
+ /**
1854
+ * 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.
1855
+ * @type {number}
1856
+ * @memberof ProjectsApiGetInvites
1857
+ */
1858
+ readonly pageSize?: number
1859
+ }
1860
+
1861
+ /**
1862
+ * Request parameters for getProject operation in ProjectsApi.
1863
+ * @export
1864
+ * @interface ProjectsApiGetProjectRequest
1865
+ */
1866
+ export interface ProjectsApiGetProjectRequest {
1867
+ /**
1868
+ * Projects unique identifier
1869
+ * @type {string}
1870
+ * @memberof ProjectsApiGetProject
1871
+ */
1872
+ readonly project: string
1873
+ }
1874
+
1875
+ /**
1876
+ * Request parameters for getUser operation in ProjectsApi.
1877
+ * @export
1878
+ * @interface ProjectsApiGetUserRequest
1879
+ */
1880
+ export interface ProjectsApiGetUserRequest {
1881
+ /**
1882
+ * Projects unique identifier
1883
+ * @type {string}
1884
+ * @memberof ProjectsApiGetUser
1885
+ */
1886
+ readonly project: string
1887
+
1888
+ /**
1889
+ * the unique id of the user
1890
+ * @type {string}
1891
+ * @memberof ProjectsApiGetUser
1892
+ */
1893
+ readonly user: string
1894
+ }
1895
+
1896
+ /**
1897
+ * Request parameters for getUsers operation in ProjectsApi.
1898
+ * @export
1899
+ * @interface ProjectsApiGetUsersRequest
1900
+ */
1901
+ export interface ProjectsApiGetUsersRequest {
1902
+ /**
1903
+ * Projects unique identifier
1904
+ * @type {string}
1905
+ * @memberof ProjectsApiGetUsers
1906
+ */
1907
+ readonly project: string
1908
+
1909
+ /**
1910
+ * Search term used to filter results by
1911
+ * @type {string}
1912
+ * @memberof ProjectsApiGetUsers
1913
+ */
1914
+ readonly search?: string
1915
+
1916
+ /**
1917
+ * Page reference token
1918
+ * @type {number}
1919
+ * @memberof ProjectsApiGetUsers
1920
+ */
1921
+ readonly pageToken?: number
1922
+
1923
+ /**
1924
+ * 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.
1925
+ * @type {number}
1926
+ * @memberof ProjectsApiGetUsers
1927
+ */
1928
+ readonly pageSize?: number
1929
+ }
1930
+
1931
+ /**
1932
+ * Request parameters for installIntegration operation in ProjectsApi.
1933
+ * @export
1934
+ * @interface ProjectsApiInstallIntegrationRequest
1935
+ */
1936
+ export interface ProjectsApiInstallIntegrationRequest {
1937
+ /**
1938
+ * Projects unique identifier
1939
+ * @type {string}
1940
+ * @memberof ProjectsApiInstallIntegration
1941
+ */
1942
+ readonly project: string
1943
+
1944
+ /**
1945
+ * Integrations unique code
1946
+ * @type {string}
1947
+ * @memberof ProjectsApiInstallIntegration
1948
+ */
1949
+ readonly integration: string
1950
+ }
1951
+
1952
+ /**
1953
+ * Request parameters for installTemplate operation in ProjectsApi.
1954
+ * @export
1955
+ * @interface ProjectsApiInstallTemplateRequest
1956
+ */
1957
+ export interface ProjectsApiInstallTemplateRequest {
1958
+ /**
1959
+ * Projects unique identifier
1960
+ * @type {string}
1961
+ * @memberof ProjectsApiInstallTemplate
1962
+ */
1963
+ readonly project: string
1964
+
1965
+ /**
1966
+ * Templates unique code
1967
+ * @type {string}
1968
+ * @memberof ProjectsApiInstallTemplate
1969
+ */
1970
+ readonly template: string
1971
+
1972
+ /**
1973
+ * Request body to install template
1974
+ * @type {InstallTemplateRequest}
1975
+ * @memberof ProjectsApiInstallTemplate
1976
+ */
1977
+ readonly installTemplateRequest: InstallTemplateRequest
1978
+ }
1979
+
1980
+ /**
1981
+ * Request parameters for setupIntegration operation in ProjectsApi.
1982
+ * @export
1983
+ * @interface ProjectsApiSetupIntegrationRequest
1984
+ */
1985
+ export interface ProjectsApiSetupIntegrationRequest {
1986
+ /**
1987
+ * Projects unique identifier
1988
+ * @type {string}
1989
+ * @memberof ProjectsApiSetupIntegration
1990
+ */
1991
+ readonly project: string
1992
+
1993
+ /**
1994
+ * Integrations unique code
1995
+ * @type {string}
1996
+ * @memberof ProjectsApiSetupIntegration
1997
+ */
1998
+ readonly integration: string
1999
+
2000
+ /**
2001
+ * Request body to setup integration
2002
+ * @type {SetupIntegrationRequest}
2003
+ * @memberof ProjectsApiSetupIntegration
2004
+ */
2005
+ readonly setupIntegrationRequest: SetupIntegrationRequest
2006
+ }
2007
+
2008
+ /**
2009
+ * Request parameters for uninstallIntegration operation in ProjectsApi.
2010
+ * @export
2011
+ * @interface ProjectsApiUninstallIntegrationRequest
2012
+ */
2013
+ export interface ProjectsApiUninstallIntegrationRequest {
2014
+ /**
2015
+ * Projects unique identifier
2016
+ * @type {string}
2017
+ * @memberof ProjectsApiUninstallIntegration
2018
+ */
2019
+ readonly project: string
2020
+
2021
+ /**
2022
+ * Integrations unique code
2023
+ * @type {string}
2024
+ * @memberof ProjectsApiUninstallIntegration
2025
+ */
2026
+ readonly integration: string
2027
+ }
2028
+
2029
+ /**
2030
+ * Request parameters for updateProject operation in ProjectsApi.
2031
+ * @export
2032
+ * @interface ProjectsApiUpdateProjectRequest
2033
+ */
2034
+ export interface ProjectsApiUpdateProjectRequest {
2035
+ /**
2036
+ * Projects unique identifier
2037
+ * @type {string}
2038
+ * @memberof ProjectsApiUpdateProject
2039
+ */
2040
+ readonly project: string
2041
+
2042
+ /**
2043
+ * Updated project data
2044
+ * @type {UpdateProjectRequest}
2045
+ * @memberof ProjectsApiUpdateProject
2046
+ */
2047
+ readonly updateProjectRequest: UpdateProjectRequest
2048
+ }
2049
+
2050
+ /**
2051
+ * ProjectsApi - object-oriented interface
2052
+ * @export
2053
+ * @class ProjectsApi
2054
+ * @extends {BaseAPI}
2055
+ */
2056
+ export class ProjectsApi extends BaseAPI {
2057
+ /**
2058
+ * Creates an invite for the project
2059
+ * @summary Creates an invite
2060
+ * @param {ProjectsApiCreateInviteRequest} requestParameters Request parameters.
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ * @memberof ProjectsApi
2064
+ */
2065
+ public createInvite(requestParameters: ProjectsApiCreateInviteRequest, options?: RawAxiosRequestConfig) {
2066
+ return ProjectsApiFp(this.configuration).createInvite(requestParameters.project, requestParameters.createInviteRequest, options).then((request) => request(this.axios, this.basePath));
2067
+ }
2068
+
2069
+ /**
2070
+ * Create a new projects
2071
+ * @summary Create project
2072
+ * @param {ProjectsApiCreateProjectRequest} requestParameters Request parameters.
2073
+ * @param {*} [options] Override http request option.
2074
+ * @throws {RequiredError}
2075
+ * @memberof ProjectsApi
2076
+ */
2077
+ public createProject(requestParameters: ProjectsApiCreateProjectRequest, options?: RawAxiosRequestConfig) {
2078
+ return ProjectsApiFp(this.configuration).createProject(requestParameters.createProjectRequest, options).then((request) => request(this.axios, this.basePath));
2079
+ }
2080
+
2081
+ /**
2082
+ * Deletes an invite to the project
2083
+ * @summary Deletes an invite
2084
+ * @param {ProjectsApiDeleteInviteRequest} requestParameters Request parameters.
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ * @memberof ProjectsApi
2088
+ */
2089
+ public deleteInvite(requestParameters: ProjectsApiDeleteInviteRequest, options?: RawAxiosRequestConfig) {
2090
+ return ProjectsApiFp(this.configuration).deleteInvite(requestParameters.project, requestParameters.invite, options).then((request) => request(this.axios, this.basePath));
2091
+ }
2092
+
2093
+ /**
2094
+ * Delete a project
2095
+ * @summary Delete project
2096
+ * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters.
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ * @memberof ProjectsApi
2100
+ */
2101
+ public deleteProject(requestParameters: ProjectsApiDeleteProjectRequest, options?: RawAxiosRequestConfig) {
2102
+ return ProjectsApiFp(this.configuration).deleteProject(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2103
+ }
2104
+
2105
+ /**
2106
+ * Delete a project user by ID
2107
+ * @summary Delete a user by ID
2108
+ * @param {ProjectsApiDeleteUserRequest} requestParameters Request parameters.
2109
+ * @param {*} [options] Override http request option.
2110
+ * @throws {RequiredError}
2111
+ * @memberof ProjectsApi
2112
+ */
2113
+ public deleteUser(requestParameters: ProjectsApiDeleteUserRequest, options?: RawAxiosRequestConfig) {
2114
+ return ProjectsApiFp(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
2115
+ }
2116
+
2117
+ /**
2118
+ * Get an integration
2119
+ * @summary Get integration
2120
+ * @param {ProjectsApiGetIntegrationRequest} requestParameters Request parameters.
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ * @memberof ProjectsApi
2124
+ */
2125
+ public getIntegration(requestParameters: ProjectsApiGetIntegrationRequest, options?: RawAxiosRequestConfig) {
2126
+ return ProjectsApiFp(this.configuration).getIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
2127
+ }
2128
+
2129
+ /**
2130
+ * List all integrations installed on a project
2131
+ * @summary List integrations
2132
+ * @param {ProjectsApiGetIntegrationsRequest} requestParameters Request parameters.
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ * @memberof ProjectsApi
2136
+ */
2137
+ public getIntegrations(requestParameters: ProjectsApiGetIntegrationsRequest, options?: RawAxiosRequestConfig) {
2138
+ return ProjectsApiFp(this.configuration).getIntegrations(requestParameters.project, requestParameters.withUninstalled, options).then((request) => request(this.axios, this.basePath));
2139
+ }
2140
+
2141
+ /**
2142
+ * List the invites associated with a project
2143
+ * @summary List Invites
2144
+ * @param {ProjectsApiGetInvitesRequest} requestParameters Request parameters.
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ * @memberof ProjectsApi
2148
+ */
2149
+ public getInvites(requestParameters: ProjectsApiGetInvitesRequest, options?: RawAxiosRequestConfig) {
2150
+ return ProjectsApiFp(this.configuration).getInvites(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2151
+ }
2152
+
2153
+ /**
2154
+ * Get a project
2155
+ * @summary Get project
2156
+ * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters.
2157
+ * @param {*} [options] Override http request option.
2158
+ * @throws {RequiredError}
2159
+ * @memberof ProjectsApi
2160
+ */
2161
+ public getProject(requestParameters: ProjectsApiGetProjectRequest, options?: RawAxiosRequestConfig) {
2162
+ return ProjectsApiFp(this.configuration).getProject(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2163
+ }
2164
+
2165
+ /**
2166
+ * List all projects available
2167
+ * @summary List projects
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ * @memberof ProjectsApi
2171
+ */
2172
+ public getProjects(options?: RawAxiosRequestConfig) {
2173
+ return ProjectsApiFp(this.configuration).getProjects(options).then((request) => request(this.axios, this.basePath));
2174
+ }
2175
+
2176
+ /**
2177
+ * Get a project user by id
2178
+ * @summary Get a user
2179
+ * @param {ProjectsApiGetUserRequest} requestParameters Request parameters.
2180
+ * @param {*} [options] Override http request option.
2181
+ * @throws {RequiredError}
2182
+ * @memberof ProjectsApi
2183
+ */
2184
+ public getUser(requestParameters: ProjectsApiGetUserRequest, options?: RawAxiosRequestConfig) {
2185
+ return ProjectsApiFp(this.configuration).getUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
2186
+ }
2187
+
2188
+ /**
2189
+ * List the users associated with a project
2190
+ * @summary List project users
2191
+ * @param {ProjectsApiGetUsersRequest} requestParameters Request parameters.
2192
+ * @param {*} [options] Override http request option.
2193
+ * @throws {RequiredError}
2194
+ * @memberof ProjectsApi
2195
+ */
2196
+ public getUsers(requestParameters: ProjectsApiGetUsersRequest, options?: RawAxiosRequestConfig) {
2197
+ return ProjectsApiFp(this.configuration).getUsers(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2198
+ }
2199
+
2200
+ /**
2201
+ * Install an integration on the project
2202
+ * @summary Install integration
2203
+ * @param {ProjectsApiInstallIntegrationRequest} requestParameters Request parameters.
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ * @memberof ProjectsApi
2207
+ */
2208
+ public installIntegration(requestParameters: ProjectsApiInstallIntegrationRequest, options?: RawAxiosRequestConfig) {
2209
+ return ProjectsApiFp(this.configuration).installIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
2210
+ }
2211
+
2212
+ /**
2213
+ * Install an integration template on the project
2214
+ * @summary Install integration template
2215
+ * @param {ProjectsApiInstallTemplateRequest} requestParameters Request parameters.
2216
+ * @param {*} [options] Override http request option.
2217
+ * @throws {RequiredError}
2218
+ * @memberof ProjectsApi
2219
+ */
2220
+ public installTemplate(requestParameters: ProjectsApiInstallTemplateRequest, options?: RawAxiosRequestConfig) {
2221
+ return ProjectsApiFp(this.configuration).installTemplate(requestParameters.project, requestParameters.template, requestParameters.installTemplateRequest, options).then((request) => request(this.axios, this.basePath));
2222
+ }
2223
+
2224
+ /**
2225
+ * Setup an integration on the project
2226
+ * @summary Setup integration
2227
+ * @param {ProjectsApiSetupIntegrationRequest} requestParameters Request parameters.
2228
+ * @param {*} [options] Override http request option.
2229
+ * @throws {RequiredError}
2230
+ * @memberof ProjectsApi
2231
+ */
2232
+ public setupIntegration(requestParameters: ProjectsApiSetupIntegrationRequest, options?: RawAxiosRequestConfig) {
2233
+ return ProjectsApiFp(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
2234
+ }
2235
+
2236
+ /**
2237
+ * Uninstall a projects integration
2238
+ * @summary Uninstall integration
2239
+ * @param {ProjectsApiUninstallIntegrationRequest} requestParameters Request parameters.
2240
+ * @param {*} [options] Override http request option.
2241
+ * @throws {RequiredError}
2242
+ * @memberof ProjectsApi
2243
+ */
2244
+ public uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig) {
2245
+ return ProjectsApiFp(this.configuration).uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
2246
+ }
2247
+
2248
+ /**
2249
+ * Update a project
2250
+ * @summary Update project
2251
+ * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters.
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ * @memberof ProjectsApi
2255
+ */
2256
+ public updateProject(requestParameters: ProjectsApiUpdateProjectRequest, options?: RawAxiosRequestConfig) {
2257
+ return ProjectsApiFp(this.configuration).updateProject(requestParameters.project, requestParameters.updateProjectRequest, options).then((request) => request(this.axios, this.basePath));
2258
+ }
2259
+ }
2260
+
2261
+
2262
+