@teemill/projects 1.12.0 → 1.12.3
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 +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +4 -4
- package/dist/apis/ProjectsApi.js +517 -927
- package/dist/esm/apis/ProjectsApi.d.ts +241 -0
- package/dist/esm/apis/ProjectsApi.js +701 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/CreateInviteRequest.d.ts +31 -0
- package/dist/esm/models/CreateInviteRequest.js +40 -0
- package/dist/esm/models/CreateProjectRequest.d.ts +43 -0
- package/dist/esm/models/CreateProjectRequest.js +44 -0
- package/dist/esm/models/CreateUserRequest.d.ts +56 -0
- package/dist/esm/models/CreateUserRequest.js +55 -0
- package/dist/esm/models/CreateUserRequestAvatar.d.ts +31 -0
- package/dist/esm/models/CreateUserRequestAvatar.js +43 -0
- package/dist/esm/models/InstallTemplateRequest.d.ts +31 -0
- package/dist/esm/models/InstallTemplateRequest.js +38 -0
- package/dist/esm/models/Integration.d.ts +49 -0
- package/dist/esm/models/Integration.js +47 -0
- package/dist/esm/models/IntegrationInfo.d.ts +49 -0
- package/dist/esm/models/IntegrationInfo.js +52 -0
- package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationsResponse.js +41 -0
- package/dist/esm/models/Project.d.ts +50 -0
- package/dist/esm/models/Project.js +49 -0
- package/dist/esm/models/ProjectInvite.d.ts +56 -0
- package/dist/esm/models/ProjectInvite.js +57 -0
- package/dist/esm/models/ProjectInvites.d.ts +38 -0
- package/dist/esm/models/ProjectInvites.js +45 -0
- package/dist/esm/models/ProjectLogo.d.ts +37 -0
- package/dist/esm/models/ProjectLogo.js +40 -0
- package/dist/esm/models/ProjectUser.d.ts +83 -0
- package/dist/esm/models/ProjectUser.js +75 -0
- package/dist/esm/models/ProjectUserAvatar.d.ts +31 -0
- package/dist/esm/models/ProjectUserAvatar.js +38 -0
- package/dist/esm/models/ProjectUsers.d.ts +38 -0
- package/dist/esm/models/ProjectUsers.js +45 -0
- package/dist/esm/models/ProjectsResponse.d.ts +32 -0
- package/dist/esm/models/ProjectsResponse.js +41 -0
- package/dist/esm/models/SetupIntegrationRequest.d.ts +31 -0
- package/dist/esm/models/SetupIntegrationRequest.js +40 -0
- package/dist/esm/models/UpdateProjectRequest.d.ts +31 -0
- package/dist/esm/models/UpdateProjectRequest.js +38 -0
- package/dist/esm/models/UpdateUserRequest.d.ts +56 -0
- package/dist/esm/models/UpdateUserRequest.js +52 -0
- package/dist/esm/models/UpdateUserRequestAvatar.d.ts +31 -0
- package/dist/esm/models/UpdateUserRequestAvatar.js +43 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateInviteRequest.d.ts +1 -1
- package/dist/models/CreateInviteRequest.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +1 -1
- package/dist/models/CreateProjectRequest.js +1 -1
- package/dist/models/CreateUserRequest.js +3 -3
- package/dist/models/CreateUserRequestAvatar.js +2 -2
- package/dist/models/InstallTemplateRequest.d.ts +1 -1
- package/dist/models/InstallTemplateRequest.js +1 -1
- package/dist/models/Integration.d.ts +2 -2
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +2 -2
- package/dist/models/Project.d.ts +2 -2
- package/dist/models/Project.js +3 -5
- package/dist/models/ProjectInvite.d.ts +1 -1
- package/dist/models/ProjectInvite.js +2 -2
- package/dist/models/ProjectInvites.d.ts +1 -1
- package/dist/models/ProjectInvites.js +2 -2
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectUser.d.ts +7 -1
- package/dist/models/ProjectUser.js +6 -2
- package/dist/models/ProjectUserAvatar.d.ts +1 -1
- package/dist/models/ProjectUserAvatar.js +1 -1
- package/dist/models/ProjectUsers.d.ts +1 -1
- package/dist/models/ProjectUsers.js +2 -2
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +2 -2
- package/dist/models/SetupIntegrationRequest.d.ts +1 -1
- package/dist/models/SetupIntegrationRequest.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/models/UpdateUserRequest.js +3 -3
- package/dist/models/UpdateUserRequestAvatar.js +2 -2
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/ProjectsApi.ts +6 -8
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateInviteRequest.ts +1 -1
- package/src/models/CreateProjectRequest.ts +1 -1
- package/src/models/InstallTemplateRequest.ts +1 -1
- package/src/models/Integration.ts +2 -2
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +3 -4
- package/src/models/ProjectInvite.ts +1 -1
- package/src/models/ProjectInvites.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectUser.ts +10 -1
- package/src/models/ProjectUserAvatar.ts +1 -1
- package/src/models/ProjectUsers.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/SetupIntegrationRequest.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -5,39 +5,13 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.12.
|
|
8
|
+
* The version of the OpenAPI document: 1.12.3
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
15
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
16
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
17
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -47,1069 +21,685 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
47
21
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
22
|
});
|
|
49
23
|
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
25
|
exports.ProjectsApi = void 0;
|
|
79
|
-
|
|
80
|
-
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
81
28
|
/**
|
|
82
29
|
*
|
|
83
30
|
*/
|
|
84
|
-
|
|
85
|
-
__extends(ProjectsApi, _super);
|
|
86
|
-
function ProjectsApi() {
|
|
87
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
88
|
-
}
|
|
31
|
+
class ProjectsApi extends runtime.BaseAPI {
|
|
89
32
|
/**
|
|
90
33
|
* Creates an invite for the project
|
|
91
34
|
* Creates an invite
|
|
92
35
|
*/
|
|
93
|
-
|
|
94
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
120
|
-
}
|
|
121
|
-
return [4 /*yield*/, this.request({
|
|
122
|
-
path: "/v1/projects/{project}/invites".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
123
|
-
method: 'POST',
|
|
124
|
-
headers: headerParameters,
|
|
125
|
-
query: queryParameters,
|
|
126
|
-
body: (0, index_1.CreateInviteRequestToJSON)(requestParameters.createInviteRequest),
|
|
127
|
-
}, initOverrides)];
|
|
128
|
-
case 3:
|
|
129
|
-
response = _c.sent();
|
|
130
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
131
|
-
}
|
|
132
|
-
});
|
|
36
|
+
createInviteRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
39
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createInvite.');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
|
|
42
|
+
throw new runtime.RequiredError('createInviteRequest', 'Required parameter requestParameters.createInviteRequest was null or undefined when calling createInvite.');
|
|
43
|
+
}
|
|
44
|
+
const queryParameters = {};
|
|
45
|
+
const headerParameters = {};
|
|
46
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
// oauth required
|
|
49
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
50
|
+
}
|
|
51
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
52
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
53
|
+
}
|
|
54
|
+
const response = yield this.request({
|
|
55
|
+
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
56
|
+
method: 'POST',
|
|
57
|
+
headers: headerParameters,
|
|
58
|
+
query: queryParameters,
|
|
59
|
+
body: (0, index_1.CreateInviteRequestToJSON)(requestParameters.createInviteRequest),
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.VoidApiResponse(response);
|
|
133
62
|
});
|
|
134
|
-
}
|
|
63
|
+
}
|
|
135
64
|
/**
|
|
136
65
|
* Creates an invite for the project
|
|
137
66
|
* Creates an invite
|
|
138
67
|
*/
|
|
139
|
-
|
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
project: project, createInviteRequest: createInviteRequest,
|
|
145
|
-
}, initOverrides)];
|
|
146
|
-
case 1:
|
|
147
|
-
_a.sent();
|
|
148
|
-
return [2 /*return*/];
|
|
149
|
-
}
|
|
150
|
-
});
|
|
68
|
+
createInvite(project, createInviteRequest, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
yield this.createInviteRaw({
|
|
71
|
+
project: project, createInviteRequest: createInviteRequest,
|
|
72
|
+
}, initOverrides);
|
|
151
73
|
});
|
|
152
|
-
}
|
|
74
|
+
}
|
|
153
75
|
/**
|
|
154
76
|
* Create a new projects
|
|
155
77
|
* Create project
|
|
156
78
|
*/
|
|
157
|
-
|
|
158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
181
|
-
}
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/v1/projects",
|
|
184
|
-
method: 'POST',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
body: (0, index_1.CreateProjectRequestToJSON)(requestParameters.createProjectRequest),
|
|
188
|
-
}, initOverrides)];
|
|
189
|
-
case 3:
|
|
190
|
-
response = _c.sent();
|
|
191
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
192
|
-
}
|
|
193
|
-
});
|
|
79
|
+
createProjectRaw(requestParameters, initOverrides) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
|
|
82
|
+
throw new runtime.RequiredError('createProjectRequest', 'Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
88
|
+
// oauth required
|
|
89
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
90
|
+
}
|
|
91
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
92
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
93
|
+
}
|
|
94
|
+
const response = yield this.request({
|
|
95
|
+
path: `/v1/projects`,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
body: (0, index_1.CreateProjectRequestToJSON)(requestParameters.createProjectRequest),
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
|
|
194
102
|
});
|
|
195
|
-
}
|
|
103
|
+
}
|
|
196
104
|
/**
|
|
197
105
|
* Create a new projects
|
|
198
106
|
* Create project
|
|
199
107
|
*/
|
|
200
|
-
|
|
201
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
createProjectRequest: createProjectRequest,
|
|
207
|
-
}, initOverrides)];
|
|
208
|
-
case 1:
|
|
209
|
-
response = _a.sent();
|
|
210
|
-
return [4 /*yield*/, response.value()];
|
|
211
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
108
|
+
createProject(createProjectRequest, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.createProjectRaw({
|
|
111
|
+
createProjectRequest: createProjectRequest,
|
|
112
|
+
}, initOverrides);
|
|
113
|
+
return yield response.value();
|
|
214
114
|
});
|
|
215
|
-
}
|
|
115
|
+
}
|
|
216
116
|
/**
|
|
217
117
|
* Deletes an invite to the project
|
|
218
118
|
* Deletes an invite
|
|
219
119
|
*/
|
|
220
|
-
|
|
221
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
245
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
246
|
-
}
|
|
247
|
-
return [4 /*yield*/, this.request({
|
|
248
|
-
path: "/v1/projects/{project}/invites/{invite}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("invite", "}"), encodeURIComponent(String(requestParameters.invite))),
|
|
249
|
-
method: 'DELETE',
|
|
250
|
-
headers: headerParameters,
|
|
251
|
-
query: queryParameters,
|
|
252
|
-
}, initOverrides)];
|
|
253
|
-
case 3:
|
|
254
|
-
response = _c.sent();
|
|
255
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
120
|
+
deleteInviteRaw(requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
123
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteInvite.');
|
|
124
|
+
}
|
|
125
|
+
if (requestParameters.invite === null || requestParameters.invite === undefined) {
|
|
126
|
+
throw new runtime.RequiredError('invite', 'Required parameter requestParameters.invite was null or undefined when calling deleteInvite.');
|
|
127
|
+
}
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
// oauth required
|
|
132
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
133
|
+
}
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
136
|
+
}
|
|
137
|
+
const response = yield this.request({
|
|
138
|
+
path: `/v1/projects/{project}/invites/{invite}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"invite"}}`, encodeURIComponent(String(requestParameters.invite))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.VoidApiResponse(response);
|
|
258
144
|
});
|
|
259
|
-
}
|
|
145
|
+
}
|
|
260
146
|
/**
|
|
261
147
|
* Deletes an invite to the project
|
|
262
148
|
* Deletes an invite
|
|
263
149
|
*/
|
|
264
|
-
|
|
265
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
project: project, invite: invite,
|
|
270
|
-
}, initOverrides)];
|
|
271
|
-
case 1:
|
|
272
|
-
_a.sent();
|
|
273
|
-
return [2 /*return*/];
|
|
274
|
-
}
|
|
275
|
-
});
|
|
150
|
+
deleteInvite(project, invite, initOverrides) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
yield this.deleteInviteRaw({
|
|
153
|
+
project: project, invite: invite,
|
|
154
|
+
}, initOverrides);
|
|
276
155
|
});
|
|
277
|
-
}
|
|
156
|
+
}
|
|
278
157
|
/**
|
|
279
158
|
* Delete a project
|
|
280
159
|
* Delete project
|
|
281
160
|
*/
|
|
282
|
-
|
|
283
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
304
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
305
|
-
}
|
|
306
|
-
return [4 /*yield*/, this.request({
|
|
307
|
-
path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
308
|
-
method: 'DELETE',
|
|
309
|
-
headers: headerParameters,
|
|
310
|
-
query: queryParameters,
|
|
311
|
-
}, initOverrides)];
|
|
312
|
-
case 3:
|
|
313
|
-
response = _c.sent();
|
|
314
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
315
|
-
}
|
|
316
|
-
});
|
|
161
|
+
deleteProjectRaw(requestParameters, initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
164
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteProject.');
|
|
165
|
+
}
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
// oauth required
|
|
170
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
171
|
+
}
|
|
172
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
173
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
174
|
+
}
|
|
175
|
+
const response = yield this.request({
|
|
176
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
177
|
+
method: 'DELETE',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
}, initOverrides);
|
|
181
|
+
return new runtime.VoidApiResponse(response);
|
|
317
182
|
});
|
|
318
|
-
}
|
|
183
|
+
}
|
|
319
184
|
/**
|
|
320
185
|
* Delete a project
|
|
321
186
|
* Delete project
|
|
322
187
|
*/
|
|
323
|
-
|
|
324
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
case 0: return [4 /*yield*/, this.deleteProjectRaw({
|
|
329
|
-
project: project,
|
|
330
|
-
}, initOverrides)];
|
|
331
|
-
case 1:
|
|
332
|
-
response = _a.sent();
|
|
333
|
-
return [4 /*yield*/, response.value()];
|
|
334
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
335
|
-
}
|
|
336
|
-
});
|
|
188
|
+
deleteProject(project, initOverrides) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
yield this.deleteProjectRaw({
|
|
191
|
+
project: project,
|
|
192
|
+
}, initOverrides);
|
|
337
193
|
});
|
|
338
|
-
}
|
|
194
|
+
}
|
|
339
195
|
/**
|
|
340
196
|
* Delete a project user by ID
|
|
341
197
|
* Delete a user by ID
|
|
342
198
|
*/
|
|
343
|
-
|
|
344
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
369
|
-
}
|
|
370
|
-
return [4 /*yield*/, this.request({
|
|
371
|
-
path: "/v1/projects/{project}/users/{user}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("user", "}"), encodeURIComponent(String(requestParameters.user))),
|
|
372
|
-
method: 'DELETE',
|
|
373
|
-
headers: headerParameters,
|
|
374
|
-
query: queryParameters,
|
|
375
|
-
}, initOverrides)];
|
|
376
|
-
case 3:
|
|
377
|
-
response = _c.sent();
|
|
378
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
379
|
-
}
|
|
380
|
-
});
|
|
199
|
+
deleteUserRaw(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
202
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deleteUser.');
|
|
203
|
+
}
|
|
204
|
+
if (requestParameters.user === null || requestParameters.user === undefined) {
|
|
205
|
+
throw new runtime.RequiredError('user', 'Required parameter requestParameters.user was null or undefined when calling deleteUser.');
|
|
206
|
+
}
|
|
207
|
+
const queryParameters = {};
|
|
208
|
+
const headerParameters = {};
|
|
209
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
210
|
+
// oauth required
|
|
211
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
212
|
+
}
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
215
|
+
}
|
|
216
|
+
const response = yield this.request({
|
|
217
|
+
path: `/v1/projects/{project}/users/{user}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))),
|
|
218
|
+
method: 'DELETE',
|
|
219
|
+
headers: headerParameters,
|
|
220
|
+
query: queryParameters,
|
|
221
|
+
}, initOverrides);
|
|
222
|
+
return new runtime.VoidApiResponse(response);
|
|
381
223
|
});
|
|
382
|
-
}
|
|
224
|
+
}
|
|
383
225
|
/**
|
|
384
226
|
* Delete a project user by ID
|
|
385
227
|
* Delete a user by ID
|
|
386
228
|
*/
|
|
387
|
-
|
|
388
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
project: project, user: user,
|
|
393
|
-
}, initOverrides)];
|
|
394
|
-
case 1:
|
|
395
|
-
_a.sent();
|
|
396
|
-
return [2 /*return*/];
|
|
397
|
-
}
|
|
398
|
-
});
|
|
229
|
+
deleteUser(project, user, initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
yield this.deleteUserRaw({
|
|
232
|
+
project: project, user: user,
|
|
233
|
+
}, initOverrides);
|
|
399
234
|
});
|
|
400
|
-
}
|
|
235
|
+
}
|
|
401
236
|
/**
|
|
402
237
|
* Get an integration
|
|
403
238
|
* Get integration
|
|
404
239
|
*/
|
|
405
|
-
|
|
406
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
430
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
431
|
-
}
|
|
432
|
-
return [4 /*yield*/, this.request({
|
|
433
|
-
path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
434
|
-
method: 'GET',
|
|
435
|
-
headers: headerParameters,
|
|
436
|
-
query: queryParameters,
|
|
437
|
-
}, initOverrides)];
|
|
438
|
-
case 3:
|
|
439
|
-
response = _c.sent();
|
|
440
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
441
|
-
}
|
|
442
|
-
});
|
|
240
|
+
getIntegrationRaw(requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
243
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegration.');
|
|
244
|
+
}
|
|
245
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
246
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
|
|
247
|
+
}
|
|
248
|
+
const queryParameters = {};
|
|
249
|
+
const headerParameters = {};
|
|
250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
251
|
+
// oauth required
|
|
252
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
253
|
+
}
|
|
254
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
255
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
256
|
+
}
|
|
257
|
+
const response = yield this.request({
|
|
258
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
259
|
+
method: 'GET',
|
|
260
|
+
headers: headerParameters,
|
|
261
|
+
query: queryParameters,
|
|
262
|
+
}, initOverrides);
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationFromJSON)(jsonValue));
|
|
443
264
|
});
|
|
444
|
-
}
|
|
265
|
+
}
|
|
445
266
|
/**
|
|
446
267
|
* Get an integration
|
|
447
268
|
* Get integration
|
|
448
269
|
*/
|
|
449
|
-
|
|
450
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
project: project, integration: integration,
|
|
456
|
-
}, initOverrides)];
|
|
457
|
-
case 1:
|
|
458
|
-
response = _a.sent();
|
|
459
|
-
return [4 /*yield*/, response.value()];
|
|
460
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
461
|
-
}
|
|
462
|
-
});
|
|
270
|
+
getIntegration(project, integration, initOverrides) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
const response = yield this.getIntegrationRaw({
|
|
273
|
+
project: project, integration: integration,
|
|
274
|
+
}, initOverrides);
|
|
275
|
+
return yield response.value();
|
|
463
276
|
});
|
|
464
|
-
}
|
|
277
|
+
}
|
|
465
278
|
/**
|
|
466
279
|
* List all integrations installed on a project
|
|
467
280
|
* List integrations
|
|
468
281
|
*/
|
|
469
|
-
|
|
470
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
494
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
495
|
-
}
|
|
496
|
-
return [4 /*yield*/, this.request({
|
|
497
|
-
path: "/v1/projects/{project}/integrations".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
498
|
-
method: 'GET',
|
|
499
|
-
headers: headerParameters,
|
|
500
|
-
query: queryParameters,
|
|
501
|
-
}, initOverrides)];
|
|
502
|
-
case 3:
|
|
503
|
-
response = _c.sent();
|
|
504
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
505
|
-
}
|
|
506
|
-
});
|
|
282
|
+
getIntegrationsRaw(requestParameters, initOverrides) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
285
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getIntegrations.');
|
|
286
|
+
}
|
|
287
|
+
const queryParameters = {};
|
|
288
|
+
if (requestParameters.withUninstalled !== undefined) {
|
|
289
|
+
queryParameters['withUninstalled'] = requestParameters.withUninstalled;
|
|
290
|
+
}
|
|
291
|
+
const headerParameters = {};
|
|
292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
293
|
+
// oauth required
|
|
294
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
295
|
+
}
|
|
296
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
297
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
298
|
+
}
|
|
299
|
+
const response = yield this.request({
|
|
300
|
+
path: `/v1/projects/{project}/integrations`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
301
|
+
method: 'GET',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
}, initOverrides);
|
|
305
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationsResponseFromJSON)(jsonValue));
|
|
507
306
|
});
|
|
508
|
-
}
|
|
307
|
+
}
|
|
509
308
|
/**
|
|
510
309
|
* List all integrations installed on a project
|
|
511
310
|
* List integrations
|
|
512
311
|
*/
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
return __generator(this, function (_a) {
|
|
518
|
-
switch (_a.label) {
|
|
519
|
-
case 0: return [4 /*yield*/, this.getIntegrationsRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
520
|
-
case 1:
|
|
521
|
-
response = _a.sent();
|
|
522
|
-
return [4 /*yield*/, response.value()];
|
|
523
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
524
|
-
}
|
|
525
|
-
});
|
|
312
|
+
getIntegrations(project, optionalParameters = {}, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const response = yield this.getIntegrationsRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
315
|
+
return yield response.value();
|
|
526
316
|
});
|
|
527
|
-
}
|
|
317
|
+
}
|
|
528
318
|
/**
|
|
529
319
|
* List the invites associated with a project
|
|
530
320
|
* List Invites
|
|
531
321
|
*/
|
|
532
|
-
|
|
533
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
563
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
564
|
-
}
|
|
565
|
-
return [4 /*yield*/, this.request({
|
|
566
|
-
path: "/v1/projects/{project}/invites".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
567
|
-
method: 'GET',
|
|
568
|
-
headers: headerParameters,
|
|
569
|
-
query: queryParameters,
|
|
570
|
-
}, initOverrides)];
|
|
571
|
-
case 3:
|
|
572
|
-
response = _c.sent();
|
|
573
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectInvitesFromJSON)(jsonValue); })];
|
|
574
|
-
}
|
|
575
|
-
});
|
|
322
|
+
getInvitesRaw(requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
325
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getInvites.');
|
|
326
|
+
}
|
|
327
|
+
const queryParameters = {};
|
|
328
|
+
if (requestParameters.search !== undefined) {
|
|
329
|
+
queryParameters['search'] = requestParameters.search;
|
|
330
|
+
}
|
|
331
|
+
if (requestParameters.pageToken !== undefined) {
|
|
332
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
333
|
+
}
|
|
334
|
+
if (requestParameters.pageSize !== undefined) {
|
|
335
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
336
|
+
}
|
|
337
|
+
const headerParameters = {};
|
|
338
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
339
|
+
// oauth required
|
|
340
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
341
|
+
}
|
|
342
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
343
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
344
|
+
}
|
|
345
|
+
const response = yield this.request({
|
|
346
|
+
path: `/v1/projects/{project}/invites`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
347
|
+
method: 'GET',
|
|
348
|
+
headers: headerParameters,
|
|
349
|
+
query: queryParameters,
|
|
350
|
+
}, initOverrides);
|
|
351
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectInvitesFromJSON)(jsonValue));
|
|
576
352
|
});
|
|
577
|
-
}
|
|
353
|
+
}
|
|
578
354
|
/**
|
|
579
355
|
* List the invites associated with a project
|
|
580
356
|
* List Invites
|
|
581
357
|
*/
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
return __generator(this, function (_a) {
|
|
587
|
-
switch (_a.label) {
|
|
588
|
-
case 0: return [4 /*yield*/, this.getInvitesRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
589
|
-
case 1:
|
|
590
|
-
response = _a.sent();
|
|
591
|
-
return [4 /*yield*/, response.value()];
|
|
592
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
593
|
-
}
|
|
594
|
-
});
|
|
358
|
+
getInvites(project, optionalParameters = {}, initOverrides) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
const response = yield this.getInvitesRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
361
|
+
return yield response.value();
|
|
595
362
|
});
|
|
596
|
-
}
|
|
363
|
+
}
|
|
597
364
|
/**
|
|
598
365
|
* Get a project
|
|
599
366
|
* Get project
|
|
600
367
|
*/
|
|
601
|
-
|
|
602
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
623
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
624
|
-
}
|
|
625
|
-
return [4 /*yield*/, this.request({
|
|
626
|
-
path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
627
|
-
method: 'GET',
|
|
628
|
-
headers: headerParameters,
|
|
629
|
-
query: queryParameters,
|
|
630
|
-
}, initOverrides)];
|
|
631
|
-
case 3:
|
|
632
|
-
response = _c.sent();
|
|
633
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
634
|
-
}
|
|
635
|
-
});
|
|
368
|
+
getProjectRaw(requestParameters, initOverrides) {
|
|
369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
371
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getProject.');
|
|
372
|
+
}
|
|
373
|
+
const queryParameters = {};
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
376
|
+
// oauth required
|
|
377
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
378
|
+
}
|
|
379
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
380
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
381
|
+
}
|
|
382
|
+
const response = yield this.request({
|
|
383
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
384
|
+
method: 'GET',
|
|
385
|
+
headers: headerParameters,
|
|
386
|
+
query: queryParameters,
|
|
387
|
+
}, initOverrides);
|
|
388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
|
|
636
389
|
});
|
|
637
|
-
}
|
|
390
|
+
}
|
|
638
391
|
/**
|
|
639
392
|
* Get a project
|
|
640
393
|
* Get project
|
|
641
394
|
*/
|
|
642
|
-
|
|
643
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
project: project,
|
|
649
|
-
}, initOverrides)];
|
|
650
|
-
case 1:
|
|
651
|
-
response = _a.sent();
|
|
652
|
-
return [4 /*yield*/, response.value()];
|
|
653
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
654
|
-
}
|
|
655
|
-
});
|
|
395
|
+
getProject(project, initOverrides) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
const response = yield this.getProjectRaw({
|
|
398
|
+
project: project,
|
|
399
|
+
}, initOverrides);
|
|
400
|
+
return yield response.value();
|
|
656
401
|
});
|
|
657
|
-
}
|
|
402
|
+
}
|
|
658
403
|
/**
|
|
659
404
|
* List all projects available
|
|
660
405
|
* List projects
|
|
661
406
|
*/
|
|
662
|
-
|
|
663
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
681
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
682
|
-
}
|
|
683
|
-
return [4 /*yield*/, this.request({
|
|
684
|
-
path: "/v1/projects",
|
|
685
|
-
method: 'GET',
|
|
686
|
-
headers: headerParameters,
|
|
687
|
-
query: queryParameters,
|
|
688
|
-
}, initOverrides)];
|
|
689
|
-
case 3:
|
|
690
|
-
response = _c.sent();
|
|
691
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
|
|
692
|
-
}
|
|
693
|
-
});
|
|
407
|
+
getProjectsRaw(initOverrides) {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
const queryParameters = {};
|
|
410
|
+
const headerParameters = {};
|
|
411
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
412
|
+
// oauth required
|
|
413
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
414
|
+
}
|
|
415
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
416
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
417
|
+
}
|
|
418
|
+
const response = yield this.request({
|
|
419
|
+
path: `/v1/projects`,
|
|
420
|
+
method: 'GET',
|
|
421
|
+
headers: headerParameters,
|
|
422
|
+
query: queryParameters,
|
|
423
|
+
}, initOverrides);
|
|
424
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectsResponseFromJSON)(jsonValue));
|
|
694
425
|
});
|
|
695
|
-
}
|
|
426
|
+
}
|
|
696
427
|
/**
|
|
697
428
|
* List all projects available
|
|
698
429
|
* List projects
|
|
699
430
|
*/
|
|
700
|
-
|
|
701
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
702
|
-
|
|
703
|
-
return
|
|
704
|
-
switch (_a.label) {
|
|
705
|
-
case 0: return [4 /*yield*/, this.getProjectsRaw(initOverrides)];
|
|
706
|
-
case 1:
|
|
707
|
-
response = _a.sent();
|
|
708
|
-
return [4 /*yield*/, response.value()];
|
|
709
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
710
|
-
}
|
|
711
|
-
});
|
|
431
|
+
getProjects(initOverrides) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
const response = yield this.getProjectsRaw(initOverrides);
|
|
434
|
+
return yield response.value();
|
|
712
435
|
});
|
|
713
|
-
}
|
|
436
|
+
}
|
|
714
437
|
/**
|
|
715
438
|
* List the users associated with a project
|
|
716
439
|
* List project users
|
|
717
440
|
*/
|
|
718
|
-
|
|
719
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
749
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
750
|
-
}
|
|
751
|
-
return [4 /*yield*/, this.request({
|
|
752
|
-
path: "/v1/projects/{project}/users".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
753
|
-
method: 'GET',
|
|
754
|
-
headers: headerParameters,
|
|
755
|
-
query: queryParameters,
|
|
756
|
-
}, initOverrides)];
|
|
757
|
-
case 3:
|
|
758
|
-
response = _c.sent();
|
|
759
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectUsersFromJSON)(jsonValue); })];
|
|
760
|
-
}
|
|
761
|
-
});
|
|
441
|
+
getUsersRaw(requestParameters, initOverrides) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
444
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getUsers.');
|
|
445
|
+
}
|
|
446
|
+
const queryParameters = {};
|
|
447
|
+
if (requestParameters.search !== undefined) {
|
|
448
|
+
queryParameters['search'] = requestParameters.search;
|
|
449
|
+
}
|
|
450
|
+
if (requestParameters.pageToken !== undefined) {
|
|
451
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
452
|
+
}
|
|
453
|
+
if (requestParameters.pageSize !== undefined) {
|
|
454
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
455
|
+
}
|
|
456
|
+
const headerParameters = {};
|
|
457
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
458
|
+
// oauth required
|
|
459
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
460
|
+
}
|
|
461
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
462
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
463
|
+
}
|
|
464
|
+
const response = yield this.request({
|
|
465
|
+
path: `/v1/projects/{project}/users`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
466
|
+
method: 'GET',
|
|
467
|
+
headers: headerParameters,
|
|
468
|
+
query: queryParameters,
|
|
469
|
+
}, initOverrides);
|
|
470
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUsersFromJSON)(jsonValue));
|
|
762
471
|
});
|
|
763
|
-
}
|
|
472
|
+
}
|
|
764
473
|
/**
|
|
765
474
|
* List the users associated with a project
|
|
766
475
|
* List project users
|
|
767
476
|
*/
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
return __generator(this, function (_a) {
|
|
773
|
-
switch (_a.label) {
|
|
774
|
-
case 0: return [4 /*yield*/, this.getUsersRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
775
|
-
case 1:
|
|
776
|
-
response = _a.sent();
|
|
777
|
-
return [4 /*yield*/, response.value()];
|
|
778
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
779
|
-
}
|
|
780
|
-
});
|
|
477
|
+
getUsers(project, optionalParameters = {}, initOverrides) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
const response = yield this.getUsersRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
|
|
480
|
+
return yield response.value();
|
|
781
481
|
});
|
|
782
|
-
}
|
|
482
|
+
}
|
|
783
483
|
/**
|
|
784
484
|
* Install an integration on the project
|
|
785
485
|
* Install integration
|
|
786
486
|
*/
|
|
787
|
-
|
|
788
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
812
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
813
|
-
}
|
|
814
|
-
return [4 /*yield*/, this.request({
|
|
815
|
-
path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
816
|
-
method: 'POST',
|
|
817
|
-
headers: headerParameters,
|
|
818
|
-
query: queryParameters,
|
|
819
|
-
}, initOverrides)];
|
|
820
|
-
case 3:
|
|
821
|
-
response = _c.sent();
|
|
822
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
823
|
-
}
|
|
824
|
-
});
|
|
487
|
+
installIntegrationRaw(requestParameters, initOverrides) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
490
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installIntegration.');
|
|
491
|
+
}
|
|
492
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
493
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling installIntegration.');
|
|
494
|
+
}
|
|
495
|
+
const queryParameters = {};
|
|
496
|
+
const headerParameters = {};
|
|
497
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
498
|
+
// oauth required
|
|
499
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
500
|
+
}
|
|
501
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
502
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
503
|
+
}
|
|
504
|
+
const response = yield this.request({
|
|
505
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
506
|
+
method: 'POST',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
}, initOverrides);
|
|
510
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationFromJSON)(jsonValue));
|
|
825
511
|
});
|
|
826
|
-
}
|
|
512
|
+
}
|
|
827
513
|
/**
|
|
828
514
|
* Install an integration on the project
|
|
829
515
|
* Install integration
|
|
830
516
|
*/
|
|
831
|
-
|
|
832
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
project: project, integration: integration,
|
|
838
|
-
}, initOverrides)];
|
|
839
|
-
case 1:
|
|
840
|
-
response = _a.sent();
|
|
841
|
-
return [4 /*yield*/, response.value()];
|
|
842
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
843
|
-
}
|
|
844
|
-
});
|
|
517
|
+
installIntegration(project, integration, initOverrides) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
const response = yield this.installIntegrationRaw({
|
|
520
|
+
project: project, integration: integration,
|
|
521
|
+
}, initOverrides);
|
|
522
|
+
return yield response.value();
|
|
845
523
|
});
|
|
846
|
-
}
|
|
524
|
+
}
|
|
847
525
|
/**
|
|
848
526
|
* Install an integration template on the project
|
|
849
527
|
* Install integration template
|
|
850
528
|
*/
|
|
851
|
-
|
|
852
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
881
|
-
}
|
|
882
|
-
return [4 /*yield*/, this.request({
|
|
883
|
-
path: "/v1/projects/{project}/templates/{template}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("template", "}"), encodeURIComponent(String(requestParameters.template))),
|
|
884
|
-
method: 'POST',
|
|
885
|
-
headers: headerParameters,
|
|
886
|
-
query: queryParameters,
|
|
887
|
-
body: (0, index_1.InstallTemplateRequestToJSON)(requestParameters.installTemplateRequest),
|
|
888
|
-
}, initOverrides)];
|
|
889
|
-
case 3:
|
|
890
|
-
response = _c.sent();
|
|
891
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
892
|
-
}
|
|
893
|
-
});
|
|
529
|
+
installTemplateRaw(requestParameters, initOverrides) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
532
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
533
|
+
}
|
|
534
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
535
|
+
throw new runtime.RequiredError('template', 'Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
536
|
+
}
|
|
537
|
+
if (requestParameters.installTemplateRequest === null || requestParameters.installTemplateRequest === undefined) {
|
|
538
|
+
throw new runtime.RequiredError('installTemplateRequest', 'Required parameter requestParameters.installTemplateRequest was null or undefined when calling installTemplate.');
|
|
539
|
+
}
|
|
540
|
+
const queryParameters = {};
|
|
541
|
+
const headerParameters = {};
|
|
542
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
543
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
544
|
+
// oauth required
|
|
545
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
546
|
+
}
|
|
547
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
548
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
549
|
+
}
|
|
550
|
+
const response = yield this.request({
|
|
551
|
+
path: `/v1/projects/{project}/templates/{template}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"template"}}`, encodeURIComponent(String(requestParameters.template))),
|
|
552
|
+
method: 'POST',
|
|
553
|
+
headers: headerParameters,
|
|
554
|
+
query: queryParameters,
|
|
555
|
+
body: (0, index_1.InstallTemplateRequestToJSON)(requestParameters.installTemplateRequest),
|
|
556
|
+
}, initOverrides);
|
|
557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationsResponseFromJSON)(jsonValue));
|
|
894
558
|
});
|
|
895
|
-
}
|
|
559
|
+
}
|
|
896
560
|
/**
|
|
897
561
|
* Install an integration template on the project
|
|
898
562
|
* Install integration template
|
|
899
563
|
*/
|
|
900
|
-
|
|
901
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
project: project, template: template, installTemplateRequest: installTemplateRequest,
|
|
907
|
-
}, initOverrides)];
|
|
908
|
-
case 1:
|
|
909
|
-
response = _a.sent();
|
|
910
|
-
return [4 /*yield*/, response.value()];
|
|
911
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
912
|
-
}
|
|
913
|
-
});
|
|
564
|
+
installTemplate(project, template, installTemplateRequest, initOverrides) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
const response = yield this.installTemplateRaw({
|
|
567
|
+
project: project, template: template, installTemplateRequest: installTemplateRequest,
|
|
568
|
+
}, initOverrides);
|
|
569
|
+
return yield response.value();
|
|
914
570
|
});
|
|
915
|
-
}
|
|
571
|
+
}
|
|
916
572
|
/**
|
|
917
573
|
* Setup an integration on the project
|
|
918
574
|
* Setup integration
|
|
919
575
|
*/
|
|
920
|
-
|
|
921
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
950
|
-
}
|
|
951
|
-
return [4 /*yield*/, this.request({
|
|
952
|
-
path: "/v1/projects/{project}/integrations/{integration}/setup".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
953
|
-
method: 'POST',
|
|
954
|
-
headers: headerParameters,
|
|
955
|
-
query: queryParameters,
|
|
956
|
-
body: (0, index_1.SetupIntegrationRequestToJSON)(requestParameters.setupIntegrationRequest),
|
|
957
|
-
}, initOverrides)];
|
|
958
|
-
case 3:
|
|
959
|
-
response = _c.sent();
|
|
960
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
|
|
961
|
-
}
|
|
962
|
-
});
|
|
576
|
+
setupIntegrationRaw(requestParameters, initOverrides) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
579
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling setupIntegration.');
|
|
580
|
+
}
|
|
581
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
582
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling setupIntegration.');
|
|
583
|
+
}
|
|
584
|
+
if (requestParameters.setupIntegrationRequest === null || requestParameters.setupIntegrationRequest === undefined) {
|
|
585
|
+
throw new runtime.RequiredError('setupIntegrationRequest', 'Required parameter requestParameters.setupIntegrationRequest was null or undefined when calling setupIntegration.');
|
|
586
|
+
}
|
|
587
|
+
const queryParameters = {};
|
|
588
|
+
const headerParameters = {};
|
|
589
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
590
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
591
|
+
// oauth required
|
|
592
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
593
|
+
}
|
|
594
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
595
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
596
|
+
}
|
|
597
|
+
const response = yield this.request({
|
|
598
|
+
path: `/v1/projects/{project}/integrations/{integration}/setup`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
599
|
+
method: 'POST',
|
|
600
|
+
headers: headerParameters,
|
|
601
|
+
query: queryParameters,
|
|
602
|
+
body: (0, index_1.SetupIntegrationRequestToJSON)(requestParameters.setupIntegrationRequest),
|
|
603
|
+
}, initOverrides);
|
|
604
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationFromJSON)(jsonValue));
|
|
963
605
|
});
|
|
964
|
-
}
|
|
606
|
+
}
|
|
965
607
|
/**
|
|
966
608
|
* Setup an integration on the project
|
|
967
609
|
* Setup integration
|
|
968
610
|
*/
|
|
969
|
-
|
|
970
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
project: project, integration: integration, setupIntegrationRequest: setupIntegrationRequest,
|
|
976
|
-
}, initOverrides)];
|
|
977
|
-
case 1:
|
|
978
|
-
response = _a.sent();
|
|
979
|
-
return [4 /*yield*/, response.value()];
|
|
980
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
981
|
-
}
|
|
982
|
-
});
|
|
611
|
+
setupIntegration(project, integration, setupIntegrationRequest, initOverrides) {
|
|
612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
const response = yield this.setupIntegrationRaw({
|
|
614
|
+
project: project, integration: integration, setupIntegrationRequest: setupIntegrationRequest,
|
|
615
|
+
}, initOverrides);
|
|
616
|
+
return yield response.value();
|
|
983
617
|
});
|
|
984
|
-
}
|
|
618
|
+
}
|
|
985
619
|
/**
|
|
986
620
|
* Uninstall a projects integration
|
|
987
621
|
* Uninstall integration
|
|
988
622
|
*/
|
|
989
|
-
|
|
990
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1014
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1015
|
-
}
|
|
1016
|
-
return [4 /*yield*/, this.request({
|
|
1017
|
-
path: "/v1/projects/{project}/integrations/{integration}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
1018
|
-
method: 'DELETE',
|
|
1019
|
-
headers: headerParameters,
|
|
1020
|
-
query: queryParameters,
|
|
1021
|
-
}, initOverrides)];
|
|
1022
|
-
case 3:
|
|
1023
|
-
response = _c.sent();
|
|
1024
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1025
|
-
}
|
|
1026
|
-
});
|
|
623
|
+
uninstallIntegrationRaw(requestParameters, initOverrides) {
|
|
624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
626
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling uninstallIntegration.');
|
|
627
|
+
}
|
|
628
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
629
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling uninstallIntegration.');
|
|
630
|
+
}
|
|
631
|
+
const queryParameters = {};
|
|
632
|
+
const headerParameters = {};
|
|
633
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
634
|
+
// oauth required
|
|
635
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
636
|
+
}
|
|
637
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
639
|
+
}
|
|
640
|
+
const response = yield this.request({
|
|
641
|
+
path: `/v1/projects/{project}/integrations/{integration}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
642
|
+
method: 'DELETE',
|
|
643
|
+
headers: headerParameters,
|
|
644
|
+
query: queryParameters,
|
|
645
|
+
}, initOverrides);
|
|
646
|
+
return new runtime.VoidApiResponse(response);
|
|
1027
647
|
});
|
|
1028
|
-
}
|
|
648
|
+
}
|
|
1029
649
|
/**
|
|
1030
650
|
* Uninstall a projects integration
|
|
1031
651
|
* Uninstall integration
|
|
1032
652
|
*/
|
|
1033
|
-
|
|
1034
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
project: project, integration: integration,
|
|
1039
|
-
}, initOverrides)];
|
|
1040
|
-
case 1:
|
|
1041
|
-
_a.sent();
|
|
1042
|
-
return [2 /*return*/];
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
653
|
+
uninstallIntegration(project, integration, initOverrides) {
|
|
654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
655
|
+
yield this.uninstallIntegrationRaw({
|
|
656
|
+
project: project, integration: integration,
|
|
657
|
+
}, initOverrides);
|
|
1045
658
|
});
|
|
1046
|
-
}
|
|
659
|
+
}
|
|
1047
660
|
/**
|
|
1048
661
|
* Update a project
|
|
1049
662
|
* Update project
|
|
1050
663
|
*/
|
|
1051
|
-
|
|
1052
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
1078
|
-
}
|
|
1079
|
-
return [4 /*yield*/, this.request({
|
|
1080
|
-
path: "/v1/projects/{project}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))),
|
|
1081
|
-
method: 'PATCH',
|
|
1082
|
-
headers: headerParameters,
|
|
1083
|
-
query: queryParameters,
|
|
1084
|
-
body: (0, index_1.UpdateProjectRequestToJSON)(requestParameters.updateProjectRequest),
|
|
1085
|
-
}, initOverrides)];
|
|
1086
|
-
case 3:
|
|
1087
|
-
response = _c.sent();
|
|
1088
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
|
|
1089
|
-
}
|
|
1090
|
-
});
|
|
664
|
+
updateProjectRaw(requestParameters, initOverrides) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
667
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updateProject.');
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
|
|
670
|
+
throw new runtime.RequiredError('updateProjectRequest', 'Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
|
|
671
|
+
}
|
|
672
|
+
const queryParameters = {};
|
|
673
|
+
const headerParameters = {};
|
|
674
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
675
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
676
|
+
// oauth required
|
|
677
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
678
|
+
}
|
|
679
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
680
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
681
|
+
}
|
|
682
|
+
const response = yield this.request({
|
|
683
|
+
path: `/v1/projects/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
|
|
684
|
+
method: 'PATCH',
|
|
685
|
+
headers: headerParameters,
|
|
686
|
+
query: queryParameters,
|
|
687
|
+
body: (0, index_1.UpdateProjectRequestToJSON)(requestParameters.updateProjectRequest),
|
|
688
|
+
}, initOverrides);
|
|
689
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
|
|
1091
690
|
});
|
|
1092
|
-
}
|
|
691
|
+
}
|
|
1093
692
|
/**
|
|
1094
693
|
* Update a project
|
|
1095
694
|
* Update project
|
|
1096
695
|
*/
|
|
1097
|
-
|
|
1098
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
project: project, updateProjectRequest: updateProjectRequest,
|
|
1104
|
-
}, initOverrides)];
|
|
1105
|
-
case 1:
|
|
1106
|
-
response = _a.sent();
|
|
1107
|
-
return [4 /*yield*/, response.value()];
|
|
1108
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1109
|
-
}
|
|
1110
|
-
});
|
|
696
|
+
updateProject(project, updateProjectRequest, initOverrides) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
const response = yield this.updateProjectRaw({
|
|
699
|
+
project: project, updateProjectRequest: updateProjectRequest,
|
|
700
|
+
}, initOverrides);
|
|
701
|
+
return yield response.value();
|
|
1111
702
|
});
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
}(runtime.BaseAPI));
|
|
703
|
+
}
|
|
704
|
+
}
|
|
1115
705
|
exports.ProjectsApi = ProjectsApi;
|