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